cURL
curl --request POST \ --url https://api-dev.paygen.online/cards/{cardId}/fund \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "debitAccountId": "account_id", "amount": 25 } '
{ "statusCode": 123, "message": "<string>", "data": { "_id": "<string>", "debitAccountId": "<string>", "cardHolderId": "<string>", "type": "virtual", "brand": "Mastercard", "currency": "NGN", "metadata": {}, "status": "<string>", "spendingControls": { "channels": { "atm": true, "pos": true, "web": true, "mobile": true }, "allowedCategories": [ "<string>" ], "blockedCategories": [ "<string>" ], "spendingLimits": [ { "amount": 123, "interval": "<string>", "categories": [ "<string>" ] } ] }, "enable2FA": true, "disposable": true } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
x >= 0.01
Card funded successfully.
Hide child attributes
virtual
physical
Mastercard
Visa
NGN
USD