Skip to main content
POST
/
api
/
customers
Create Customer
curl --request POST \
  --url https://api.example.com/api/customers/ \
  --header 'Content-Type: application/json' \
  --cookie sessionid= \
  --data '
{
  "full_name": "<string>",
  "external_id": "<string>",
  "customer_type": "INDIVIDUAL",
  "input_details": "<unknown>",
  "delete_after": 123
}
'
{
"external_id": "cust-123",
"full_name": "John Smith",
"customer_type": "INDIVIDUAL",
"input_details": {
"aliases": [
"Johnny",
"Jonno"
],
"dob": "1990-01-01",
"email": "[email protected]",
"address": {
"street": "123 Main St",
"city": "New York",
"country": "USA"
}
}
}

Authorizations

sessionid
string
cookie
required

Body

Write serializer for Customer creation with flexible JSON details.

full_name
string
required
Maximum string length: 255
external_id
string | null

ID from the source system, for lookups.

Maximum string length: 255
customer_type
  • INDIVIDUAL - Individual
  • COMPANY - Company
Available options:
INDIVIDUAL,
COMPANY
input_details
any | null

Flexible JSON for inputting customer fields. Any format accepted.

delete_after
integer

Number of days until deletion. Max 365. For immediate deletion, use 0.

Response

201 - application/json

Read-only serializer for Customer with computed fields.

id
integer
required
external_id
string | null
required

ID from the source system, for lookups.

full_name
string
required
customer_type
required
  • INDIVIDUAL - Individual
  • COMPANY - Company
Available options:
INDIVIDUAL,
COMPANY
input_details
any | null
required

Flexible JSON for inputting customer fields such as first_name, address, etc. Any format accepted.

delete_after
integer
required

Days until deletion.

created_at
string<date-time>
required
updated_at
string<date-time>
required