Skip to main content
POST
Create a customer

Authorizations

Authorization
string
header
required

Access token issued by auth.signIn. Expires; refresh it with auth.refresh.

Body

application/json
name
string
required
Minimum string length: 1
email
string<email>
required
Pattern: ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
country
string
required
Minimum string length: 2
totalTransactions
integer
required
Required range: 0 <= x <= 9007199254740991
totalAmountSpent
number
required
Required range: x >= 0
lastActivityDate
string
required
Minimum string length: 1
status
enum<string>
required
Available options:
active,
inactive,
churned

Response

OK

id
string
required
Minimum string length: 1
name
string
required
Minimum string length: 1
email
string<email>
required
Pattern: ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
country
string
required
Minimum string length: 2
totalTransactions
integer
required
Required range: 0 <= x <= 9007199254740991
totalAmountSpent
number
required
Required range: x >= 0
lastActivityDate
string
required
Minimum string length: 1
status
enum<string>
required
Available options:
active,
inactive,
churned
Last modified on October 6, 2026