Console API — Billing
Balance, invoices and payment rails for a Triport account: create and cancel invoices, build in-app transactions, and follow balance/invoice event streams.
- Method / Endpoint
https://triport.io/v1/billing/…- Network
- — (account-level)
- Authentication
- Console session — see session model
- Tier / rate limit
- Account-level; not metered against chain RPS budgets
What this section covers
Everything the Billing tab does: read the prepaid balance and its ledger, list the crypto rails available for top-ups, create an invoice for a plan, build the in-app transaction that pays it, and cancel an unpaid one. The two SSE streams push balance and invoice state changes so a dashboard can react without polling.
The endpoint list is below; every page carries the request/response schema, error envelope and a runnable example. Part of the Console API.
GET Balance SSE event stream
A Server-Sent Events stream that pushes your account's authoritative balance on connect and on every credit or debit.
POST Build in-app transaction
Build the unsigned transaction that pays an in-app invoice from the customer's linked wallet — Solana or EVM (Ethereum / BSC / Polygon) — ready for the wallet to sign.
POST Cancel an invoice
Cancels one of your own pending invoices, transitioning it from pending to cancelled.
POST Create an invoice
Open a single-rail payment invoice for the signed-in console user — one invoice maps to exactly one channel, one rail, and one deposit address.
GET Get balance
Returns the authenticated user's current account balance, in micro-USD, along with its lock state.
GET Get invoice
Fetch a single invoice you own, including its payment address, QR payment URI, and how much has been received so far.
GET Invoice SSE event stream
Subscribe to live state changes for a single invoice over Server-Sent Events (SSE) — from the moment it is created until it is paid, cancelled, or expires.
GET List balance ledger entries
Returns a cursor-paginated, newest-first slice of your account's balance ledger (every credit and debit).
GET List invoices
Return the authenticated user's billing invoices, optionally filtered by status and capped to a limit.
GET List payment rails
Returns the catalog of payment rails (network + token combinations) the platform can accept, so the frontend can build its payment channel/rail selector.
POST Pay invoice from balance
Settle a pending invoice instantly by debiting the signed-in user's prepaid balance.
POST Submit in-app transaction
Tell the billing backend about a signed in-app payment: relay a signed Solana transaction, or report the signature / hash of one the wallet already broadcast (Solana or EVM).