PUT/v1/tenants/{tenantId}/ecom_stores/{eComStoreId}/customers/{customerId}/addresses
Update customer addresses
Updates the customer's delivery and/or invoice address.
Both fields are optional - only provided addresses will be created or updated:
- If an address doesn't exist, it will be created as the main address for that type
- If an address already exists, it will be updated
- If a field is null or omitted, that address type is not modified
Example: To update only the delivery address, send:
{
"deliveryAddress": {
"street": "Storgata 1",
"postCode": "0123",
"city": "Oslo",
"countryIsoCode": "NO"
}
}
Parameters
tenantIdrequiredeComStoreIdrequiredcustomerIdrequiredThe unique identifier (UUID) of the customer
Request body (optional)
Address data. Include deliveryAddress and/or invoiceAddress to update.
application/jsondeliveryAddressoptionalDelivery address to create or update. If null, delivery address is not changed.
Show child fields
cityrequired- Example
"Oslo" countryIsoCoderequiredISO 3166-1 alpha-2 country code
Example"NO"postCoderequired- Example
"0123" streetrequiredStreet address including house number
Example"Storgata 1"
invoiceAddressoptionalInvoice address to create or update. If null, invoice address is not changed.
Show child fields
cityrequired- Example
"Oslo" countryIsoCoderequiredISO 3166-1 alpha-2 country code
Example"NO"postCoderequired- Example
"0123" streetrequiredStreet address including house number
Example"Storgata 1"
Responses
Returns the full customer object including updated addresses.
application/jsoncountryIsoCodeoptionalISO 3166-1 alpha-2 country code
Example"NO"customerNumberoptionalHuman-readable customer number
Example"CUST-10042"deliveryAddressoptionalCustomer's main delivery address
Show child fields
cityrequired- Example
"Oslo" countryIsoCoderequiredISO 3166-1 alpha-2 country code
Example"NO"postCoderequired- Example
"0123" streetrequiredStreet address including house number
Example"Storgata 1"
electronicReceiptrequiredWhether the customer wants electronic receipts
Exampletrueemailoptional- Example
"ola.nordmann@example.com" firstNameoptional- Example
"Ola" idrequired- Example
"01234567-89ab-cdef-0123-456789abcdef" invoiceAddressoptionalCustomer's main invoice/billing address
Show child fields
cityrequired- Example
"Oslo" countryIsoCoderequiredISO 3166-1 alpha-2 country code
Example"NO"postCoderequired- Example
"0123" streetrequiredStreet address including house number
Example"Storgata 1"
languageIsoCodeoptionalISO 639-2 language code
Example"NOR"lastNameoptional- Example
"Nordmann" loyaltyProgramCustomerIdoptionalAuthoritative provider customer ID for this ecom store's configured loyalty program. Null if there is no configured program, no link, or the link is not ID-authoritative. Not proof of active membership. Read-only.
loyaltyProgramsrequiredList of loyalty programs and the customer's enrollment status
Show item fields
Loyalty program enrollment status for a customer
enrolledrequiredWhether the customer is enrolled in this loyalty program
ExampletrueidrequiredUnique identifier of the loyalty program
Example"01234567-89ab-cdef-0123-456789abcdef"namerequired- Example
"Premium Members Club"
phoneoptionalCustomer's phone number in E.164 format
Example"+4790123456"
400Bad Request - Invalid request body or address data (e.g., invalid country code)
Bad Request - Invalid request body or address data (e.g., invalid country code)
application/jsonerrorrequiredStable error code
Example"INVALID_REQUEST"messagerequiredHuman-readable error message
Example"Invalid customer ID format"resolutionrequiredSuggested next action
Example"Correct the customer ID and retry the request"
401Unauthorized - Invalid or missing JWT authentication token
Unauthorized - Invalid or missing JWT authentication token
application/jsonerrorrequiredStable error code
Example"INVALID_REQUEST"messagerequiredHuman-readable error message
Example"Invalid customer ID format"resolutionrequiredSuggested next action
Example"Correct the customer ID and retry the request"
403Forbidden - Token does not have access to this tenant/store
Forbidden - Token does not have access to this tenant/store
application/jsonerrorrequiredStable error code
Example"INVALID_REQUEST"messagerequiredHuman-readable error message
Example"Invalid customer ID format"resolutionrequiredSuggested next action
Example"Correct the customer ID and retry the request"
404Not Found - Customer with the specified ID does not exist
Not Found - Customer with the specified ID does not exist
application/jsonerrorrequiredStable error code
Example"INVALID_REQUEST"messagerequiredHuman-readable error message
Example"Invalid customer ID format"resolutionrequiredSuggested next action
Example"Correct the customer ID and retry the request"
500
application/jsonerrorrequiredStable error code
Example"INVALID_REQUEST"messagerequiredHuman-readable error message
Example"Invalid customer ID format"resolutionrequiredSuggested next action
Example"Correct the customer ID and retry the request"