Create Virtual Account

The following endpoint creates a new virtual account

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
Defaults to Durianpay Test Nobel

Mandatory Display name for the virtual account which will appear in ATM/Banking app.

string
Defaults to 12345678

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

string
required
Defaults to O

"C" = Closed Amount -> only accepts payments that exactly match the predefined amount
"O" = Open Amount -> accepts payments of any amount

string
required

Transaction reference from merchant’s system. Must be unique.

string

Expiry time in ISO 8601: YYYY-MM-DDThh:mm:ss+07:00. Required if the VA is reusable.

totalAmount
object

Conditional. Required if virtualAccountTrxType is set to "C" (Closed Amount Virtual Account).

additionalInfo
object
required
Headers
string
required

Timestamp in ISO8601 format, Example: 2024-05-14T18:54:57+07:00

string
required

Represents Access Token (B2B) of a request; string starts with keyword “Bearer ” followed by Access Token (B2B)

string
required

Signature generated by encrypting HTTP method, relative path, access token, minified request body, and timestamp

string
required

Unique ID for a partner given by Durianpay upon completing registration. Its value is same as the X-CLIENT-KEY

string
required

Unique messaging reference identifier generated by merchant and should be unique within the same day

string
required
Defaults to 95521

Device identification on which the API services is currently being accessed by the merchant. Possible value: 95521

Response

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