Update Customer
Updates an existing customer’s mutable fields such as email, name, phone, or document.
Authorizations
Your public API key from the Yuno Dashboard
Your private secret key (server-side only)
Path Parameters
The unique identifier of the customer
Body
Request body for creating or updating a customer. Only merchant_customer_id is required; every other field is optional, but the more information you supply, the better the downstream authorization, conversion, and fraud-prevention rates.
Your unique identifier for this customer in your own platform. Must be unique within your Yuno account — POSTing twice with the same value returns a CUSTOMER_ID_DUPLICATED 400 error. Use this ID to retrieve the customer later via Retrieve Customer by External ID.
3 - 255"cust-internal-001"
Date the customer was originally registered on your platform. ISO 8601 format with microseconds and Z suffix (e.g., 2024-01-15T12:34:56.123456Z). Used by some risk providers as a tenure signal.
27"2024-01-15T12:34:56.123456Z"
Customer's first name (legal first name as it appears on the identification document).
3 - 255"Maria"
Customer's last name (legal surname as it appears on the identification document).
3 - 255"Silva"
Customer's email address. Strongly recommended — required by most APMs (PIX, Boleto, OXXO, PSE) and by 3DS challenge flows.
3 - 255"maria.silva@example.com"
Customer's gender. M (male), F (female), or NB (non-binary). Any other value is rejected with HTTP 400.
M, F, NB "F"
Customer's date of birth in YYYY-MM-DD format.
10^\d{4}-\d{2}-\d{2}$"1990-02-28"
Customer's country of residence. ISO 3166-1 alpha-2 code.
2^[A-Z]{2}$"BR"
Customer's nationality. ISO 3166-1 alpha-2 code.
2^[A-Z]{2}$"BR"
Customer's identification document. Both fields are required when the document object is sent. Yuno does not enforce a fixed enum on document_type; pass the local code expected by the destination payment method.
{
"document_type": "CPF",
"document_number": "12345678901"
}
Customer's phone number, split into country calling code and the local number. Both fields are required when the phone object is sent.
{
"country_code": "57",
"number": "3132450765"
}
Postal address. Used for both billing_address and shipping_address. All fields are optional, but providing as much detail as possible improves authorization rates and downstream fraud-prevention scoring.
{
"address_line_1": "Calle 34 # 56 - 78",
"address_line_2": "Apartamento 502, Torre I",
"city": "Bogotá",
"state": "Cundinamarca",
"country": "CO",
"zip_code": "111111",
"neighborhood": "Chapinero"
}
Postal address. Used for both billing_address and shipping_address. All fields are optional, but providing as much detail as possible improves authorization rates and downstream fraud-prevention scoring.
{
"address_line_1": "Calle 34 # 56 - 78",
"address_line_2": "Apartamento 502, Torre I",
"city": "Bogotá",
"state": "Cundinamarca",
"country": "CO",
"zip_code": "111111",
"neighborhood": "Chapinero"
}
Custom key/value pairs you want to attach to the customer. Maximum 50 entries; each key ≤ 48 characters and each value ≤ 512 characters. Returned verbatim on retrieval.
50Response
Customer updated successfully
Customer object returned by Create, Get, List, and Update endpoints.
Yuno's unique customer identifier (UUID v4). Use this value when referencing the customer in checkout sessions, payments, enrollments, and subscriptions.
"c9d0e1f2-3a4b-5c6d-7e8f-9a0b1c2d3e4f"
Echoed from the request — your unique identifier for this customer.
"cust-internal-001"
Echoed from the request, or null if not supplied.
"2024-01-15T12:34:56.123456Z"
"Maria"
"Silva"
"maria.silva@example.com"
M, F, NB, null "F"
"1990-02-28"
"BR"
"BR"
Customer's identification document. Both fields are required when the document object is sent. Yuno does not enforce a fixed enum on document_type; pass the local code expected by the destination payment method.
{
"document_type": "CPF",
"document_number": "12345678901"
}
Customer's phone number, split into country calling code and the local number. Both fields are required when the phone object is sent.
{
"country_code": "57",
"number": "3132450765"
}
Postal address. Used for both billing_address and shipping_address. All fields are optional, but providing as much detail as possible improves authorization rates and downstream fraud-prevention scoring.
{
"address_line_1": "Calle 34 # 56 - 78",
"address_line_2": "Apartamento 502, Torre I",
"city": "Bogotá",
"state": "Cundinamarca",
"country": "CO",
"zip_code": "111111",
"neighborhood": "Chapinero"
}
Postal address. Used for both billing_address and shipping_address. All fields are optional, but providing as much detail as possible improves authorization rates and downstream fraud-prevention scoring.
{
"address_line_1": "Calle 34 # 56 - 78",
"address_line_2": "Apartamento 502, Torre I",
"city": "Bogotá",
"state": "Cundinamarca",
"country": "CO",
"zip_code": "111111",
"neighborhood": "Chapinero"
}
Echoed from the request. Returns an empty array (or omitted) when no metadata was provided.
Server-generated ISO 8601 timestamp of when the customer record was created.
"2026-03-01T10:00:00.000000Z"
Server-generated ISO 8601 timestamp of the last update to the customer record.
"2026-03-01T10:00:00.000000Z"