Fetch Virtual Account

The following endpoint retrieves the details of all Virtual Accounts created

get/payments/va

Request

  • Base URL
    https://api.durianpay.id/v1
  • URL
    https://api.durianpay.id/v1/payments/va
  • Auth
    HTTP basic

Query parameters

fromstring

Timestamp (in Unix format) from when the virtual accounts should be fetched

tostring

Timestamp (in Unix format) up till when virtual accounts are to be fetched

skipinteger

The number of virtual accounts to be skipped. The default value is 0. This can be used for pagination, in combination with count

limitinteger

The number of virtual accounts to be skipped. The default value is 0. This can be used for pagination, in combination with count

Response

200

Example response

{
  "data": {
    "virtual_accounts": [
      {
        "id": "va_sample_QOIFczRMfG3448",
        "bank_code": "PERMATA",
        "account_number": "88565004123456",
        "name": "Ardi Hanan Durian",
        "is_closed": true,
        "amount": 12333,
        "currency": "IDR",
        "customer_id": "cus_CtZ8r2GOvq7341",
        "is_sandbox": true,
        "created_at": "2022-06-28T10:55:24.578679Z",
        "expiry_at": "2022-07-08T05:25:24.580583Z",
        "is_reusable": true,
        "va_ref_id": "1234",
        "auto_disable_after_payment": true
      }
    ],
    "total": 10
  }
}

Changes

No recorded changes to this operation across all 2 revisions of this API.