Crear cliente
Developing
POST
/v1/customers
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.treli.co/v1/customers' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data-raw '{
"email": "correo@ejemplo.co",
"full_name": "John Doe",
"billing_address": {
"first_name": "John",
"last_name": "Doe",
"address_1": "Cra 1 1 1",
"phone": "3333333333",
"phone_country_code": "CO_57",
"city": "Barranquilla",
"state": "ATL",
"country": "CO",
"company": "Empresa SAS",
"person_type": "Company",
"identification": "123123123",
"id_type": "NIT"
},
"collection_emails": [
"email1@email.com",
"email2@email.com"
]
}'
Response Response Example
{
"id": "cus_MVjtx4BbDdTndKPh8aFdKZuv",
"email": "correo@ejemplo.com",
"full_name": "John Doe",
"created_date": "2024-11-15 16:44:50",
"is_test": false,
"billing_address": {
"first_name": "string",
"last_name": "string",
"id_type": "CC",
"identification": "string",
"address_1": "string",
"address_2": "string",
"phone": "string",
"phone_country_code": "string",
"city": "string",
"state": "string",
"postcode": "string",
"country": "string",
"company": "string",
"person_type": "person",
"regimen_type": "common_regime"
},
"default_payment_method": "string",
"is_deleted": false,
"collection_emails": [
"user@example.com"
]
}
Request
Body Params application/json