API reference
Balances
Available, pending and held balance per coin, and the ledger entries behind them. Details in the guide →
- GET/v1/balancesMerchant balances per coin
- GET/v1/balance-transactionsBalance history (ledger) for a coin
GET
/v1/balancesMerchant balances per coin
Scope:
readKey: live or testReturns an empty list with test keys; test mode has no balance.
Responses
- 200 OKJSON response
1 fields
dataarray<object>tokenstringavailablestringheldstringpending_withdrawalsstring
curl https://hisarpay.com/v1/balances \
-H "Authorization: Bearer $HISARPAY_API_KEY"GET
/v1/balance-transactionsBalance history (ledger) for a coin
Scope:
readKey: live or testReturns an empty list with test keys; test mode has no balance.
Query parameters
tokenstringrequiredCoin: TRX or USDT.
Values:
TRXUSDTlimitintegeroptionalPage size.
1–200
beforeintegeroptionalnext_before from the previous response, for the next page.
-9007199254740991–9007199254740991
Responses
- 200 OKJSON response
curl "https://hisarpay.com/v1/balance-transactions?token=USDT&limit=20" \
-H "Authorization: Bearer $HISARPAY_API_KEY"