Overview / System / Download an invoice as PDF

Download an invoice as PDF

get https://api.flactrum.com/v1/billing/invoices/{invoice}/download

Returns a PDF file, not JSON. Only paid invoices can be downloaded; an unpaid, failed or cancelled invoice returns 404 so that no document for an uncollected payment circulates as if it were paid.

Required scope billing.read
Success status200

Parameters

NameInTypeDescription
invoice * path string ULID of the record.

Examples

Recorded from the test suite — these are real requests and their real responses.

curl -X GET 'https://api.flactrum.com/v1/billing/invoices/01m43mzsqbdzpgb8xb1bec6ayc/download' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Accept: application/json'

HTTP 200 · application/pdf

(file download — the body is the report itself, not JSON)