Skip to content
HisarPay

API reference

Balances

Available, pending and held balance per coin, and the ledger entries behind them. Details in the guide →

GET/v1/balances

Merchant balances per coin

Scope: readKey: live or test

Returns an empty list with test keys; test mode has no balance.

Responses

  • 200 OKJSON response
    1 fields
    • dataarray<object>
      • tokenstring
      • availablestring
      • heldstring
      • pending_withdrawalsstring
Example request
curl https://hisarpay.com/v1/balances \
  -H "Authorization: Bearer $HISARPAY_API_KEY"
GET/v1/balance-transactions

Balance history (ledger) for a coin

Scope: readKey: live or test

Returns an empty list with test keys; test mode has no balance.

Query parameters

  • tokenstringrequired

    Coin: TRX or USDT.

    Values:TRXUSDT

  • limitintegeroptional

    Page size.

    1–200

  • beforeintegeroptional

    next_before from the previous response, for the next page.

    -9007199254740991–9007199254740991

Responses

  • 200 OKJSON response
Example request
curl "https://hisarpay.com/v1/balance-transactions?token=USDT&limit=20" \
  -H "Authorization: Bearer $HISARPAY_API_KEY"