Skip to content
HisarPay

API reference

Withdrawals

Withdrawals from your balance to trusted saved addresses. Details in the guide →

POST/v1/withdrawals

Send a payout from your balance to a trusted saved address

Scope: withdrawalsKey: live only

The address must be saved and trusted. The same idempotency_key returns the existing withdrawal with 200.

Request body

  • tokenstringrequired

    Values:TRXUSDT

  • amountstringrequired

    pattern ^(0|[1-9]\d{0,11})(\.\d{1,6})?$

  • to_addressstringrequired
  • idempotency_keystringrequired

    1–255 chars

Responses

Example request
curl -X POST https://hisarpay.com/v1/withdrawals \
  -H "Authorization: Bearer $HISARPAY_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "token": "USDT",
    "amount": "250",
    "to_address": "TPayoutAddressSavedInDashboard001",
    "idempotency_key": "payout-2026-10-23-001"
  }'

Details in the guide

GET/v1/withdrawals

List withdrawals

Filters can be combined. q finds a withdrawal by its id or the beginning of it, its destination address or transaction id, or by part of its note.

Scope: withdrawalsKey: live only

Query parameters

  • statusstringoptional

    Comma-separated: pending_review, queued, processing, completed, failed, rejected

  • sourcestringoptional

    Comma-separated: panel, api, auto, admin

  • tokenstringoptional

    Coin: TRX or USDT.

    Values:TRXUSDT

  • created_fromstringoptional

    Created at or after. A day like 2026-12-01 (UTC) or a time like 2026-12-01T09:30:00Z

  • created_tostringoptional

    Created before. A day is taken in whole

  • qstringoptional

    Search text

    ≤ 100 chars

  • limitintegeroptional

    Page size.

    1–100

  • beforestring (uuid)optional

    next_before from the previous response, for the next page.

Responses

  • 200 OKJSON response
    2 fields
    • dataarray<Withdrawal>
    • next_beforestring | number· nullable
Example request
curl "https://hisarpay.com/v1/withdrawals?limit=20" \
  -H "Authorization: Bearer $HISARPAY_API_KEY"
GET/v1/withdrawals/{id}

Withdrawal status

Scope: withdrawalsKey: live only

Path parameters

  • idstring (uuid)required

    The record id.

Responses

Example request
curl https://hisarpay.com/v1/withdrawals/0b6a3f52-3c1d-4a7e-8f4b-1d2c3e4f5a6b \
  -H "Authorization: Bearer $HISARPAY_API_KEY"

Details in the guide