Skip to main content

Api Inquiry Balance

smilepayz teamsAbout 1 min

Request

API capability allowing systems, software, or applications to programmatically check and retrieve the current balance of an account.

Request Path:

{Base URL}/v2.0/inquiry-balance

Header Parameters

FieldAttributeTypeDescription
Content-TypeMStringapplication/json
X-TIMESTAMPMStringyyyy-MM-ddTHH:mm:ss[zoneOffset] eg: 2020-12-17T10:55:00+07:00
X-SIGNATUREMStringFocus:How to signature
X-PARTNER-IDMStringmerchant ID

Body Parameters

FieldAttributeTypeDescription
accountNoMString(128)the account of merchant
balanceTypesMList(String)default BALANCE

Info

  1. accountNo in sandbox random string,
  2. accountNo in prod you can find in merchant backend. click how to get account no
  3. The payin account used to collect the amount of all pay-in business
  4. The payout account is used to indicate the account used for pay-out.
  5. The balance between accounts can be transferred. how to transfer

Example Header – Balance Inquiry Request:

POST {Base URL}/v2.0/inquiry-balance HTTP/1.2

Content-type: application/json
X-TIMESTAMP: 2020-12-18T15:06:00+07:00
X-SIGNATURE: 85be817c55b2c135157c7e89f52499bf0c25ad6eeebe04a986e8c862561b19a5
X-PARTNER-ID: 20001

Response

API header format structure:

FieldAttributeTypeDescription
Content-TypeMStringapplication/json
X-TIMESTAMPMStringyyyy-MM-ddTHH:mm:ss[zoneOffset] eg: 2020-12-17T10:55:00+07:00

Response Body

FieldAttributeTypeDescription
codeMStringsuccess = "00"
messageMStringResponse message
accountInfosMBalanceAccountsBalanceAccounts
accountNoOStringThe account of merchant
balanceTypesOListbalanceTypes
nameOStringaccount name
accountNoOStringThe account of merchant
additionalInfoOJsonStringAdditional Information

Example Body – Balance Inquiry Response:

Content-type: application/json 
X-TIMESTAMP: 2020-12-17T10:55:00+07:00
Last update: