curl -X POST 'https://api.yativo.com/api/v1/customer/virtual/cards/withdraw' \
-H 'X-Api-Key: YOUR_API_KEY' \
-H 'X-Api-Secret: YOUR_API_SECRET' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: withdraw-card-001' \
-d '{
"cardId": "card_01HX9KZMB3F7VNQP8R2WDGT4E5",
"amount": 50
}'
{
"status": "success",
"status_code": 200,
"message": "Withdrawal successful",
"data": {
"card_id": "card_01HX9KZMB3F7VNQP8R2WDGT4E5",
"amount_withdrawn": "50.00",
"new_card_balance": "100.00",
"currency": "USD"
}
}
Virtual Cards
Withdraw from Card
Move funds from a virtual card back to your wallet
POST
/
customer
/
virtual
/
cards
/
withdraw
curl -X POST 'https://api.yativo.com/api/v1/customer/virtual/cards/withdraw' \
-H 'X-Api-Key: YOUR_API_KEY' \
-H 'X-Api-Secret: YOUR_API_SECRET' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: withdraw-card-001' \
-d '{
"cardId": "card_01HX9KZMB3F7VNQP8R2WDGT4E5",
"amount": 50
}'
{
"status": "success",
"status_code": 200,
"message": "Withdrawal successful",
"data": {
"card_id": "card_01HX9KZMB3F7VNQP8R2WDGT4E5",
"amount_withdrawn": "50.00",
"new_card_balance": "100.00",
"currency": "USD"
}
}
Withdraws funds from a virtual card back to your USD wallet balance.
POST https://api.yativo.com/api/v1/customer/virtual/cards/withdraw
Requires an
Idempotency-Key header.curl -X POST 'https://api.yativo.com/api/v1/customer/virtual/cards/withdraw' \
-H 'X-Api-Key: YOUR_API_KEY' \
-H 'X-Api-Secret: YOUR_API_SECRET' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: withdraw-card-001' \
-d '{
"cardId": "card_01HX9KZMB3F7VNQP8R2WDGT4E5",
"amount": 50
}'
{
"status": "success",
"status_code": 200,
"message": "Withdrawal successful",
"data": {
"card_id": "card_01HX9KZMB3F7VNQP8R2WDGT4E5",
"amount_withdrawn": "50.00",
"new_card_balance": "100.00",
"currency": "USD"
}
}
Authorizations
Your API key (yativo_pk_...) from Developers → API Keys. Send together with X-Api-Secret.
Your API secret (yativo_sk_...), shown once when the key is created.
Headers
A unique string per request to ensure idempotent processing.
Body
application/json

