This API gives details of a created Virtual Account. The details includes expiration date, amount, etc.
The API returns a 200 HTTP response code in case of a successful retrieval of a created Virtual Account details.
The API returns a 401 HTTP response code in case of a missing or invalid token.
The API returns a 503 HTTP response code in case of service unavailable because of bad request (e.g. missing and/or wrong headers), or a validation error (e.g. missing and/or wrong parameters) or any other server issue.

Sample Request

📘

This request requires query parameters to identify the virtual account and transaction details. Ensure that all required parameters (virtualAccountId, transactionId, bankCode, customerId) are included in the request.

https://sandbox.api.of.ayoconnect.id/api/v1/virtualAccount?virtualAccountId={{virtualAccountId}}&transactionId={{transactionId}}&bankCode={{bankCode}}&customerId={{customerId}}


Sample Response

{
  "responseCode": 200,
  "responseMessage": "ok",
  "responseTime": "20230411123614",
  "referenceNumber": "aaccad392d7c42e098163c94bc738438",
  "transactionId": "uesmjxpi7iuylp083ddr5c6xgsuwog64",
  "virtualAccountData": {
    "virtualAccountId": "230411110614699649123IRGG6Q",
    "virtualAccountNumber": "1234500012345678",
    "virtualAccountStatus": "PAID",
    "virtualAccountName": "Pembayaran Tagihan Y",
    "virtualAccountPhone": "62796335646",
    "correlationId": "qole43pi7iuylp083ddr5c6xgsuwog64",
    "customerId": "AYOAPP-559PAC23",
    "totalAmount": {
      "value": "3250000.00",
      "currency": "IDR"
    },
    "billAmount": {
      "value": "3250000.00",
      "currency": "IDR"
    },
    "adminFee": {
      "value": "4000.00",
      "currency": "IDR"
    },
    "billDetails": [
      {
        "billName": "Pembayaran Tagihan Y",
        "billAmount": {
          "value": "3250000.00",
          "currency": "IDR"
        },
        "billDescription": {
          "english": "Motorcycle payment.",
        "indonesia": "Pembayaran sepeda motor."
        }
      }
    ],
    "expiredAt": "2023-04-11T13:17:14+07:00"
  }
}
Language
Credentials
Bearer
JWT
Click Try It! to start a request and see the response here!