Ledger and reports
POST/v1/exports

Create export

View as .md
curl -X POST "https://api.52-28-238-205.sslip.io/v1/exports" \  -H "Cookie: <console session cookie>" \  -H "Content-Type: application/json" \  -d '{"filters":{},"include_simulated":true,"format":"string","kind":"string","group_by":"string"}'

Starts a background export of payments or ledger entries as CSV or PDF, with optional filters and grouping; poll it until ready. Requires export:create. The file can be downloaded for 24 hours.

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/exportsBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Body

application/json · required. Fields are listed under Request body below.

Requires permissionexport:create
Held by 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)

Request Body

application/json
  1. body
filters?
Default{}
include_simulated?Include Simulated

Include simulated (Treasury and Guarantee) rows in the export.

Defaultfalse
format?Format
Default"csv"
kind?Kind
Default"payments"
group_by?string|null

Response Body

Success.

application/json
  1. response
export*
[key: string]?any