Core featuresWithdraw from card
Withdraw from card
Updated
You can withdraw funds from a card back to the customer's account using the Withdraw from card endpoint:
curl --request POST \--url https://api.gravv.xyz/v1/cards/withdraw \--header 'Api-Key: <Api Key>' \--header 'Idempotency-Key: 979879887678789_attempt_1' \--header 'content-type: application/json' \--data '{"card_id": "9e3cccad-e9ae-47a0-81ee-063af0159310","amount": 1.0}'
You will receive a response with the blockchain transaction hash:
{"data": {"tx_hash": "0x2e5d0af9189b4b4c23bc64b96295e730609ec91e50e452a5da0a4af4bfe5c192"},"error": null}