Virtual AccountCreate Virtual Account

Create Virtual Account

This 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.

API Endpoint

POST https://backendapi.sayswitchgroup.com/api/v1/dedicated_virtual_account

Sample Request

{
  "customer": "CUS_ngfz27uqjin3ny5"
}
ParameterTypeDescriptionRequired
customerstringThe unique identifier of the customer, obtained from the create customer account response as customer_code.Yes

Example Usage

    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"
  }'