Creates a new customer object. This also provisions their “cash balance” feature (starting at 0).
Request Body
The customer’s email address
Custom metadata to attach to the customer (e.g., user source, referral code)
Response
Unique identifier for the customer
The merchant’s unique identifier
The customer’s email address
Custom metadata attached to the customer
ISO 8601 timestamp when the customer was created
ISO 8601 timestamp when the customer was last updated
Example Request
{
"email": "[email protected]",
"name": "John Doe",
"metadata": {
"source": "web",
"referralCode": "FRIEND123"
}
}
Example Response
{
"id": "customer_789",
"merchantId": "merchant_456",
"email": "[email protected]",
"name": "John Doe",
"metadata": {
"source": "web",
"referralCode": "FRIEND123"
},
"createdAt": "2025-01-15T10:30:00.000Z",
"updatedAt": "2025-01-15T10:30:00.000Z"
}
Error Responses
Invalid or missing authentication token
Customer with this email already exists
An unexpected error occurred on the server
Authentication
This endpoint requires Bearer token authentication.