v1

latestOpenAPI 3.0.02026-07-263365201.7 KB
Customers

Update a customer

Update the editable fields of a customer. Only first_name and last_name may be changed; both are optional so a request may update just one. Returns the updated customer.

patch/customers/{id}

Path parameters

idstring required
Example:cus_mi4f0oda6x9m7gcsvjk0ole1

Request body

first_namestring

Customer's first name

last_namestring

Customer's last name

company_namestring

Company name. Only valid for company customers; must be non-empty when provided.

Example request

{
  "first_name": "John",
  "last_name": "Doe"
}

Response

The updated customer

OR

Example response

{
  "id": "cus_mi4f0oda6x9m7gcsvjk0ole1",
  "first_name": "John",
  "last_name": "Doe",
  "email": "john.doe@example.com",
  "vat_id": "DE123456789"
}