Ledger and reports
GET/v1/reports

Get spend report

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

Returns paid, refunded and net amounts grouped by agent, team, merchant, rail, network, day, week or month, one row per key and asset. Requires ledger:read; merchants cannot group by agent or team.

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

    Grouping: agent (default), team, merchant, rail, network, day, week or month.

  • fromstring

    Start of the period, ISO 8601 (inclusive).

  • tostring

    End of the period, ISO 8601.

  • railstring

    Only payments on this rail: x402, wdk or card.

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

group_by?Group By

Grouping: agent (default), team, merchant, rail, network, day, week or month.

Default"agent"
from?|

Start of the period, ISO 8601 (inclusive).

to?|

End of the period, ISO 8601.

rail?|

Only payments on this rail: x402, wdk or card.

Response Body

Success.

application/json
  1. response
group_by*Group By
from?string|null
to?string|null
rows*array<>
[key: string]?any