Singapay Home Page
Logo Icon
  1. Balance Inquiry
  2. Detail Account

Information

MethodPathFormatAuthentication
GET/api/v1.0/balance-inquiry/{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{…}

Response Details

Response Structure

FieldTypeMandatoryLengthDescriptionExample
statusNumericMandatory3HTTP Status Code200
successBooleanMandatory12xx is true. 4xx-500 is false.true
dataArray ObjectConditional---
> account_idNumericMandatory-Id of the account374564354
> pending_balanceObjectMandatory-The amount of savings that cannot be used-
>> valueNumericMandatory-Amount of pending balance9000000
>> currencyAlphabeticMandatory-Currency typeIDR
> available_balanceObjectMandatory-Account balance that can be used for transactions-
>> valueNumericMandatory-Amount of available balance9000000
>> currencyAlphabeticMandatory-Currency typeIDR
> balanceObjectMandatory-Available_balance + pending_balance-
>> valueNumericMandatory-Total balance9000000
>> currencyAlphabeticMandatory-Currency typeIDR

Response Example

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

{
  "status": 200,
  "success": true,
  "data": {
    "account_id": "6745357455",
    "pending_balance": {
      "value": "110000.00",
      "currency": "IDR"
    },
    "available_balance": {
      "value": "100000.00",
      "currency": "IDR"
    },
    "balance": {
      "value": "1110000.00",
      "currency": "IDR"
    }
  }
}

Error: This is an example of an unsuccessful request.

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