Skip to main content

Balance Inquiry

TOPPAY TeamAbout 2 min

Request

The Balance Inquiry API enables merchants to retrieve real-time balance information for their accounts. This API provides detailed balance information, including available balance, frozen amount, and pending settlement amount.

Request URL

Template (if your country is not listed, use the domain and code provided by your account manager)

Sandbox: https://{country domain}/sandbox/{countryCode}/balance/v1
Production: https://{country domain}/{countryCode}/balance/v1

Prefer Host openapi.toppayment.com; legacy country domains remain available.

Full URLs by country

Country / regionCodeExample currencySandboxProduction
PhilippinesphPHPhttps://openapi.toppayment.com/sandbox/ph/balance/v1https://openapi.toppayment.com/ph/balance/v1
IndonesiaidIDRhttps://openapi.toppayment.com/sandbox/id/balance/v1https://openapi.toppayment.com/id/balance/v1
NigeriangNGNhttps://openapi.toppayment.com/sandbox/ng/balance/v1https://openapi.toppayment.com/ng/balance/v1
IndiainINRhttps://openapi.toppayment.com/sandbox/in/balance/v1https://openapi.toppayment.com/in/balance/v1
ThailandthTHBhttps://openapi.toppayment.com/sandbox/th/balance/v1https://openapi.toppayment.com/th/balance/v1
VietnamvnVNDhttps://openapi.toppayment.com/sandbox/vn/balance/v1https://openapi.toppayment.com/vn/balance/v1
PerupePENhttps://openapi.toppayment.com/sandbox/pe/balance/v1https://openapi.toppayment.com/pe/balance/v1
BrazilbrBRLhttps://openapi.toppayment.com/sandbox/br/balance/v1https://openapi.toppayment.com/br/balance/v1
MexicomxMXNhttps://openapi.toppayment.com/sandbox/mx/balance/v1https://openapi.toppayment.com/mx/balance/v1
ColombiacoCOPhttps://openapi.toppayment.com/sandbox/co/balance/v1https://openapi.toppayment.com/co/balance/v1
BoliviaboBOBhttps://openapi.toppayment.com/sandbox/bo/balance/v1https://openapi.toppayment.com/bo/balance/v1
PakistanpkPKRhttps://openapi.toppayment.com/sandbox/pk/balance/v1https://openapi.toppayment.com/pk/balance/v1
BangladeshbdBDThttps://openapi.toppayment.com/sandbox/bd/balance/v1https://openapi.toppayment.com/bd/balance/v1

See Regional payment guides for currency and payment method details.

Regional payment guides

Country / regionGuide
PhilippinesPhilippines — payment guide
IndonesiaIndonesia — payment guide
NigeriaNigeria — payment guide
IndiaIndia — payment guide
ThailandThailand — payment guide
VietnamVietnam — payment guide
PeruPeru — payment guide
BrazilBrazil — payment guide
MexicoMexico — payment guide
ColombiaColombia — payment guide
BoliviaBolivia — payment guide
PakistanPakistan — payment guide
BangladeshBangladesh — payment guide

Request Header Parameters

FieldRequiredTypeDescription
Content-TypeMStringHTTP content type specification
Fixed value: application/json
Required for proper request parsing

Request Body Parameters

FieldRequiredTypeDescription
currencyMString(32)Currency code
ISO 4217
Example: PHP, IDR, PKR (Pakistan)
mchNoMString(32)Merchant number
Unique merchant identifier assigned by the platform
Used for merchant authentication and transaction routing
signMStringSignature
Digital signature for request authentication
See Signature Generation
timestampMNumber (13 digits)Timestamp
Request timestamp in milliseconds
Example: 1749102949784

Request Body Example —Balance Inquiry Request:

Content-type: application/json

Response

HTTP Response

FieldRequiredTypeDescription
Content-TypeMStringHTTP response content type specification
Fixed value: application/json
Indicates JSON response format

Response Body Parameters

FieldRequiredTypeDescription
successMBooleanRequest Success Status
true: Success, false: Failure
codeMStringResponse Status Code
9999: Success
Other: Failure
msgOStringResponse Message
Human-readable response status description
Null on success
timeStampMNumberResponse Timestamp
Server response time in milliseconds
dataMObjectResponse Data Object
Contains balance details
mchNoMStringMerchant Number
Unique merchant identifier assigned by the platform
currencyMStringCurrency Code
ISO 4217 currency code specification
Example: PHP, IDR, INR
totalAmountMNumberTotal Amount
Total account amount (including all funds)
balanceMNumberAvailable Balance
Current balance available for transactions
freezeMNumberFrozen Amount
Amount currently frozen and unavailable for use
waitingSettleAmountMNumberPending Settlement Amount
Amount awaiting settlement
freezeWaitingSettleAmountMNumberFrozen Pending Settlement Amount
Frozen amount awaiting settlement
Content-type: application/json