API reference
Balances & ledger
Your balance is kept per currency code. Every change to it is a ledger entry, so you can always reconcile it against payments and payouts.
List balances#
GET
/api/v1/balancesAuth: API keyReturns the project's balance in every currency it has ever held. Amounts are decimal strings in each currency's units. Testnet balances are separate (e.g. BSC_TESTNET_USDT) and never mix with mainnet funds.
No parameters.
curl "https://www.jagpay.io/api/v1/balances" \ -H "Authorization: Bearer $JAGPAY_API_KEY"{ "status": true, "data": { "balances": [ { "currency": "BSC_USDT", "amount": "12480.5" }, { "currency": "TRON_USDT", "amount": "3120" }, { "currency": "ETH_ETH", "amount": "0.842" } ] }}List ledger entries#
GET
/api/v1/ledgerAuth: API keyReturns the most recent balance changes, newest first. Credits are positive, debits negative.
Query parameters
currencystringoptional- Only entries in this currency code.
limitintegeroptional- How many entries to return.1–200, default 50.
| type | Meaning |
|---|---|
payment | + Funds received for a payment (reference: the payment). |
fee | − JagPay fee for that payment. |
payout | − A payout you sent: amount + service fee + network fee. (Refunds of underpaid / late payments are paid from the deposit itself and never touch your balance.) |
settlement | − An auto-settlement to your wallet: amount + network fee. |
payout_reversal | + A failed payout returned to your balance (amount + service fee). |
curl "https://www.jagpay.io/api/v1/ledger?currency=BSC_USDT&limit=50" \ -H "Authorization: Bearer $JAGPAY_API_KEY"{ "status": true, "data": { "entries": [ { "id": "4a2f1c9e-0b7d-4e21-9a3c-5d6e7f8a9b0c", "currency": "BSC_USDT", "amount": "-1206.12", "type": "payout", "reference_type": "payout", "reference_id": "po_2Hk9sLq4Xv7Bn1Cz", "created_at": "2026-11-26T10:20:00.000Z" }, { "id": "9c8b7a6d-5e4f-4321-8fed-cba987654321", "currency": "BSC_USDT", "amount": "-1.25", "type": "fee", "reference_type": "payment", "reference_id": "pay_8kQ2mZx7LrT4bW9e", "created_at": "2026-11-26T10:12:00.000Z" }, { "id": "1b2c3d4e-5f60-4718-92a3-b4c5d6e7f809", "currency": "BSC_USDT", "amount": "251.25", "type": "payment", "reference_type": "payment", "reference_id": "pay_8kQ2mZx7LrT4bW9e", "created_at": "2026-11-26T10:12:00.000Z" } ] }}Auto-settle#
Instead of calling the payouts API yourself, you can let JagPay sweep your earnings to your own wallet. Auto-settle is configured in the dashboard (Settings → Auto settle), per currency:
- When the balance reaches a threshold, keep a reserve and send the rest to your wallet.
- Only the network fee is charged; there's no service fee on settlements.
- Settlements appear in
GET /api/v1/payoutswithkind: "settlement". They don't send webhooks; the owner gets an email instead (if payout emails are on). - Rules pause themselves if a settlement fails or the network fee would eat the amount, and the owner gets an email.
- Requires two-factor authentication on the owner's account, like all payouts.
