API Reference · Customers
Update a customer
Updates any subset of the customer fields.
PATCH
/v1/customers/:idAccepts a partial object — only provided fields are modified. Changing the email is allowed but must not collide with another customer in the same livemode.
Returnscustomer object
Path parameters
idstringRequiredCustomer id (`cus_…`).
Body parameters
emailstringNew email address.
first_namestringNew given name.
last_namestringNew family name.
phonestringNew phone number.
company_namestringNew business name.
notesstringReplaces existing notes.
metadataobjectMerges into existing metadata; pass `null` on a key to delete it.
Errors
404
resource_missingNo customer exists with that id.
409
resource_already_existsNew email collides with an existing customer.