cURL
curl --request POST \ --url https://getmipay.com/api/v1/virtual-cards/cards/{cardId}/operation \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: <api-key>' \ --data '{ "action": "topup", "amount": 50, "currency": "USD" }'
{ "success": true, "data": { "operation": "topup", "card_id": "CARD_123456", "new_balance": 20, "currency": "USD", "status": "success", "transactions": [ { "id": "TXN_123", "amount": 10, "currency": "USD", "type": "topup", "status": "completed", "created_at": "2023-11-07T05:31:56Z" } ] } }
Perform generic operations on virtual card
Virtual card ID
"CARD_123456"
Operation details
topup
withdraw
enable
disable
get_balance
get_transactions
"topup"
x >= 0.01
50
USD
EUR
XAF
"USD"
Operation completed successfully
true
Show child attributes