List cards
/v1/cardsRequires an API client bearer token.
Lists cards for the authenticated tenant. Newest first; cursor-paginated (pass the last row's id as starting_after). Optionally narrowed to one cardholder via cardholder_id, or to one programme via programme_id. Alternatively, pass ids (comma-separated, 1..100) for a batch-get by id; ids and starting_after are mutually exclusive. A programme-scoped caller (a programme-pinned API client) lists only its own programme's cards, and naming another programme in programme_id is refused with 403. business_id narrows to one business's cards: an API client names its acting person in X-Rigid-Acting-Person, who needs can_view_all_cards on that business (else 403 acting_person_not_permitted); each such call writes one business.read audit intent, and it answers 404 while the `business-cards` release flag is off for the caller's mode. While released, every card carries holder_kind, business_id, membership_id, card_grant_id and card_group_id ('person' and nulls on a person card).
Parameters
Query parameters
| Name | Required | Description |
|---|---|---|
| cardholder_id | optional | |
| programme_id | optional | |
| business_id | optional | |
| ids | optional | |
| limit | optional | |
| starting_after | optional |
Header parameters
| Name | Required | Description |
|---|---|---|
| X-Rigid-Acting-Person | optional |
Example
curl https://api.rigid.fi/v1/cards \
-H "Authorization: Bearer $RIGID_API_TOKEN"Responses
200A page of cards.
+ show properties− hide properties
+ show properties− hide properties
One of
mcc_allow
mcc_deny
country_allow
country_deny
channel_allow
channel_deny
per_txn_cap
per_day_cap
per_day_amount_cap
The cardholder's email address, joined on read, or null when there is none on file.
A business card's business (its trading name, else its legal name), read when the response is built (a replay under an Idempotency-Key carries the name it was built with); null on a person card.
When a business card's grant ends: the earliest of its valid-until date, a scheduled revoke and, once the grant has ended, when it ended. Null on a person card and on an active grant with neither a valid-until date nor a scheduled revoke.
400Validation error
401Authentication required
403Forbidden
404business_id names a business that is not found, or the business routes are not released
500Internal server error