LedgerBee Public API
string · enum · requiredstring · uuid · requiredbooleanstring · requiredstring · date-time · required
Download Links
Mint a download link for a document PDF
GET
https://api.ledgerbee.com/api
/v1/download-links
x-api-key (header)
or
OAuth 2.0
Returns a short-lived URL that renders the document as application/pdf. Fetch it with a plain GET — it carries its own credential and takes no API key.
Works for a stored PDF and for one rendered on demand (draft=true, or a document with no stored file), because redeeming re-runs the same render the :id/pdf route runs.
Required Scopes
The same scope the document's own PDF route requires:
invoices-read—invoice,credit-notequotes-read—quoteorder-confirmations-read—order-confirmation
query Parameters
documentTypeWhich document the link should render
Enum values:
invoice
credit-note
quote
order-confirmation
Example: invoice
documentIdId of the document
draftRender the draft watermark version instead of the stored PDF
Default: false
Mint a download link for a document PDF › Responses
Link minted
urlFetch this URL directly to download the PDF. It needs no API key — the URL itself is the credential.
expiresAtWhen the link stops working