Skip to content

Transition card lifecycle state

POST/v1/cards/{id}/transitions

Requires an API client bearer token.

Transition a card through its legal state machine (unactivated → active, active → suspended, etc.). Activation is refused while the card's product requires a billing address and its cardholder has none on file (billing_address_required). Requires an Idempotency-Key header. Emits card.transition. A move to active — a first activation or a reactivation — is refused while the card's cardholder is under a confirmed sanctions close; the refusal lifts when two reviewers approve or dismiss the match. A business card is moved by its own user (an active membership with can_hold_card: activate, freeze, unfreeze, report lost or stolen) or terminated under can_grant_cards (an admin, whose KYC must still hold, else 403 admin_kyc_not_complete); an API client names the person in X-Rigid-Acting-Person (400 acting_person_required without it), console staff may omit it; anyone else is 403 acting_person_not_permitted. A business card terminated, lost or stolen ends its grant: card.closing and card_grant.ended are emitted.

Parameters

Path parameters

NameRequiredDescription
idrequired

Header parameters

NameRequiredDescription
Idempotency-Keyrequired

Client-chosen. An identical retry with the same key returns the stored response; reusing the key with a different payload returns 409.

X-Rigid-Acting-Personoptional

Request body

to"unactivated" | "active" | "suspended" | "terminated" | "lost" | "stolen"required

Example

curl -X POST https://api.rigid.fi/v1/cards/{id}/transitions \
  -H "Authorization: Bearer $RIGID_API_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "to": "unactivated"
}'

Responses

200

Updated card after the transition.

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 — including illegal_transition (the requested from→to transition is not permitted), billing_address_required (activation needs a billing address the cardholder does not have), acting_person_required (an API client moving a business card without X-Rigid-Acting-Person), acting_person_invalid (a header that is not a person id, on a business card or while business cards are released), or a missing/blank Idempotency-Key header

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
401

Authentication required

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
403

Forbidden — the caller may not use this route; or (code `live_mode_card_read_only`) live mode refuses every legal move except one into terminated, lost or stolen and the freeze active → suspended, pending scheme certification; or, on a business card, acting_person_not_permitted (the acting person may not make this move) or admin_kyc_not_complete (the terminating admin's KYC no longer holds)

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
404

Card not found

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
409

Idempotency-Key reused with a different payload; or (code cardholder_under_sanctions_close) a move to active while the card's cardholder is under a confirmed sanctions close

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
500

Internal server error

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring