v1
latestOpenAPI 3.1.02026-07-228956435.8 KBCustomers
Create a customer
Creates a customer in the live or test mode of the API key used. At least one of email or tax_id must be provided; every other field is optional. If a tax_id is provided, both its type and value are required. Values are normalized before being stored: email and address.country are lowercased, dots and hyphens are stripped from RUTs, and RFCs are uppercased.
post/customers
Request body
Example request
{
"address": {
"city": "Santiago",
"country": "CL",
"line1": "Av. Providencia 123",
"line2": "Depto 45",
"postal_code": "7500000",
"state": "RM"
},
"email": "jared@piedpiper.com",
"metadata": {
"order_id": "12345"
},
"name": "Test Customer 1",
"phone": "+56911111111",
"tax_id": {
"type": "cl_rut",
"value": "11111111-1"
}
}Response
Customer created.
Example response
{
"id": "cus_0ujsswThIGTUYm2K8FjOOfXtY1K",
"address": {
"city": "Santiago",
"country": "cl",
"line1": "Av. Providencia 123",
"line2": "Depto 45",
"postal_code": "7500000",
"state": "RM"
},
"created_at": "2026-01-15T14:30:00Z",
"email": "jared@piedpiper.com",
"metadata": {
"order_id": "12345"
},
"mode": "live",
"name": "Test Customer 1",
"phone": "+56911111111",
"tax_id": {
"type": "cl_rut",
"value": "111111111"
}
}