Skip to content

Deactivate a card's spend control

POST/v1/cards/{id}/authorization-controls/{controlId}/deactivate

Requires an API client bearer token.

Deactivates a spend control on this card. Requires an Idempotency-Key header.

Parameters

Path parameters

NameRequiredDescription
idrequired
controlIdrequired

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.

Example

curl -X POST https://api.rigid.fi/v1/cards/{id}/authorization-controls/{controlId}/deactivate \
  -H "Authorization: Bearer $RIGID_API_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)"

Responses

200

The deactivated spend control.

mcc_allowarray of string
mcc_denyarray of string
country_allowarray of string
country_denyarray of string
channels_denyarray of "pos" | "ecommerce" | "atm" | "moto"
entry_mode_denyarray of "contactless" | "chip" | "magstripe" | "manual"
max_amountstring
idstringrequired
activebooleanrequired
400

Validation error

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
401

Authentication required

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
403

Forbidden

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
404

Card or control not found

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
409

The control is already inactive, or the Idempotency-Key was reused with a different payload

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
500

Internal server error

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring