Skip to main content
PUT
Update Billing Details
Billing details are used on receipts and invoices, and an order needs them complete. The request replaces the saved details. It carries personal data (name, address and CPF/CNPJ), so only send values the account owner provided.
string
required
The name on receipts and invoices.
object
required
string | null
Optional phone number, in E.164 format, for example +5585999990000. null or omitted removes the saved phone.
object | null
The CPF or CNPJ. Required in Brazil for the details to be complete. null removes the saved document; omitting the field keeps it.
Outside Brazil, line1, city and postal_code are enough.

Response

The saved details, with the document masked, and complete. See Get Billing Details for the fields. The response is never cached.

Error Responses

string
The error code indicating the reason for failure. Possible values:
  • UNAUTHORIZED: The user is not authenticated.
  • USER_NOT_FOUND: The authenticated user was not found.
  • BILLING_DETAILS_INVALID: A field failed validation; its name is in details.path (400).
  • TAX_ID_INVALID: The CPF or CNPJ is not valid (400).
  • PAYMENT_METHOD_UNAVAILABLE: Online payment is temporarily unavailable (400).
  • INTERNAL_SERVER_ERROR: An unexpected server error occurred.