Transition card lifecycle state
POST
/v1/cards/{id}/transitionsRequires an API client bearer token.
Transition a card through its legal state machine (unactivated → active, active → suspended, etc.). Requires an Idempotency-Key header. Emits card.transition.
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. |
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
200Updated card after the transition.
idstring (uuid)required
programme_idstring (uuid)required
card_product_idstring (uuid)required
cardholder_idstring (uuid)required
pan_refstringrequired
pan_hashstringrequired
last4stringrequired
iinstringrequired
exp_monthintegerrequired
exp_yearintegerrequired
state"unactivated" | "active" | "suspended" | "terminated" | "lost" | "stolen"required
controlsarray of one ofrequired
+ show properties− hide 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
created_atstringrequired
currency"EUR" | "GBP" | "USD"required
400Validation error
typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
401Authentication required
typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
403Forbidden
typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
404Card not found
typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
409Idempotency-Key reused with a different payload
typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
422Illegal state transition (illegal_transition)
typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
500Internal server error
typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring