Create Customer
Create a new customer or find existing customer by phone number.Endpoint
Request Body
Customer name (1-255 characters)
Email address (must be valid email format)
Phone number (max 20 characters). If provided, searches for existing customer with this phone
Birth date in ISO 8601 format (YYYY-MM-DD)
Behavior
- If
phoneis provided and matches an existing customer, returns that customer (not a 409 conflict) - Automatically enrolls new customers in the active loyalty program
- Sets initial tier to Bronze (0 points)
Response
Request success status
Customer UUID
Organization UUID
Customer name
Email address
Phone number
Birth date
Creation timestamp
Example Request
List Customers
Retrieve customers with optional search and pagination.Endpoint
Query Parameters
Search in name, email, or phone (partial match)
Page number (minimum: 1)
Items per page (1-100)
Response
Request success status
Example Request
Get Customer Details
Retrieve a customer’s full profile including loyalty info and recent transactions.Endpoint
Path Parameters
Customer UUID
Response
Includes customer profile, loyalty enrollment, and last 10 transactions.Example Request
Get Customer Transactions
Retrieve paginated transaction history for a customer.Endpoint
Path Parameters
Customer UUID
Query Parameters
Page number
Items per page (1-100)
Example Request
Delete Customer
Permanently delete a customer and all related loyalty data.Endpoint
Path Parameters
Customer UUID
Behavior
- Cascades to delete loyalty enrollment, transactions, and coupon assignments
- Cannot be undone
Example Request
Get Loyalty Statistics
Get aggregate loyalty program statistics.Endpoint
Response
Request success status
Total customers in organization
Total unredeemed points across all customers
Total points earned all-time
Number of reward redemptions