API Reference · Customers

Update a customer

Updates any subset of the customer fields.

PATCH/v1/customers/:id

Accepts a partial object — only provided fields are modified. Changing the email is allowed but must not collide with another customer in the same livemode.

Path parameters

idstringRequired

Customer id (`cus_…`).

Body parameters

emailstring

New email address.

first_namestring

New given name.

last_namestring

New family name.

phonestring

New phone number.

company_namestring

New business name.

notesstring

Replaces existing notes.

metadataobject

Merges into existing metadata; pass `null` on a key to delete it.

Errors

404
resource_missing

No customer exists with that id.

409
resource_already_exists

New email collides with an existing customer.