Get invoice file URL
Returns a public URL to access the generated invoice file. The file is always regenerated to ensure it reflects the latest invoice settings and data. Files are stored with a hash-based key (invoice ID + file type + document type) to avoid creating duplicate files for the same invoice variant.
What is returned:
- Public URL that can be used to download or access the invoice file
- Filename of the generated file
File types supported:
pdf: PDF with embedded ZUGFeRD/XRechnung XML (hybrid PDF)pdf-without-invoice: PDF without embedded XMLxml-einvoice: XML E-Invoice file (XRechnung format)
Document types supported:
invoice: Standard invoice documentcancel: Cancellation/credit note documentfirst-reminder: First payment remindersecond-reminder: Second payment reminder
File storage behavior: Files are stored with a hash-based key (invoice ID + file type + document type) to ensure the same file URL is returned for the same invoice variant. However, files are always regenerated to ensure they reflect the latest invoice settings and data. This ensures accuracy while maintaining consistent URLs.
Use cases:
- Generate invoice PDFs for customer portals
- Download invoices for accounting purposes
- Access invoice files programmatically
- Share invoice URLs with customers or partners
/billing/invoices/{id}/file-urlAuthorizationOAuth2 access token · headerrequiredapi:readAuthorizationBearer token (JWT) · headerrequiredidstringrequiredInvoice ID (UUID)
fileTypestringrequiredType of file to generate
pdfpdf-without-invoicexml-einvoicedocumentTypestringrequiredType of document to generate
invoicecancelfirst-remindersecond-reminderInvoice file URL retrieved successfully
filenamestringrequiredFilename of the generated invoice file
urlstringrequiredWorkspace-authenticated URL for the generated invoice file. Send the Public API Bearer token when downloading it.
Invalid query parameters
Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions
Invoice not found