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
tenantIdrequiredeComStoreIdrequired
Request body (optional)
Customer phone (required) and email (optional, if verified)
application/jsonemailoptionalOnly provide if verified.
Example"ola.nordmann@example.com"phonerequiredPhone number in E.164 format. Will be normalized automatically.
Example"+4790123456"
Responses
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 phone number or input data
Bad Request - Invalid phone number or input data
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 authentication
Unauthorized - Invalid or missing authentication
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"
403
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"
409Conflict - Phone and email belong to different customers
Conflict - Phone and email belong to different customers
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"