Skip to content

Unlink a (channel, external_id) pair

DELETE
/customers/{uuid}/links/{channel}/{externalId}

uuid scopes the write to that customer. Idempotent — a pair that does not exist at all still returns 200, and re-unlinking an already-unlinked pair owned by uuid returns 200 too. A pair that exists but is owned by a DIFFERENT customer than uuid names returns 404.

uuid
required
string format: uuid
channel
required
string
externalId
required
string

Unlinked.

object
status
required
string
Allowed values: unlinked

Uuid is not a valid UUID.

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

The pair exists but is owned by a different customer than uuid.

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