Update Virtual Account

Use this endpoint to update the properties of an existing virtual account. Common use cases include:

  • Updating the transaction amount for closed virtual accounts

  • Extending or modifying the expiry date of an active virtual account

  • Expiring a virtual account immediately by setting the expiredDate to the current timestamp

This operation requires a valid virtualAccountNo, along with the associated trxId.

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

Virtual Account prefix. Please pass the same one as returned in the Create VA API.

string
required

Virtual Account suffix. Please pass the same one as returned in the Create VA API.

string
required

Full Virtual Account Number. Please pass the same one as returned in the Create VA API.

string
required

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

string
required

Transaction reference from merchant’s system.

string

Expiry time in ISO 8601: YYYY-MM-DDThh:mm:ss+07:00.

totalAmount
object

Conditional. Required if updating the amount of a closed-amount type virtual account.

Headers
string
required

Indicates the media type of the resource. value: application/json

string
required

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

string

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

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

Responses

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