Skip to main content
POST
Create customer

Authorizations

x-token
string
header
required

JWT access token obtained from /v2/auth endpoint

Body

application/json

Customer details

name
string
required
Example:

"John Doe"

email
string<email>
Example:

"john.doe@example.com"

phone
string
Example:

"+15551234567"

code
string
Example:

"CUST001"

cid
string<uuid>
Example:

"0f9654bc-9520-43d7-8109-317d9820f54c"

description
string
Example:

"Test Customer"

group_id
integer
Example:

1

gender
integer | null
Example:

1

date_of_birth
string<date>
Example:

"1990-05-15"

Response

Customer created successfully

success
boolean
data
object
message
string
time
integer
timestamp
string<date-time>
unix
integer