Freeze or unfreeze a virtual card. A frozen card declines all transactions until it is unfrozen.
PUT https://api.yativo.com/api/v1/customer/virtual/cards/update/{card_id}
Requires an Idempotency-Key header.
Path Parameters
Request Body
"freeze" to block the card, or "unfreeze" to re-enable it.
curl -X PUT 'https://api.yativo.com/api/v1/customer/virtual/cards/update/card_01HX9KZMB3F7VNQP8R2WDGT4E5' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: freeze-card-001' \
-d '{ "action": "freeze" }'
curl -X PUT 'https://api.yativo.com/api/v1/customer/virtual/cards/update/card_01HX9KZMB3F7VNQP8R2WDGT4E5' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: freeze-card-001' \
-d '{ "action": "unfreeze" }'