Billing & account
Read your credit balance, top up, and pull commission-log transactions. See Credit line & top-up for the conceptual model.
Endpoints
- GET
/api/balancereturns{ balance, credit_limit, auto_collect, status }.statusis'critical'when balance has reachedcredit_limit, otherwise'ok'. - POST
/api/topupcreate a top-up request. Body:{ chain, token, amount }. Returns the one-time deposit address and Cassia-side tracking id.eip155:42161(Arbitrum) andsolana:mainnetare not accepted here yet and return a 400 — top up on Ethereum, BSC, or Tron. Accepting customer payments on those chains is unaffected. - GET
/api/topup/historypaginated list of past top-ups. Query:limit,offset. - GET
/api/topup/:idpoll a single top-up by id (merchant-scoped). - GET
/api/billing/transactionsrecentcommission_logrows joined to invoice for per-row context (chain, token, amount paid). Query:limit(≤ 200, default 100). Powers the Credits page transactions table.
Top-up limits
Each account can make up to 10 top-up creation requests per hour and hold up to 3 open (pending or paid) top-ups at a time. Over the hourly limit, POST /api/topup returns 429. With 3 top-ups already open it returns 409: pay or wait for an open top-up to finish, then create a new one.
POST /api/topup errors
| Status | error | Meaning | What to do |
|---|---|---|---|
503 | issuance_paused | Creation is temporarily unavailable on this network. Nothing was created. | Retry later. |
503 | address_issuance_unavailable | A deposit address could not be prepared. Nothing was created. | Retry later; contact support if it persists. |
Updated . For integration help, email [email protected]