Create customer
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
The primary email address of the customer.
The first name of the customer.
"John"
The last name of the customer.
"Doe"
The phone number of the customer. Must include the country code.
"+1 555 555 5555"
The address of the customer.
{
"street": "123 Main St",
"city": "Springfield",
"state": "IL",
"postalCode": "62701",
"country": "US"
}
The shipping address of the customer.
Additional metadata for the customer.
{
"order_id": "ord_1JYLo8KerLxWZaQtys6ZQ1xS"
}
The locale preference of the customer.
en_US
, fr_FR
"fr_FR"
Unique string of your choice to reconcile with your internal system.
"myclientid-1234"
Response
The id of the customer.
"cus_1234567890"
The primary email address of the customer.
The first name of the customer.
"John"
The last name of the customer.
"Doe"
The phone number of the customer.
"+1 555 555 5555"
Wether the customer is in live mode or test mode.
true
Wether the customer is blocked or not.
true
The id of the organization.
"org_1234567890"
The id of the shippingAddress.
"adr_1234567890"
The id of the shippingAddress.
"adr_1234567890"
Additional metadata for the customer.
{
"my_system_id": "1JYLo8KerLxWZaQtys6ZQ1xS"
}
"2021-07-22T00:00:00.000Z"
The id of the user who created the customer.
"usr_1234567890"
"2021-07-22T00:00:00.000Z"
"2021-07-22T00:00:00.000Z"
The id of the user who blocked the customer.
"usr_1234567890"
The id of the user who last updated the customer.
"usr_1234567890"
"2021-07-22T00:00:00.000Z"