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.
Example
Section titled “Example”Replace the CAPITALS, and set PASSKAAR_KEY to a key from the portal.
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"}'Parameters
Section titled “Parameters”| Name | In | Type | Required | What it is |
|---|---|---|---|---|
id |
path | string (uuid) | yes |
Request body
Section titled “Request body”| 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. |
Answers
Section titled “Answers”Linked.
| Field | Type | Required | What it is |
|---|---|---|---|
id |
string (uuid) | yes | |
external_id |
string or null | yes |
Errors
Section titled “Errors”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 |