Read the limits of a card
/v1/cards/{id}/limitsRequires 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
| Name | Required | Description |
|---|---|---|
| id | required |
Header parameters
| Name | Required | Description |
|---|---|---|
| X-Rigid-Acting-Person | optional |
Example
curl https://api.rigid.fi/v1/cards/{id}/limits \
-H "Authorization: Bearer $RIGID_API_TOKEN"Responses
200The limits of the card.
+ show properties− hide properties
One of
spend
+ show properties− hide properties
card_spend
+ 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
velocity
+ show properties− hide properties
One of
Option 1
{
"type": "string",
"enum": [
"program",
"cardholder",
"card",
"business",
"membership",
"card_group"
]
}Option 2
{
"type": "null"
}Option 3
{
"type": "null"
}+ show properties− hide properties
One of
Option 1
{
"$ref": "#/components/schemas/DecimalAmountString"
}Option 2
{
"type": "null"
}+ show properties− hide properties
One of
Option 1
{
"$ref": "#/components/schemas/DecimalAmountString"
}Option 2
{
"type": "null"
}+ show properties− hide properties
One of
Option 1
{
"$ref": "#/components/schemas/DecimalAmountString"
}Option 2
{
"type": "null"
}400Validation error
401Authentication required
403Forbidden
404Card not found; or a person card while the person-card-limits release is off
500Internal server error
503velocity_store_unavailable: the counters could not be read