Update a customer
Replaces the editable customer fields for the selected customer id.
PUT
/api/customers/{id}Replaces the editable customer fields for the selected customer id.
Path Parameters
id*string
Resource identifier.
Example
"cust_123"Request Body
application/json
Request payload for Update a customer.
type*string
Customer type classification.
Value in
"individual" | "company"Example
"company"name?|
Customer name.
email?|
Primary customer email.
phone?|
Primary phone number.
address?|
Primary address.
website?|
Customer website URL.
country?|
Country code or label.
idType?|
Government or tax identifier type.
idValue?|
Government or tax identifier value.
note?|
Internal note about the customer.
addresses?array<>|
Additional customer addresses.
customFields?|
Custom field values to persist on the customer.
memberships?array<>|
Customer-contact memberships to create or update with the customer.
[key: string]?never
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json