Ledger and reports
GET/v1/finance/summary

Get finance summary

View as .md
curl -X GET "https://api.52-28-238-205.sslip.io/v1/finance/summary" \  -H "Cookie: <console session cookie>"

Returns paid, refunded and net totals per asset, rail, network and rail-network pair, reconciliation counts, and the trial balance of the main and simulated ledgers. Amounts in different assets are never summed. Requires ledger:read.

Server URLhttps://api.52-28-238-205.sslip.io
GET/v1/finance/summaryBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Requires permissionledger:read
Held by owner, admin, finance, merchant_owner, operator. The caller must hold this permission, or the call is refused with 403.

Authorization

cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Response Body

Success.

application/json
  1. response
totals*

Sums over all payments. With more than one asset the amounts are null (never summed across assets); read totals_by_asset instead.

totals_by_asset?array<>
Default[]
totals_by_rail*array<>
totals_by_network*array<>
totals_by_rail_and_network*array<>
reconciliation*
trial_balance*
[key: string]?any