Skip to content

Update card status

PATCHhttps://api.gravv.xyz/v1/cards/{card_id}/update

Update the status of a card. You can freeze a card temporarily or block it permanently.

Status Options:

  • active: Card is active, and you can use it for transactions

  • freeze: Card is temporarily frozen, and you can't use it until you reactivate it by updating the status to active

  • blocked: Card is permanently blocked, and you can't reactivate it

Path Params

  • card_idstringrequired

    The ID of the card to update

Body Params

  • statusstringrequired

    New status for the card

    Allowed:activefreezeblocked
  • limitinteger

    Optional spending limit for the card

Responses

Language
curl --request PATCH \
--url 'https://api.gravv.xyz/v1/cards/{card_id}/update' \
--header 'Api-Key: <Api Key>' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"status": "freeze"
}'
{
"data": null,
"error": {
"code": "INVALID_ARGUMENT",
"message": "Invalid status value. Must be one of: active, freeze, blocked",
"details": {}
}
}