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

tenantIdrequired
eComStoreIdrequired
customerIdrequired

The unique identifier (UUID) of the customer

Request body (optional)

Address data. Include deliveryAddress and/or invoiceAddress to update.

application/json
deliveryAddressoptional

Delivery address to create or update. If null, delivery address is not changed.

Show child fields
cityrequired
Example"Oslo"
countryIsoCoderequired

ISO 3166-1 alpha-2 country code

Example"NO"
postCoderequired
Example"0123"
streetrequired

Street address including house number

Example"Storgata 1"
invoiceAddressoptional

Invoice address to create or update. If null, invoice address is not changed.

Show child fields
cityrequired
Example"Oslo"
countryIsoCoderequired

ISO 3166-1 alpha-2 country code

Example"NO"
postCoderequired
Example"0123"
streetrequired

Street address including house number

Example"Storgata 1"

Responses

200Response

Returns the full customer object including updated addresses.

application/json
countryIsoCodeoptional

ISO 3166-1 alpha-2 country code

Example"NO"
customerNumberoptional

Human-readable customer number

Example"CUST-10042"
deliveryAddressoptional

Customer's main delivery address

Show child fields
cityrequired
Example"Oslo"
countryIsoCoderequired

ISO 3166-1 alpha-2 country code

Example"NO"
postCoderequired
Example"0123"
streetrequired

Street address including house number

Example"Storgata 1"
electronicReceiptrequired

Whether the customer wants electronic receipts

Exampletrue
emailoptional
Example"ola.nordmann@example.com"
firstNameoptional
Example"Ola"
idrequired
Example"01234567-89ab-cdef-0123-456789abcdef"
invoiceAddressoptional

Customer's main invoice/billing address

Show child fields
cityrequired
Example"Oslo"
countryIsoCoderequired

ISO 3166-1 alpha-2 country code

Example"NO"
postCoderequired
Example"0123"
streetrequired

Street address including house number

Example"Storgata 1"
languageIsoCodeoptional

ISO 639-2 language code

Example"NOR"
lastNameoptional
Example"Nordmann"
loyaltyProgramCustomerIdoptional

Authoritative 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.

loyaltyProgramsrequired

List of loyalty programs and the customer's enrollment status

Show item fields

Loyalty program enrollment status for a customer

enrolledrequired

Whether the customer is enrolled in this loyalty program

Exampletrue
idrequired

Unique identifier of the loyalty program

Example"01234567-89ab-cdef-0123-456789abcdef"
namerequired
Example"Premium Members Club"
phoneoptional

Customer'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/json
errorrequired

Stable error code

Example"INVALID_REQUEST"
messagerequired

Human-readable error message

Example"Invalid customer ID format"
resolutionrequired

Suggested 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/json
errorrequired

Stable error code

Example"INVALID_REQUEST"
messagerequired

Human-readable error message

Example"Invalid customer ID format"
resolutionrequired

Suggested 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/json
errorrequired

Stable error code

Example"INVALID_REQUEST"
messagerequired

Human-readable error message

Example"Invalid customer ID format"
resolutionrequired

Suggested 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/json
errorrequired

Stable error code

Example"INVALID_REQUEST"
messagerequired

Human-readable error message

Example"Invalid customer ID format"
resolutionrequired

Suggested next action

Example"Correct the customer ID and retry the request"
500
application/json
errorrequired

Stable error code

Example"INVALID_REQUEST"
messagerequired

Human-readable error message

Example"Invalid customer ID format"
resolutionrequired

Suggested next action

Example"Correct the customer ID and retry the request"