curl --request POST \
--url https://api.example.com/v1/sdk/customers \
--header 'Content-Type: application/json' \
--data '
{
"email": "customer@example.com"
}
'{
"email": "customer@example.com",
"externalRef": "auth_user_12345",
"name": "John Doe",
"reference": "cus_3c4d5e6f7g8h"
}Creates a new customer record for the authenticated provider. Customers represent end-users who will purchase your products. Email is required and must be unique per provider. The name field is optional but recommended for better tracking.
curl --request POST \
--url https://api.example.com/v1/sdk/customers \
--header 'Content-Type: application/json' \
--data '
{
"email": "customer@example.com"
}
'{
"email": "customer@example.com",
"externalRef": "auth_user_12345",
"name": "John Doe",
"reference": "cus_3c4d5e6f7g8h"
}Customer creation data
Customer created successfully
Customer email address
"customer@example.com"
Customer full name
"John Doe"
Customer reference identifier
"cus_3c4d5e6f7g8h"
External reference ID from your auth system (if set during creation or update)
"auth_user_12345"
Active purchases
Show child attributes