LedgerBee Developer
  • Getting started
  • Conventions
  • Products
  • API Reference
Subscriptions
Products & Pricing
Billing documents
    OverviewInvoicesCredit notesQuotesOrder confirmationsDocument templates
WebhooksMCP (AI agents)
Customer Portal
Billing documents

Document Templates

Read the PDF design templates a document renders with over the LedgerBee public API (base URL https://api.ledgerbee.com/api/v1). A template's id can be passed as documentTemplateId when creating or sending an invoice, quote, or order confirmation to pick a specific design. Authenticate with the x-api-key header.

Templates are configured in the LedgerBee app; the public API exposes them read-only so a partner can discover an id to reference. There is one scope:

  • document-templates-read — list templates.

The public API exposes templates for the four partner document types only: invoice-template, credit-note-template, quote-template, and order-confirmation-template. Choosing a template is optional; a document with no documentTemplateId renders with the customer's or company's default design.

Operations

OperationEndpointScope
ListGET /v1/document-templatesdocument-templates-read

The list is paginated (page, limit), filterable by documentType and search, and sortable by name, documentType, or createdAt. A type's default template is the one flagged isDefault: true, not the first item in the list; list position follows the requested sort, so rely on the isDefault flag. See the list operation.

TerminalCode
curl 'https://api.ledgerbee.com/api/v1/document-templates?documentType=invoice-template' \ -H 'x-api-key: <your-key>'

Pass a returned id as documentTemplateId on a document create or send to render it with that template:

TerminalCode
curl -X POST 'https://api.ledgerbee.com/api/v1/quotes' \ -H 'x-api-key: <your-key>' \ -H 'Content-Type: application/json' \ -d '{ "customerId": "0197a943-2325-7829-b835-b6c71a293065", "date": "2026-01-15", "documentTemplateId": "0197a943-2325-7829-b835-b6c71a293040", "lines": [ { "priceId": "0197a943-2325-7829-b835-b6c71a293099", "quantity": 1 } ] }'

Errors

ConditionError codeFix
documentType filter outside the four partner typesA 400 validation errorFilter by invoice-template, credit-note-template, quote-template, or order-confirmation-template.
Last modified on June 14, 2026
Order confirmationsWebhooks
On this page
  • Operations
  • Errors