E8 Wallet E8 Pay

Home / Developer docs / Queries and statements

Queries and statements

Orders, receipts, unmatched receipts, daily statements and the merchant wallet ledger can all be queried. This page covers the query and statement API, and player deposit addresses with their reconciliation.

  • API host https://open.e8qianbao.com
  • Path prefix /partner/v1
  • Based on the API notes of 2026-11-29

Order queries and reconciliation

Callbacks notify you; queries are the record. Use these endpoints after a lost callback, for reconciliation, or to check before shipping.

MethodPathDescription
GET/partner/v1/collect/orders/{id}Order query. status is pending, paid or expired; an online payment on chain before the deadline but confirmed late turns expired into paid. Paid orders may carry paid_network and paid_asset
GET/partner/v1/collect/ordersWallet bill list (newest first, cursor pages with next_cursor), filtered by status, external_ref or creation time
GET/partner/v1/collect/orders/by-ref/{external_ref}Look a bill up by your own order number
POST/partner/v1/collect/orders/{id}/closeClose an unpaid bill early: a transfer already on chain before the close still completes it, later ones become unmatched receipts; a paid bill returns 409 ORDER_ALREADY_PAID
GET/partner/v1/collect/payouts, /partner/v1/collect/payouts/{id}Payout (to E8 wallet) queries (read only; API payouts need not be on)
GET/partner/v1/collect/chain-payouts, /partner/v1/collect/chain-payouts/{id}Chain payout queries with status, network, fee and transaction hash
GET/partner/v1/collect/unmatchedUnmatched receipts at bill addresses (reason amount / late / duplicate / asset). Never ship on them
GET/partner/v1/collect/statements, …/{day}, …/{day}/lines, …/{day}.csvDaily collection statements: one per Beijing day and coin, opening + income − outgo = closing checked, detail lines paged or as a spreadsheet
GET/partner/v1/collect/ledgerMerchant wallet ledger (oldest first, cursor pages, merchant wallet only)
GET/partner/v1/collect/depositsCredited deposits to player addresses (newest first); see Deposit addresses and reconciliation
GET/partner/v1/collect/deposits/{txid}Look up a deposit by transaction hash (for missed credits and reconciliation)
GET/partner/v1/collect/balanceMerchant wallet balance (read only): USDT, TRX, EB, plus USDC once any was received
GET/partner/v1/orders, /partner/v1/orders/{id}Escrow checkout queries (orders:read); see Escrow checkouts
GET/partner/v1/statementsEscrow merchants' daily statements (orders:read); see below

paid_network and paid_asset

FieldValuesMeaning
paid_networkBALANCE / TRC20 / ERC20Balance payment / TRC20 online payment / ERC20 online payment
paid_assetUSDT / USDCThe coin the buyer paid with. USDC only appears with BALANCE (USDC balance conversion)
  • Present only when the order is paid (paid); the two fields always appear together or not at all.
  • Only merchants with Ethereum get them; orders paid before it was turned on have neither field.
  • For reconciliation and display only: mark orders paid by external_ref and take the amount from amount / net; old code that ignores these fields stays correct.

Daily statements and balance

  • Every day after midnight Beijing time, the platform builds the previous day's statement (Beijing calendar day) for every API client and sends it to the merchant owner through the bot; a statement never changes once built.
  • Collect merchants also get a daily collection statement (from 2026-11-27): one per Beijing day and coin with opening balance, income (bills by balance / TRC20 / ERC20, player deposits, unmatched receipts, transfers in), outgo (payouts, chain payouts, withdrawals, transfers back to the personal wallet) and closing balance, checked automatically; fetch it with GET /partner/v1/collect/statements or view and download it in the Mini App's API access page. The bot's daily summary shows the same figures.
  • Escrow merchants can see each day's details in the Mini App's API access page, or call GET /partner/v1/statements: without day it returns the last 31 summaries (without lines), with day=YYYY-MM-DD that day's summary and its lines; a day without a statement returns STATEMENT_NOT_FOUND (404).
  • Read the merchant balance at any time with GET /partner/v1/collect/balance; balance and bills are also in the merchant wallet in the Mini App.

Deposit addresses and reconciliation

These endpoints give each player on your platform a dedicated deposit address: the player sends USDT to it, the platform credits your merchant balance minus the collection fee and calls back, and you credit the player. Do not use them for orders (purchases), for E8 users topping up their own wallets, or for online payments, and never draw these addresses into a payment page. customer_ref may not start with e8bill. (case-insensitive, otherwise CUSTOMER_REF_RESERVED); deposit lists and hash lookups never include e8bill. records.

