Invoicing

Render an invoice as HTML or PDF

get/invoices/{id}/pdf

Request

  • Base URL: https://ledgerhq.pro/api/v1
  • URL: https://ledgerhq.pro/api/v1/invoices/{id}/pdf
  • Auth: one of:
    • HTTP bearer and API key in header x-organization-id
    • HTTP bearer and API key in header x-organization-id

Path parameters

idstring uuid required

Invoice UUID

Query parameters

format'pdf'

pdf returns application/pdf; omit for HTML preview

organizationIdstring uuid

Optional organization scope for authenticated API-key, MCP, and browser links

previewTokenstring

Authenticated short-lived preview token. Streams a revalidated preview-bound PDF and contains no recipient or message text.

inlineboolean

With format=pdf or previewToken, use inline=true to render the PDF in an authenticated browser frame; omit it for download behavior.

Response

Invoice document

Changes

No recorded changes to this operation across all 5 revisions of this API.