Skip to content

Retrieve a card

GET/v1/cards/{id}

Requires an API client bearer token.

Fetch a card by id (tenant-scoped). For a programme-scoped caller (a programme-pinned API client) another programme's card is answered 404, exactly as one that does not exist.

Parameters

Path parameters

NameRequiredDescription
idrequired

Example

curl https://api.rigid.fi/v1/cards/{id} \
  -H "Authorization: Bearer $RIGID_API_TOKEN"

Responses

200

The card.

idstring (uuid)required
programme_idstring (uuid)required
card_product_idstring (uuid)required
cardholder_idstring (uuid)required
pan_refstringrequired
last4stringrequired
iinstringrequired
exp_monthintegerrequired
exp_yearintegerrequired
state"unactivated" | "active" | "suspended" | "terminated" | "lost" | "stolen"required
form_factor"virtual" | "physical"required
controlsarray of one ofrequired
+ show properties

One of

mcc_allow

kind"mcc_allow"required
valuesarray of stringrequired

mcc_deny

kind"mcc_deny"required
valuesarray of stringrequired

country_allow

kind"country_allow"required
valuesarray of stringrequired

country_deny

kind"country_deny"required
valuesarray of stringrequired

channel_allow

kind"channel_allow"required
valuesarray of stringrequired

channel_deny

kind"channel_deny"required
valuesarray of stringrequired

per_txn_cap

kind"per_txn_cap"required
amountstringrequired

per_day_cap

kind"per_day_cap"required
countintegerrequired

per_day_amount_cap

kind"per_day_amount_cap"required
amountstringrequired
funding_account_idstring | nullrequired
cvk_generationstringrequired
created_atstringrequired
currency"EUR" | "GBP" | "USD"required
cardholder_namestringrequired
cardholder_emailstring | nullrequired

The cardholder's email address, joined on read, or null when there is none on file.

holder_kind"person" | "business_user"
business_idstring (uuid) | null
membership_idstring (uuid) | null
card_grant_idstring (uuid) | null
card_group_idstring (uuid) | null
business_namestring | null

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.

grant_ends_atstring (date-time) | null

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.

400

Validation error

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
401

Authentication required

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
403

Forbidden

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
404

Card not found

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
500

Internal server error

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring