Create a customer (business or person)
Body
required
application/json
- Type: objectbusinessrequired
Business details
- Type: stringexternal
Id requiredPartner-defined customer identifier
- typeconst:BUSINESSrequired
Customer type
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for post/customers
curl https://api-sandbox.tryslatehq.com/customers \
--request POST \
--header 'Content-Type: application/json' \
--header 'x-api-key: YOUR_SECRET_TOKEN' \
--data '{
"type": "BUSINESS",
"externalId": "cus_123",
"business": {
"legalName": "Acme Corp",
"dba": "Acme",
"website": "https://acme.com",
"type": "PARTNERSHIP",
"address": {
"address1": "123 Main St",
"address2": null,
"city": "San Francisco",
"postalCode": "94105",
"country": "US",
"state": "CA"
},
"contact": {
"fullName": "John Doe",
"email": "john@acme.com",
"phone": "+15551234567"
}
}
}'
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"externalId": "cus_123",
"type": "BUSINESS",
"business": {
"legalName": "Acme Corp",
"dba": "Acme",
"type": "PARTNERSHIP",
"website": "https://acme.com",
"address": {
"address1": "123 Main St",
"address2": null,
"city": "San Francisco",
"postalCode": "94105",
"country": "US",
"state": "CA"
},
"contact": {
"fullName": "John Doe",
"email": "john@acme.com",
"phone": "+15551234567"
}
}
}