v1
latestOpenAPI 3.1.02026-07-2656258207.2 KBCustomer
Create a customer
Create a customer
post/customers
Headers
X-Trace-Idstring
A unique identifier to track this operation. It must be between 12 and 255 characters in length.
X-Idempotency-Keystring
A unique identifier to prevent duplicate requests. It must be between 12 and 255 characters in length.
Request body
Example request
{
"address": {
"city": "New York",
"country": "US",
"line1": "123 Main Street",
"line2": "Apt 4B",
"postal_code": "10001",
"state": "New York"
},
"email": "cornelius@gmail.com",
"name": {
"first": "King",
"middle": "Leo",
"last": "LeBron"
},
"phone": {
"country_code": "234",
"number": "08012345678"
}
}Response
OK
Example response
{
"data": {
"id": "cus_3XarBILKQS",
"address": {
"city": "New York",
"country": "US",
"line1": "123 Main Street",
"line2": "Apt 4B",
"postal_code": "10001",
"state": "New York"
},
"email": "cornelius@gmail.com",
"name": {
"first": "King",
"middle": "Leo",
"last": "LeBron"
},
"phone": {
"country_code": "234",
"number": "08012345678"
}
}
}