Virtual Accounts
Create Virtual Account
POST
https://backendapi.sayswitchgroup.com/api/v1/dedicated_virtual_accountThis endpoint allows you to generate a dedicated virtual bank account for a specific customer. Virtual accounts facilitate easier tracking of payments and reconciliation.
Prerequisite: Before creating a virtual account, you must first create a customer account and retrieve the customer’s unique customer_code. This customer_code will be used in the request body to associate the virtual account with the correct customer.
Sample Request
JSON
{
"customer": "CUS_ngfz27uqjin3ny5"
}Example Usage
cURL
curl -X POST https://backendapi.sayswitchgroup.com/api/v1/dedicated_virtual_account \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_SECRET_KEY" \
-d '{
"customer": "CUS_ngfz27uqjin3ny5"
}'