Update Customer
updateCustomerUpdate Customer
Partially update a customer by id. Only fields present in the body are changed: email, phone, first_name, last_name, location_slug, and address fields. Phone is stored and normalized to E.164 the same way as POST /customers. Returns 409 when the new email or phone already belongs to a different customer in this project. Updating a customer to its own current email or phone is allowed. To create or match by contact fields without an id, use POST /customers (email first, then phone).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Unique numeric identifier for the customer. | |
| city | No | City for the address. | |
| No | Email address for the person or customer. | ||
| phone | No | Phone number for the person or customer. Normalized to E.164 when saved, the same way as create/upsert. | |
| state | No | State, province, or region for the address. | |
| address1 | No | Primary street address line. | |
| address2 | No | Secondary street address line, such as suite or apartment. | |
| last_name | No | Customer last name. | |
| first_name | No | Customer first name. | |
| postal_code | No | Postal or ZIP code for the address. | |
| location_slug | No | Slug of an existing project location. Returns 404 if the slug is not found. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Application-level status code returned by this API. | |
| data | No | Customer record with optional nested entities. | |
| success | No | Indicates whether the request completed successfully. |