Skip to content

Manually link a (channel, external_id) pair to a customer

POST
/customers/{uuid}/links
uuid
required
string format: uuid
object
channel
required
string
>= 1 characters <= 64 characters
external_id
required
string
>= 1 characters <= 256 characters

Link created (or re-activated).

object
customer_uuid
required
string format: uuid
linked_via
required
string
status
required
string
Allowed values: active

Channel and external_id are required.

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