Skip to content

Withdraw from card

POSThttps://api.gravv.xyz/v1/cards/withdraw

Withdraw funds from a customer's card balance.

Body Params

  • card_idstringrequired

    ID of the card to withdraw from

  • amountnumberrequired

    Amount to withdraw from the card

Headers

  • Idempotency-Keystring

    A unique key to prevent duplicate requests.

Responses

Language
curl --request POST \
--url 'https://api.gravv.xyz/v1/cards/withdraw' \
--header 'Api-Key: <Api Key>' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"card_id": "9e3cccad-e9ae-47a0-81ee-063af0159310",
"amount": 1
}'
{
"data": {
"tx_hash": "0x2e5d0af9189b4b4c23bc64b96295e730609ec91e50e452a5da0a4af4bfe5c192"
},
"error": null
}