PUT/v1/tenants/{tenantId}/ecom_stores/{eComStoreId}/customers/{customerId}

Create or update customer

Idempotent endpoint - creates a new B2C customer with status RELEASED if it doesn't exist, otherwise updates the existing customer

Parameters

tenantIdrequired
eComStoreIdrequired
customerIdrequired

The ID of the customer to create or update

Request body (optional)

Customer details. All fields are optional - only provided (non-null) fields will be updated.

application/json
countryIsoCodeoptional

ISO 3166-1 alpha-2 country code

Example"NO"
electronicReceiptoptional

Whether the customer wants electronic receipts

Exampletrue
emailoptional
Example"ola.nordmann@example.com"
firstNameoptional
Example"Ola"
languageIsoCodeoptional

ISO 639-2 language code

Example"NOR"
lastNameoptional
Example"Nordmann"
loyaltyProgramsoptional

Loyalty program enrollments to set for this customer

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"
newsletteroptional

Whether the customer subscribes to the newsletter

Examplefalse
phoneoptional

Customer's phone number in E.164 format

Example"+4790123456"

Responses

200Response
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 input data

Bad Request - Invalid input data

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 authentication

Unauthorized - Invalid or missing authentication

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"
403
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"
409Conflict - Another customer already has this email (DUPLICATE_EMAIL) or phone number (DUPLICATE_PHONE)

Conflict - Another customer already has this email (DUPLICATE_EMAIL) or phone number (DUPLICATE_PHONE)

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"