Singapay Home Page
Logo Icon
  1. Virtual Account
  2. Get List Virtual Accounts

Information

MethodPathFormatAuthentication
GET/api/v1.0/virtual-accounts/{account_id}jsonOAuth 2.0 with Access Token

Request Details

Headers Structure

FieldValueTypeMandatoryLengthDescriptionExample
X-PARTNER-IDapi_keyAlphanumericMandatoryAPI key obtained from the merchant dashboard.b3ed7d4b-a96c-6c08-b3c7-12c3124242d9
Acceptapplication/jsonAlphabeticMandatorySpecifies JSON as the expected response format.application/json
AuthorizationBearer {bearerToken}AlphanumericMandatoryBearer token obtained from the get access token endpoint.Bearer eyJ0eXAiOiJKV1{…}

Body Structure

FieldValueTypeMandatoryLengthDescriptionExample
kind-AlphabeticMandatory-temporary or permanentpermanent

Body Example

{
  "kind": "temporary"
}

Response Details

Response Structure

FieldTypeMandatoryLengthDescriptionExample
statusNumericMandatory3HTTP Status Code200
successBooleanMandatory12xx is true. 4xx-500 is false.true
dataArray ObjectConditional---
> idNumericMandatory-virtual account id23643
> amountObjectMandatory---
>> valueNumericMandatory-Balance amount, if kind is “permanent” value will be 099000
>> currencyAlphabeticMandatory3currencyIDR
> kindEnumMandatory-temporary or permanenttemporary
> bank_codeAlphanumericMandatory-Bank code like BRI, BCA, BNIBRI
> numberNumericMandatory1616 length va number6343654354
> statusAlphabeticMandatory-Status of virtual account Values is active or expiredactive
> created_atTimestampMandatory-Date created in unix millisecond timestamp1714616095080
paginationObjectConditional---
> countNumericMandatory-Data quantity2
> totalNumericMandatory-Total of all data100
> perPageNumericMandatory-Total data per page10
> currentPageNumericMandatory-current page1
> totalPagesNumericMandatory-Total page3
> linksObjectMandatory-Next or previous links-

Response Example

Success: Here’s an example of a successful response.

{
  "status": 200,
  "success": true,
  "data": [
    {
      "id": "2374354",
      "amount": {
        "value": "11000.00",
        "currency": "IDR"
      },
      "kind": "temporary",
      "status": "expired",
      "bank_code": "BRI",
      "number": "465436543564546",
      "created_at": "1714616095080"
    }
  ],
  "pagination": {
    "count": 1,
    "total": 1,
    "perPage": 10,
    "currentPage": 1,
    "totalPages": 1,
    "links": {}
  }
}

Error: This is an example of an unsuccessful request.

{
    "status": 401,
    "success": false,
    "error": {
        "code": 401,
        "message": "Unauthorized partner, please sign in"
    }
}