Create Virtual Account

The following endpoint creates a new virtual account

Body Params
string
required
Defaults to PERMATA

The bank code for the Virtual Account. Supported Bank Codes: "BRI", "BCA", "MANDIRI", "PERMATA", "CIMB", "BNI", "NOBU"

string
required
Defaults to Dpay Jane Doe

The name of the virtual account which will appear in ATM/Banking app. Example: "John's Virtual Account"

boolean
Defaults to true

Whether account can accept open(any amount) or closed(specific amount). Example: true or false

string
Defaults to 20000

Specify amount to be paid to va when is_closed=true. Example: "12000.12"

customer
object
required

Object containing fields (id, email, mobile, given_name). One of (id, mobile, email) is mandatory field and given_name is mandatory.

int32
Defaults to 100

Number of minutes left till expiry from now. maximum: 15768000 minutes

string
Defaults to 123456

Account suffix for the Virtual Account. If not provided, a random suffix will be automatically generated for the virtual account number.

boolean
Defaults to false

Whether multiple payments can be used for a particular VA. Example: true or false

string
Defaults to VA_123

A reference ID which the merchant wants to use for a specific VA. Example: "VA_XYZ_1234"

boolean
Defaults to false

Disable a reusable VA temporarily after a payment. Patch API can be used to enable it again after changing some parameters. Example: true or false

Responses

Language
Credentials
Basic
base64
:
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json