Skip to content

Balance Inquiry

1. Balance inquiry service introduction

Checus balance inquiry service provides real-time balance inquiry and day-end balance inquiry:

  • Real-time balance inquiry: Query the customer ledger balance in real time based on the merchant’s request time, account type, and currency.
  • Day-end balance inquiry: Returns balance information for the specified date and time zone.

2. Real-time balance inquiry

  1. API parameters API parameters

API name: Real-time balance inquiry /currentBalanceQuery

Request Parameters

ParameterTypeRequiredMax lengthDescriptionExample
versionStringM8API version. Current value: 1.21.2
requestTimeStringM32Request time, conforms to RFC 3339, format: yyyy-MM-dd'T'HH:mm:ss.SSSXXX2022-01-22T10:00:00.500+08:00
keyVersionStringM8Key version. Current value: 11
merchantNoStringM15Merchant number, unique identifier generated when the merchant signs a contract with Checus10229810189301
appIdStringM64Merchant application ID, a unique identifier assigned by Checus46153e2b787241ae8b01857bb087d1bd
+dataobjectM32Request payload
「plainSignbooleanOWhether to display accounts with zero balance — true: display; false: do not display (default), directly filter out the accountfalse
「accountTypeListOAccount type: -ACQUIRING acquiring account -DISBURSEMENT disbursement account (formerly AVAILABLE) -FREEZE frozen account -SETTLE unsettled account -REVERSE security deposit account. When account type is not specified, return all accounts with non-zero balanceAVAILABLE
「accountCurrencyListO323-letter currency code, conforms to ISO 4217. When currency is not specified, return all accounts with non-zero balanceUSD

Response Parameters

ParameterTypeRequiredMax lengthDescriptionExample
codeStringM32API response code, 'APPLY_SUCCESS' indicates successAPPLY_SUCCESS
msgStringM256Response message, 'Success.'Success
+dataobjectCResponse payload
「inquiryTimeStringM64Inquiry time, conforms to RFC 3339, format: yyyy-MM-dd’T’HH:mm:ss.SSSXXX2022-01-22T10:00:00.500+08:00
+AccountRealTimeTypeListM64
-accountTypeStringO32Account typeAVAILABLE
-balanceSBigDecimalO(20,2)AmountA9998.00
-currencyStringO33-letter currency code, conforms to ISO 4217USD
「errorCodeStringC32Error code when the inquiry fails
「errorMsgStringC256Error description when the inquiry fails
  1. Sample code

Merchant request parameters

json
{
  "version": "1.2",
  "keyVersion": "1",
  "requestTime": "2022-01-12T20:31:20.000+0800",
  "appId": "41c4f31f487a42b7996979e775c3d7bc",
  "merchantNo": "010113855475499",
  "data": {
    "plainSign": true,
    "accountCurrency": [
      "EGP"
    ],
    "accountType": [
      "AVAILABLE",
      "FREEZE",
      "SETTLE",
      "REVERSE"
    ]
  }
}

Response parameters

json
{
  "msg": "",
  "code": "APPLY_SUCCESS",
  "data": {
    "accountRealTimeTypes": [
      {
        "balance": 18277.20,
        "accountType": "SETTLE",
        "currency": "EGP"
      }
    ],
    "inquiryTime": "2023-02-23T07:47:05.940Z"
  }
}

3. Day-end balance inquiry

  1. API parameters API parameters

API name: Day-end balance inquiry /dayEndBalanceQuery

Request Parameters

ParameterTypeRequiredMax lengthDescriptionExample
versionStringM8API version. Current value: 1.21.2
requestTimeStringM32Request time, conforms to RFC 3339, format: yyyy-MM-dd'T'HH:mm:ss.SSSXXX2022-01-22T10:00:00.500+08:00
keyVersionStringM8Key version. Current value: 11
merchantNoStringM15Merchant number, unique identifier generated when the merchant signs a contract with Checus10229810189301
appIdStringM64Merchant application ID, a unique identifier assigned by Checus46153e2b787241ae8b01857bb087d1bd
+dataobjectM32Request payload
「accountTypeListOAccount type: -ACQUIRING acquiring account -DISBURSEMENT disbursement account (formerly AVAILABLE) -FREEZE frozen account -SETTLE unsettled account -REVERSE security deposit account. When not specified, return allAVAILABLE
「accountCurrencyStringO323-letter currency code, conforms to ISO 4217. When not specified, return allIDR
「inquiryDateStringM32Supports querying the last 90 days"2023-01-01"
「timezoneStringM32Time zone. Currently supports (UTC, CST)CST

Response Parameters

ParameterTypeRequiredMax lengthDescriptionExample
codeStringM32API response code, 'APPLY_SUCCESS' indicates successAPPLY_SUCCESS
msgStringM256Response message, 'Success.'Success
+dataobjectCResponse payload
「timezoneStringM32Time zoneCST
「acctTimeStringM63Time corresponding to the balance, conforms to RFC 3339, format: yyyy-MM-dd’T’HH:mm:ss.SSSXXX2022-01-22T10:00:00.500+08:00
+accountEndDayTimeTypesListMAccount type results, the account types queried
-accountTypeStringM32Account typeAVAILABLE
-currencyStringM33-letter currency code, conforms to ISO 4217. When not specified, return all currencies with balance greater than 0IDR
-initalBalanceBigDecimalM(20,4)Opening balance43820.00
-endBalanceBigDecimalM(20,4)Closing balance1157812.00
-inflowAmountBigDecimalM(20,4)Amount of outflow during the period; amount inflow during the day0.00
-outflowAmountBigDecimalM(20,4)Amount of inflow during the period; amount outflow during the day1201632.00
「errorCodeStringC32Order failure error code
「errorMsgStringC256Order failure error description
  1. Sample code

Day-end balance inquiry request

json
{
  "version": "1.2",
  "keyVersion": "1",
  "requestTime": "2022-01-12T20:31:20.000+0800",
  "appId": "41c4f31f487a42b7996979e775c3d7bc",
  "merchantNo": "010113855475499",
  "data": {
    "accountCurrency": "TRY",
    "accountType": [
      "AVAILABLE"
    ],
    "inquiryDate": "2023-02-20",
    "timezone": "utc"
  }
}

Day-end balance inquiry response

json
{
  "msg": "",
  "code": "APPLY_SUCCESS",
  "data": {
    "acctTime": "2023-02-22",
    "timezone": "GMT+0:00",
    "accountEndDayTimeTypes": [
      {
        "accountType": "AVAILABLE",
        "currency": "TRY",
        "inflowAmount": 0.00,
        "initalBalance": 0.00,
        "endBalance": 0.00,
        "outflowAmount": 0.00
      }
    ]
  }
}

4. Account types

Account typeDescription
ACQUIRING acquiring balance accountStores funds that have reached the settlement cycle through acquiring business
DISBURSEMENT disbursement balance accountStores funds transferred in via top-up or settlement-to-top-up that can be used for disbursement (formerly AVAILABLE account)
FREEZE frozen accountStores funds that are frozen due to disputes or risk control
SETTLE unsettled accountStores funds that have not reached the settlement cycle and are not yet settled out
REVERSE security deposit accountStores security deposit funds

Released under the MIT License.