curl --request POST \
--url https://base_url/api/v1/customers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "John Doe",
"corporation_id": "b6d009b0-d174-463f-b030-94643c28e209",
"email": "[email protected]",
"shipping_address": {
"postal_code": "90401",
"state": "CA",
"country": "US",
"address_line_1": "1776 Main St",
"address_line_2": "Apt. #123",
"address_line_3": "<string>",
"city": "Santa Monica"
},
"external_id": "<string>"
}
'{
"data": {
"id": "b6d009b0-d174-463f-b030-94643c28e209",
"corporation_id": "2535af08-a139-4d0c-9827-1651e46dfbcf",
"name": "John Doe",
"email": "[email protected]",
"shipping_address": {
"postal_code": "90401",
"state": "CA",
"country": "US",
"address_line_1": "1776 Main St",
"address_line_2": "Apt. #123",
"address_line_3": "<string>",
"city": "Santa Monica"
},
"external_id": "<string>"
},
"message": "Successfully created customer."
}Create a customer to track their exemption certificates and default values for their addresses.
curl --request POST \
--url https://base_url/api/v1/customers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "John Doe",
"corporation_id": "b6d009b0-d174-463f-b030-94643c28e209",
"email": "[email protected]",
"shipping_address": {
"postal_code": "90401",
"state": "CA",
"country": "US",
"address_line_1": "1776 Main St",
"address_line_2": "Apt. #123",
"address_line_3": "<string>",
"city": "Santa Monica"
},
"external_id": "<string>"
}
'{
"data": {
"id": "b6d009b0-d174-463f-b030-94643c28e209",
"corporation_id": "2535af08-a139-4d0c-9827-1651e46dfbcf",
"name": "John Doe",
"email": "[email protected]",
"shipping_address": {
"postal_code": "90401",
"state": "CA",
"country": "US",
"address_line_1": "1776 Main St",
"address_line_2": "Apt. #123",
"address_line_3": "<string>",
"city": "Santa Monica"
},
"external_id": "<string>"
},
"message": "Successfully created customer."
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
A display name for this customer.
3"John Doe"
The unique identifier for a corporation this customer belongs to.
"b6d009b0-d174-463f-b030-94643c28e209"
Email address of the customer.
Show child attributes
Either 5-digit ZIP code or 9-digit ZIP+4 code is accepted.
"90401"
2-letter code for each state. Suffix of the ISO 3166-2 code. Ex: CA, NY, TX.
"CA"
ISO 3166 2-letter country code. Ex: US, IN, GB.
"US"
"1776 Main St"
"Apt. #123"
"Santa Monica"
External identifier for the customer.
Information about the created customer
Show child attributes
The unique identifier for this customer.
"b6d009b0-d174-463f-b030-94643c28e209"
The unique identifier for the corporation associated with this customer.
"2535af08-a139-4d0c-9827-1651e46dfbcf"
A display name for this customer.
"John Doe"
Email address of the customer.
Show child attributes
Either 5-digit ZIP code or 9-digit ZIP+4 code is accepted.
"90401"
2-letter code for each state. Suffix of the ISO 3166-2 code. Ex: CA, NY, TX.
"CA"
ISO 3166 2-letter country code. Ex: US, IN, GB.
"US"
"1776 Main St"
"Apt. #123"
"Santa Monica"
External identifier for the customer.
"Successfully created customer."