curl --request POST \
--url https://connect.withvayu.com/customers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"aliases": [],
"address": {
"country": "<string>",
"city": "<string>",
"addressText": "<string>",
"state": "<string>",
"postalCode": "<string>"
},
"contacts": [
{
"name": "<string>",
"email": "jsmith@example.com",
"receiveInvoiceEmail": true
}
],
"externalId": "<string>"
}'
{
"customer": {
"name": "<string>",
"aliases": [],
"address": {
"country": "<string>",
"city": "<string>",
"addressText": "<string>",
"state": "<string>",
"postalCode": "<string>"
},
"contacts": [
{
"name": "<string>",
"email": "jsmith@example.com",
"receiveInvoiceEmail": true
}
],
"externalId": "<string>",
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
Create a new Customer.
curl --request POST \
--url https://connect.withvayu.com/customers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"aliases": [],
"address": {
"country": "<string>",
"city": "<string>",
"addressText": "<string>",
"state": "<string>",
"postalCode": "<string>"
},
"contacts": [
{
"name": "<string>",
"email": "jsmith@example.com",
"receiveInvoiceEmail": true
}
],
"externalId": "<string>"
}'
{
"customer": {
"name": "<string>",
"aliases": [],
"address": {
"country": "<string>",
"city": "<string>",
"addressText": "<string>",
"state": "<string>",
"postalCode": "<string>"
},
"contacts": [
{
"name": "<string>",
"email": "jsmith@example.com",
"receiveInvoiceEmail": true
}
],
"externalId": "<string>",
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
RequestSuccess
The response is of type object
.