Create or update a customer profile
POST /customers
POST
/customers
Resolves or creates the (channel, external_id) customer and merges any supplied profile fields. Returns 201 on first creation, 200 on a later merge. Requires a secret key.
Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”object
email
string | null
name
string | null
birthday
string | null
locale
string | null
social_handles
object | null
marketing_consent
object
email
string
sms
string
updated_at
string
channel
string
external_id
required
string
Responses
Section titled “ Responses ”Existing customer merged.
object
customer_uuid
required
string format: uuid
channel
required
string
external_id
required
string
created
required
boolean
updated_at
string format: date-time
Customer created.
object
customer_uuid
required
string format: uuid
channel
required
string
external_id
required
string
created
required
boolean
updated_at
string format: date-time
External_id is missing or malformed.
object
error
required
object
code
required
string
Example
not_found message
required
string
details
request_id
required
string
Example
req_9f8e7d6c5b4a3210Missing or invalid API key or OAuth credential.
object
error
required
object
code
required
string
Example
not_found message
required
string
details
request_id
required
string
Example
req_9f8e7d6c5b4a3210The credential lacks the loyalty:write scope — a publishable key (publishable_key_forbidden), or an OAuth token, which is always read-only in v1 (insufficient_scope).
object
error
required
object
code
required
string
Example
not_found message
required
string
details
request_id
required
string
Example
req_9f8e7d6c5b4a3210The resolved customer was erased (GDPR) and can no longer accept profile writes.
object
error
required
object
code
required
string
Example
not_found message
required
string
details
request_id
required
string
Example
req_9f8e7d6c5b4a3210A profile field failed semantic validation (e.g. malformed email).
object
error
required
object
code
required
string
Example
not_found message
required
string
details
request_id
required
string
Example
req_9f8e7d6c5b4a3210