Add Customer
Adds new Customers in a specific database.
Request | |
---|---|
Method | POST |
Resource | https://account.prod.vcc-live.app/v1/databases/{databaseId}/customers |
Options | N/A |
Body | N/A |
Response | |
Body | Project array, encoded in JSON |
Request
Resource parameters
Name | Type | Mandatory | Comment |
---|---|---|---|
databaseId | string | yes | ID of the database, format:uuid |
Response
Response object
Name | Type | Comment |
---|---|---|
name | string | Label of the field |
contacts | array | Describes contacts of a Customer |
Customer Contact object
Name | Type | Comment |
---|---|---|
order | integer | Describes the contact position, from 1 to 9 |
name | string | Name of the contact |
phone | string | Phone of the contact |
string | Email of the contact | |
title | string | Title of the contact |
Example
Request
URL: http://account.prod.vcc-live.app/v1/databases/{databaseId}/customers
Request body
[
{
"name": "john",
"contacts": [
{
"order": "1",
"name": "sue",
"phone": "36307658933",
"email": "sue@sue.com",
"title": "ms"
},
{
"order": "2",
"name": "michael",
"phone": "36708976654",
"email": "michael@michael.com",
"title": "mr"
}
]
}
]
Response body
{
"response": [
{
"name": "John R&D",
"contacts": [
{
"order": 1,
"name": "Eliot",
"title": "Mr.",
"phone": "+369885698",
"email": "eliot.brody@johnrnd.com"
},
{
"order": 2,
"name": "Robert",
"email": "robert@gmail.com"
}
],
"customerId": ["32445"],
"city": ["London"],
"creditCardType": ["Visa"]
}
],
"errors": []
}
Comments
Can’t find what you need? Use the comment section below to connect with others, get answers from our experts, or share your ideas with us.
There are no comments yet.