Skip to content

Read the limits of a card

GET/v1/cards/{id}/limits

Requires an API client bearer token.

Lists every control that binds the card: each spend control with its cap, each spend rule stored on the card itself (card_spend: a per-transaction cap or an allow/deny list), and each windowed rule (a velocity control, or the card's own daily caps) with its use and what remains in the current window. The figures are the sums authorization decides on, over-counting by at most one bucket, so what is shown as remaining is never more than the next authorization allows. On a business card an API client names its acting person in X-Rigid-Acting-Person (400 acting_person_required without it): the card's own user with an active membership, or an active member of the business with can_view_all_cards; anyone else is 403 acting_person_not_permitted (403 admin_kyc_not_complete when the KYC of the admin no longer holds). Each such read writes one business.read audit intent. The card's own user without can_view_all_cards sees use and remainder only for the rules on the card and on their own membership: a velocity rule shared more widely (scope business, card_group or program) is listed with its cap, its window and blocking, and without used_count, remaining_count, used_amount and remaining_amount. blocking is true when a limited dimension has nothing left (its count used up, or its amount used up), so the next authorization the rule counts declines; an amount rule with something left still declines a purchase larger than what remains, which a row without figures does not show. A member with can_view_all_cards whose admin KYC holds (on their own card, a lapsed KYC gives the own view), and console staff acting under their own identity (no X-Rigid-Acting-Person), see every figure; staff naming an acting person see what that person sees. While the `person-card-limits` release flag is off for the card's programme and the caller's mode, the read of a person card answers 404 not found, header or not. When it is on, a header on a person card is refused (400 acting_person_not_applicable), and a person card's read carries every figure, the programme-wide use of a program-scoped rule included. Counters that cannot be read are a 503, never a figure without them.

Parameters

Path parameters

NameRequiredDescription
idrequired

Header parameters

NameRequiredDescription
X-Rigid-Acting-Personoptional

Example

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

Responses

200

The limits of the card.

card_idstring (uuid)required
currencystringrequired
as_ofstring (date-time)required
limitsarray of one ofrequired
+ show properties

One of

spend

kind"spend"required
scope"program" | "card_product" | "card" | "cardholder" | "business" | "membership" | "card_group"required
scope_idstringrequired
controlobjectrequired
+ show properties
mcc_allowarray of string
mcc_denyarray of string
country_allowarray of string
country_denyarray of string
channels_denyarray of "pos" | "ecommerce" | "atm" | "moto"
entry_mode_denyarray of "contactless" | "chip" | "magstripe" | "manual"
max_amountstring
idstringrequired
activebooleanrequired

card_spend

kind"card_spend"required
controlone 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

velocity

kind"velocity"required
control_idstring (uuid) | nullrequired
source"velocity_control" | "card_per_day_cap" | "card_per_day_amount_cap"required
scopeone ofrequired
+ show properties

One of

Option 1

{
  "type": "string",
  "enum": [
    "program",
    "cardholder",
    "card",
    "business",
    "membership",
    "card_group"
  ]
}

Option 2

{
  "type": "null"
}

Option 3

{
  "type": "null"
}
scope_idstring | nullrequired
window"hour" | "day" | "month"required
max_countinteger | nullrequired
used_countinteger | null
remaining_countinteger | null
max_amountone ofrequired
+ show properties

One of

Option 1

{
  "$ref": "#/components/schemas/DecimalAmountString"
}

Option 2

{
  "type": "null"
}
used_amountone of
+ show properties

One of

Option 1

{
  "$ref": "#/components/schemas/DecimalAmountString"
}

Option 2

{
  "type": "null"
}
remaining_amountone of
+ show properties

One of

Option 1

{
  "$ref": "#/components/schemas/DecimalAmountString"
}

Option 2

{
  "type": "null"
}
blockingbooleanrequired
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; or a person card while the person-card-limits release is off

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
500

Internal server error

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
503

velocity_store_unavailable: the counters could not be read

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring