Skip to content

A fresh claim link for a card never in a wallet

POST /cards/{id}/claim-link

Only for a card this connection’s own sign-up made, while it has never been in a wallet. A card answered already_member that another connection or the join page made takes none.

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 POST "https://api.passkaar.com/integrations/v1/cards/CARD_UUID/claim-link" \
-H "Authorization: Bearer $PASSKAAR_KEY" \
-H "Idempotency-Key: $(uuidgen)"
Name In Type Required What it is
id path string (uuid) yes
Idempotency-Key header string Any 1–255 visible ASCII characters, a UUID by preference. A retry with the same key within 24 hours answers the first result. reference is what guards a resend after that.

A new link; earlier ones stop working.

Field Type Required What it is
url string (uri) yes Open on the customer’s phone; on a desktop it shows a QR to continue there. Dead once the card is in a wallet.
expires_at string (date-time) yes Seven days from when it was made.

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 request_in_progress
409 card_in_wallet
422 idempotency_key_reused
422 operation_not_allowed
429 rate_limited
500 internal_error
503 unavailable