Find a card by serial, card ID, phone, email or external id
POST /cards/lookup
A POST so a phone or email never sits in a URL or a log line.
Scope: cards:read. 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 POST "https://api.passkaar.com/integrations/v1/cards/lookup" \ -H "Authorization: Bearer $PASSKAAR_KEY" \ -H "Content-Type: application/json" \ -d '{ "card_id": "CARD_ID"}'Request body
Section titled “Request body”object
Answers
Section titled “Answers”The matching cards.
| Field | Type | Required | What it is |
|---|---|---|---|
data |
array of object (Card) | yes | Every card the matched customer holds in this shop, or the one card named. |
Errors
Section titled “Errors”Every error is a Problem Details answer with a stable code.
| Status | Code |
|---|---|
| 400 | invalid_request |
| 401 | unauthorized |
| 404 | not_found |
| 409 | ambiguous |
| 429 | rate_limited |
| 500 | internal_error |
| 503 | unavailable |