Update customer
PUT/openapi/2026-07/customers/:customer_id
Update the details of an existing customer using its unique identifier.
Request
Path Parameters
Customer ID
- application/json
- Body
- Example
Bodyrequired
customer objectrequired
The object containing customer attributes to be updated
Customer's first name
Customer's last name
Whether to subscribe to marketing email campaigns
Whether to subscribe to SMS marketing campaigns
Tags assigned to the customer
{
"customer": {
"first_name": "string",
"last_name": "string",
"accepts_marketing": true,
"accepts_sms_marketing": true,
"tags": [
"string"
]
}
}
Responses
- 200
OK
- application/json
- Schema
- Example
Schema
- Array [
- ]
error code
error message
data object
customer object
Customer
Customer ID
Customer's email address
Timestamp when the customer was created, in ISO8601 format
Timestamp when the customer was last updated, in ISO8601 format
Customer's first name
Customer's last name
Customer's phone number
Tags associated with the customer
Full name of the customer
Area code of the phone number
Contact type, either email or phone
Customer's SMS subscription status flag
addresses object[]
List of all customer addresses
Address ID
ID of the customer this address belongs to
First name of the consignee
Last name of the consignee
Company name
City of the address
Province or state of the address
Country name of the address
Postal or ZIP code
Province code
ISO country code
Gender of the consignee
Phone number associated with the address
Area code of the phone number
Area or region of the address
Email associated with the address
Full name of the consignee
Primary street address
Secondary street address
Full name of the country
Indicates if this is the default address
Indicates if the customer is subscribed to marketing emails
Source of the customer data
Indicates if the customer is exempt from taxes
Indicates if the customer is registered
Number of orders placed by the customer
First order timestamp
Timestamp of the customer's last order
Total amount spent by the customer
Customer's marketing subscription status flag
Indicates if the customer is subscribed to SMS marketing campaigns
{
"code": "string",
"message": "string",
"data": {
"customer": {
"id": "string",
"email": "string",
"created_at": "string",
"updated_at": "string",
"first_name": "string",
"last_name": "string",
"phone": "string",
"tags": [
"string"
],
"name": "string",
"phone_area_code": "string",
"contact_type": "string",
"sms_subscribed_flag": 0,
"addresses": [
{
"id": "string",
"customer_id": "string",
"first_name": "string",
"last_name": "string",
"company": "string",
"city": "string",
"province": "string",
"country": "string",
"zip": "string",
"province_code": "string",
"country_code": "string",
"gender": "string",
"phone": "string",
"phone_area_code": "string",
"area": "string",
"email": "string",
"name": "string",
"address1": "string",
"address2": "string",
"country_name": "string",
"default": true
}
],
"accepts_marketing": true,
"source": "string",
"free_tax": true,
"registered": true,
"orders_count": 0,
"first_order_at": "string",
"last_order_at": "string",
"total_spent": "string",
"subscribed_flag": 0,
"accepts_sms_marketing": true
}
}
}