PUT/v1/tenants/{tenantId}/ecom_stores/{eComStoreId}/push-customer

Push customer from eCommerce Auth

Creates new customer if none exists, or updates existing customer by phone/email. If phone belongs to one customer and email belongs to another, returns 409 Conflict.

Parameters

tenantIdrequired
eComStoreIdrequired

Request body (optional)

Customer phone (required) and email (optional, if verified)

application/json
emailoptional

Only provide if verified.

Example"ola.nordmann@example.com"
phonerequired

Phone number in E.164 format. Will be normalized automatically.

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 phone number or input data

Bad Request - Invalid phone number or 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 - Phone and email belong to different customers

Conflict - Phone and email belong to different customers

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"