Virtual Account Management
Fetch Virtual Accounts
Endpoint
GET {{baseUrl}}
/business/virtual-account
Description
This endpoint allows you to fetch all virtual accounts
Request
Headers
Content-Type: application/json
Authorization: Bearer {your_api_token}
Fetch Virtual Account
Endpoint
POST {{baseUrl}}/business/virtual-account/{{customerID}}
Description
This endpoint allows you to fetch a particular virtual account, effectively marking it as inactive and preventing any further transactions.
Request
Headers
Content-Type: application/json
Authorization: Bearer {your_api_token}
Delete Virtual Account
Endpoint
POST {{baseUrl}}/business/virtual-account/delete-virtual-account/{{customerID}}
Description
This endpoint allows you to delete a virtual account, effectively marking it as inactive and preventing any further transactions.
Request
Headers
Content-Type: application/json
Authorization: Bearer {your_api_token}
Path Parameters
Parameter | Type | Required | Description |
---|---|---|---|
customer | string | Yes | Unique identifier of the virtual account |
Example Request
Response
Success (200)
Field | Type | Description |
---|---|---|
| string | Success message |
| string | Unique identifier of the account |
| string | New status of the account ("archived") |
Example Response
Enable Virtual Account
Endpoint
POST {{baseUrl}}/virtual-accounts/{account_id}/enable
Description
This endpoint allows you to enable a previously disabled virtual account.
Request
Headers
Content-Type: application/json
Authorization: Bearer {your_api_token}
Path Parameters
Parameter | Type | Required | Description |
---|---|---|---|
| string | Yes | Unique identifier of the virtual account |
Example Request
Response
Success (200)
Field | Type | Description |
---|---|---|
| string | Success message |
| string | Unique identifier of the account |
| string | New status of the account ("enabled") |
Example Response
Disable Virtual Account
Endpoint
POST {{baseUrl}}/virtual-accounts/{account_id}/disable
Description
This endpoint allows you to disable a virtual account, preventing any further transactions until it is re-enabled.
Request
Headers
Content-Type: application/json
Authorization: Bearer {your_api_token}
Path Parameters
Parameter | Type | Required | Description |
---|---|---|---|
| string | Yes | Unique identifier of the virtual account |
Example Request
Response
Success (200)
Field | Type | Description |
---|---|---|
| string | Success message |
| string | Unique identifier of the account |
| string | New status of the account ("disabled") |
Example Response
Last updated