Create a new customer with contact information and group assignment
x-tokenx-brandx-venueContent-Type: application/jsoncode, phone, and cid are unique. If you attempt to create a customer with duplicate values for any of these fields, the API will return an error.1 for male, 2 for female, or null for unspecified.YYYY-MM-DD format.| Field | Type | Description |
|---|---|---|
name | string | Customer’s full name. |
| Field | Type | Description |
|---|---|---|
email | string | Customer’s email address. |
phone | string | Primary phone number. Must be unique. |
code | string | Customer code/identifier. Must be unique. |
cid | string | Customer UUID. Must be unique. Auto-generated if not provided. |
description | string | Additional notes about the customer. |
group_id | integer | ID of the customer group. |
gender | integer | Gender: 1 = male, 2 = female, null = unspecified. |
date_of_birth | string | Date of birth in YYYY-MM-DD format. |
name field is required and cannot be empty.code, phone, and cid must be unique. Attempting to create a customer with duplicate values will result in a 409 Conflict error.cid is not provided, the system will automatically generate a UUID for the customer.balance_id and a balance account is created.group_id was provided.can_use_loyalty_system and is_verified fields are set to false by default for new customers.Access token obtained from /auth endpoint
Brand identifier
Venue identifier
Customer details
Customer's full name (required)
"John Doe"
Customer's email address
Customer's primary phone number. Must be unique.
"+15551234567"
Customer code/identifier. Must be unique.
"CUST001"
Customer UUID identifier. Must be unique. Auto-generated if not provided.
"0f9654bc-9520-43d7-8109-317d9820f54c"
Additional notes or description about the customer
"Test Customer"
ID of the customer group to assign this customer to
1
Customer's gender: 1 = male, 2 = female, null = unspecified
1
Customer's date of birth in YYYY-MM-DD format
"1990-05-15"