Dark Mode

Virtual Accounts Payment Simulate API


The following endpoint to simulate a payment to a virtual account

/payments/va/simulate

This endpoint only works in sandbox mode using API Key which starts with dp_test

Request parameters

Following are the parameters to be sent in the request body:

account_number

String
Mandatory

The account number to which money should be sent. Example: 1236170055

amount

String
Mandatory

Amount in IDR to be sent to account. Example: 12345.55

Example
curl --location --request POST 'https://api.durianpay.id/v1/payments/va/simulate' \
--header 'Authorization: [Base64({Your_Server_Key}:)]' \
--header 'Content-Type: application/json' \
--data-raw '{
    "amount": "12333",
    "account_number": "88565004532522",
    "force_fail": false
}'

Response Code

200 - Success

1
2
3
4
5
{
    "data": {
        "status": "Payment Successful"
    }
}

400 - Invalid Request

401 - Unauthorized Access

422 - Unprocessable Entity