Skip to content

Partially update a customer's profile

PATCH
/customers/{ref}

Merge semantics: an absent field is untouched, a null field value clears it. ref is a UUID (the customer_uuid) or an external_id on the ‘api’ channel. Requires a secret key.

ref
required
string
Example
cust_123
object
email
string | null
name
string | null
>= 1 characters <= 128 characters
birthday
string | null
locale
string | null
social_handles
object | null
marketing_consent
object
email
string
Allowed values: opted_in opted_out unset
sms
string
Allowed values: opted_in opted_out unset
updated_at
string

Updated profile.

object
customer_uuid
required
string format: uuid
email
string
name
string
birthday
string
locale
string
social_handles
object
key
additional properties
string
marketing_consent
object
email
string
Allowed values: opted_in opted_out unset
sms
string
Allowed values: opted_in opted_out unset
updated_at
string
updated_at
string format: date-time

Invalid profile fields.

object
error
required
object
code
required
string
Example
not_found
message
required
string
details
request_id
required
string
Example
req_9f8e7d6c5b4a3210

Missing 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_9f8e7d6c5b4a3210

The 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_9f8e7d6c5b4a3210

No such customer in this tenant.

object
error
required
object
code
required
string
Example
not_found
message
required
string
details
request_id
required
string
Example
req_9f8e7d6c5b4a3210

The 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_9f8e7d6c5b4a3210

A 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