cURL
curl --request POST \ --url https://nini.monieswitch.com/virtual-accounts \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data '{ "accountName": "Omar Marmoush", "amount": 200, "metadata": { "reason": "testing" }, "webhookURL": "https://webhook.site/fec45fa6-7859-4faf-93ac-0b11517c2410" }'
{ "data": { "accountName": "Omar Marmoush", "accountNumber": "4490281930", "amount": "200", "bankCode": "999270", "bankName": "Xpress Wallet", "createdAt": "2023-12-05T18:14:42.334Z", "customerReference": "dS0xqm9ibC4cjBJSpNiOs9aj9", "expirationDurationInMinutes": 30, "metadata": { "reason": "testing" }, "mode": "SANDBOX" }, "message": "Account created successfully", "status": true }
Create Virtual Account
Set value to 'Bearer {{MERCHANT_SECRET_KEY}}'
The response is of type object.
object