Without network (or with TRC20) nothing changes: TRC20 only. For a player's ERC20 address add network=ERC20; this needs ERC20 collection open for you, otherwise 403 NETWORK_NOT_ENABLED. network can only be TRC20 or ERC20; any other value returns 422 VALIDATION_ERROR.

MethodPathDescription
GET/partner/v1/meConnectivity and signature self-test, callable with any valid key (fields under Request signing)
GET/partner/v1/assets/{asset}/networksWhich networks this coin can use right now, callable with any valid key; asset is USDT, TRX or USDC, anything else returns 404 ASSET_NOT_FOUND
POST/partner/v1/collect/addressesGenerate a player's dedicated deposit address with the body {"customer_ref": "u1001"} (1–64 characters of A-Z a-z 0-9 _ - : .), adding "network": "ERC20" for ERC20. The same customer_ref always gets the same address on the same network (201 the first time, 200 after)
GET/partner/v1/collect/addresses/{customer_ref}Look up a generated address; add ?network=ERC20 for ERC20
GET/partner/v1/collect/depositsCredited deposits (newest first), optionally filtered by customer_ref, since (ISO time, on the credit time credited_at), limit (default 50, max 200) and offset (max 100000); add network=ERC20 for ERC20
GET/partner/v1/collect/deposits/{txid}Look up a deposit by transaction hash (missed credits, reconciliation). Without network only TRC20 is searched; ERC20 hashes need ?network=ERC20
GET/partner/v1/collect/balanceMerchant wallet balance (read only)

Response for an ERC20 address (0x followed by 40 characters, 42 in total):

JSON
{"customer_ref": "u1001", "address": "0x…", "network": "ERC20", "asset": "USDT",
 "token_contract": "0xdAC17F958D2ee523a2206206994597C13D831ec7", "chain_id": 1, "min_amount": "1", "created": true}

Crediting rules

TRC20ERC20
Blocks countedTRON mainnet solidified (irreversible) blocksEthereum mainnet finalized blocks
Usual time to credit1 minute15–20 minutes
Transfers countedSuccessful transfers of the official USDT contractSuccessful transfers of the official USDT contract (USDC below)
Minimum1 USDT; less is not credited1 USDT; less is not credited
Callbackcollect.deposit_creditedcollect.deposit_credited, plus network and related fields
  • The platform takes the collection fee at the merchant's rate; net is what reaches the merchant wallet. Each deposit is identified by txid + event_index, so one on-chain transfer is never credited twice.
  • A player's TRC20 and ERC20 addresses are two different addresses; never mix them up: tell the player which network's USDT each address accepts. ERC20 deposit records also carry network, chain_id and token_contract.
  • A few ERC20 credits have no single matching transaction: their txid is a platform-generated ID with "source": "balance", not findable in a block explorer; reconcile them with the platform's records.
  • USDC sent by a player to an ERC20 address is credited to the merchant's USDC balance minus the fee and appears in the ?network=ERC20 deposit list (asset USDC), but sends no callback, so never credit the player for it.
  • ETH (Ethereum's native coin) is not supported by this API. Tell players never to send ETH to an ERC20 address; ETH sent by mistake is not credited automatically and needs the platform's manual handling.
  • After a merchant's Ethereum is turned off, no new ERC20 addresses can be generated; deposits to ERC20 addresses already issued can still be queried.

Network query

GET /partner/v1/assets/USDT/networks → data
{"asset": "USDT", "networks": [
  {"network": "TRC20", "deposit": true, "withdraw": true, "collect": true, "min_deposit": "1", "confirmations": "solidified"},
  {"network": "ERC20", "deposit": true, "withdraw": true, "collect": true, "min_deposit": "1", "confirmations": "finalized", "chain_id": 1}
]}
FieldMeaning
networkTRC20, ERC20 (TRON for TRX)
collectWhether you can generate player deposit addresses on this network right now. ERC20 is open for USDT only
deposit / withdrawWhether E8 user wallet deposits / withdrawals on this network are open right now; for information only
min_depositMinimum credited amount; less is not credited
confirmationssolidified (TRON solidified) or finalized (Ethereum finalized)
chain_idERC20 only; 1 on Ethereum mainnet

While Ethereum is closed, the list holds only the TRON network. Features and your access change over time, so query before use instead of hard-coding.

Adding ERC20 to an existing integration

Unchanged: keys, the callback secret, the IP allowlist, the callback URL, signing, how orders and checkout_url work, and requests without network. Worth checking: ignore unknown JSON fields; credit players only on collect.deposit_credited with asset USDT; store network with each deposit record (no field means TRC20) and query per network when reconciling; tell players ERC20 takes about 15–20 minutes, their own wallet pays the gas in ETH, and only USDT may be sent.