Partially update a customer's profile
PATCH /customers/{ref}
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.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” ref
required
string
Example
cust_123Request 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
Responses
Section titled “ Responses ”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
sms
string
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_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_9f8e7d6c5b4a3210No 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_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