Dark Mode

Virtual Accounts Fetch By ID API


The following endpoint retrieves the details of a single Virtual Account

/payments/va/:id

Path parameters

id

Integer
Mandatory

Unique identifier of the Virtual Account to be retrieved

Example
curl --location --request GET 'https://api.durianpay.id/v1/payments/va/va_sample_6YBBiGRAPa0943' \
--header 'Authorization: [Base64({Your_Server_Key}:)]'

Response Code

200 - Success

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
    "data": {
        "virtual_account": {
            "id": "va_sample_6YBBiGRAPa0943",
            "bank_code": "PERMATA",
            "account_number": "8856500451311212",
            "name": "Ardi Hanan Durian",
            "is_closed": false,
            "amount": 0,
            "currency": "IDR",
            "customer_id": "cus_akA2FwrR5B2217",
            "is_sandbox": true,
            "created_at": "2022-06-27T02:42:28.753671Z",
            "expiry_at": "2022-06-27T13:54:27.333786Z",
            "metadata": {},
            "is_disabled": false,
            "is_paid": false,
            "is_reusable": true,
            "min_amount": 50000,
            "max_amount": null,
            "va_ref_id": "",
            "auto_disable_after_payment": false
        },
        "virtual_account_status": "VirtualAccountExpired",
        "customer": {
            "id": "cus_akA2FwrR5B2217",
            "customer_ref_id": "",
            "given_name": "",
            "middle_name": "",
            "sur_name": "",
            "email": "p.ardi.h@gmail.com",
            "mobile": "+628978678578"
        }
    }
}

401 - Unauthorized Access

404 - Not Found