Transition card lifecycle state
/v1/cards/{id}/transitionsRequires 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
| Name | Required | Description |
|---|---|---|
| id | required |
Header parameters
| Name | Required | Description |
|---|---|---|
| Idempotency-Key | required | 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-Person | optional |
Request body
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
200Updated card after the transition.
+ 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 — 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
401Authentication required
403Forbidden — 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)
404Card not found
409Idempotency-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
500Internal server error