Skip to main content
GET
Download statement as PDF

Description

Download statement PDF Sibling of GET /statements/users/{tenantUserId}/{periodStart}/{periodEnd} (same URL plus /pdf) — streams the rendered statement (same branding + currency conversion as the emailed PDF) as a PDF attachment instead of a JSON envelope. Registered ahead of the JSON detail route on the router so /pdf is never swallowed by the period path params. Same self-or-admin guard and draft-visibility rule as the JSON detail endpoint: members cannot download an editable draft Statement row (readFrom='table', status='draft'); ledger-fallback rows are allowed since they represent immutable ledger facts. Authorization:
  • Required role: user or higher

Code Examples

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

tenantUserId
string<uuid>
required
periodStart
string<date-time>
required
periodEnd
string<date-time>
required

Response

PDF stream. Cache-Control: no-store (financial document).

The response is of type file.