Skip to content

Attach or change the integration's customer id

PUT /customers/{id}/external-id

Scope: customers:enrol. The key’s connection must hold it; see the reference’s introduction.

Replace the CAPITALS, and set PASSKAAR_KEY to a key from the portal.

Terminal window
curl -X PUT "https://api.passkaar.com/integrations/v1/customers/CUSTOMER_ID/external-id" \
-H "Authorization: Bearer $PASSKAAR_KEY" \
-H "Content-Type: application/json" \
-d '{
"external_id": "store-customer-1"
}'
Name In Type Required What it is
id path string (uuid) yes
Field Type Required What it is
external_id string yes The integration’s own id for the customer, 1–128 visible ASCII characters. Unique per connection in both directions.

Linked.

Field Type Required What it is
id string (uuid) yes
external_id string or null yes

Every error is a Problem Details answer with a stable code.

Status Code
400 invalid_request
401 unauthorized
403 shop_locked
404 not_found
409 external_id_taken
429 rate_limited
500 internal_error
503 unavailable