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.). 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
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
400Validation error — including illegal_transition (the requested from→to transition is not permitted), or a missing/blank Idempotency-Key header
401Authentication required
403Forbidden — the caller may not act on this programme, 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
404Card not found
409Idempotency-Key reused with a different payload
500Internal server error