Ledger and reports
GET/v1/ledger/entries

List ledger entries

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

Lists ledger entries with their account and transaction, newest first, 50 per page, with the total match count. Requires ledger:read.

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

    Only entries on this ledger account id.

  • intent_idstring

    Only entries for this payment intent (pi_...).

  • cursorstring

    next_cursor from the previous page.

  • namespacestring

    Ledger namespace: main (default) or simulated.

  • qstring

    Search (substring): entry or transaction id, account code or name, transaction description or reference, intent id.

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

account_id?|

Only entries on this ledger account id.

intent_id?|

Only entries for this payment intent (pi_...).

cursor?|

next_cursor from the previous page.

namespace?Namespace

Ledger namespace: main (default) or simulated.

Default"main"
q?|

Search (substring): entry or transaction id, account code or name, transaction description or reference, intent id.

Response Body

Success.

application/json
  1. response
data*array<>
next_cursor?|

Cursor for the next page, or null on the last page.

total*Total
[key: string]?any