Skip to Content
Virtual Accounts

Create a Virtual Account

The accountDetails is only required for on-behalf-of collections via Virtual Account.

POST
/v1/virtual-accounts

Authorization

authorization
headerAuthorizationBearer <SECRET_API_KEY>

Set Your Secret API Key

Header Parameters

Idempotency-Key?string

A unique value, eg. a UUID.

Request Body

application/json
accountDetails?AccountDetails

Details of the person or corporate associated with this virtual account. Only required for on-behalf-of collections via Virtual Account.

virtualAccountName*string

The name associated with the virtual account.

For DBS, maximum length is 50 characters.

virtualAccountNumber*string

The complete virtual account number including any mandatory prefixes.

Response Body

OK

*/*
accountDetails?AccountDetails

Details of the person or corporate associated with this virtual account.

createdAt?string

Time at which the object was created. In ISO 8601 format.

id?string

The Virtual Account ID.

internalAccountId?string

ID of the Internal Account this virtual account belongs to.

resultCode?string

More detailed result code for failure.

status?string

Status of the account. One of PENDING, ACTIVE, DELETED, or FAILED.

updatedAt?string

Time at which the object was last updated. In ISO 8601 format.

virtualAccountName?string

The name associated with the virtual account.

For DBS, maximum length is 50 characters.

virtualAccountNumber?string

The complete virtual account number including any mandatory prefixes.

Example Request
curl -X POST 'https://api.tryacme.com/v1/virtual-accounts' \
  -H 'Content-Type: application/json' \
  -d '{
  "virtualAccountName": "string",
  "virtualAccountNumber": "string"
}'
Example Response
{
  "accountDetails": {
    "address": {
      "city": "string",
      "country": "string",
      "line1": "string",
      "line2": "string",
      "postalCode": "string",
      "state": "string"
    },
    "alias": "string",
    "countryOfIncorporation": "string",
    "dateOfBirth": "string",
    "dateOfIncorporation": "string",
    "idCountry": "string",
    "idNumber": "string",
    "idType": "string",
    "nationality": "string",
    "type": "string"
  },
  "createdAt": "string",
  "id": "string",
  "internalAccountId": "string",
  "resultCode": "string",
  "status": "string",
  "updatedAt": "string",
  "virtualAccountName": "string",
  "virtualAccountNumber": "string"
}