Ledger and reports
GET/v1/ledger/accounts

List ledger accounts

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

Lists the caller's ledger accounts with debits, credits and balance, per asset. Amounts are integer strings. Requires ledger:read.

Server URLhttps://api.52-28-238-205.sslip.io
GET/v1/ledger/accountsBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Query
  • namespacestring

    Ledger namespace: main (default) or simulated.

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)

Query Parameters

namespace?Namespace

Ledger namespace: main (default) or simulated.

Default"main"

Response Body

Success.

application/json
  1. response
data*array<>
[key: string]?any