---
title: "Render an invoice as HTML or PDF"
method: GET
path: "/invoices/{id}/pdf"
tags: ["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

- `id` string, uuid, required

## Query parameters

- `format` 'pdf'
- `organizationId` string, uuid
- `previewToken` string
- `inline` boolean

## Response `200`

Invoice document

## Other responses

- `default`: Error response

---

[API](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api.md) · [All operations](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/revisions/9a8269f0a586?raw)
