Billomat
Prerequisites
- A PolyDoc account and API key — sign up for free, no credit card required. The free plan includes 150 PDF conversions per month.
- A Billomat account — start a free trial to explore the platform.
Use Case 1: Custom-Branded Invoice PDFs
Replace Billomat's built-in invoice PDF with a fully custom-branded version generated by PolyDoc, triggered whenever a new invoice is created.New invoice -> Webhook -> Automation tool -> PolyDoc API -> Email with branded PDF
Enable API access in Billomat
In your Billomat account, go to Settings → API and enable API access. Note your Billomat subdomain and generate an API key.
/img/guides/billomat/billomat-uc1-enable-api.pngSet up a webhook for new invoices
Configure a webhook for the invoice.created event (via the Billomat API or a Zapier/Make integration). Point the webhook to your automation platform's endpoint URL.
/img/guides/billomat/billomat-uc1-webhook.pngConnect an automation tool
In your automation tool (Make, Zapier, or n8n), receive the webhook payload and use the invoice ID to fetch full invoice details from the Billomat REST API, including client data and line items.
/img/guides/billomat/billomat-uc1-automation-tool.pngMap invoice data to your PolyDoc template
Add an HTTP request step that calls PolyDoc:
- URL:
https://api.polydoc.tech/pdf/convert - Method: POST
- Headers:
- Body: Map the Billomat invoice fields (number, date, client, items) to your branded PolyDoc template
/img/guides/billomat/billomat-uc1-polydoc-step.pngDeliver the branded PDF
Add an email step to send the branded PDF to the client. Test by creating a sample invoice in Billomat and verifying the PDF arrives with your custom design.
/img/guides/billomat/billomat-uc1-deliver-pdf.pngUse Case 2: Batch Export as Branded PDFs
Export multiple invoices from Billomat as custom-branded PDFs in a single batch — useful for monthly statements or archival.Billomat API (list invoices) -> Loop -> PolyDoc API -> Storage
Fetch invoices via the Billomat API
Use the Billomat REST API to fetch a list of invoices for the desired period:
GET https://YOUR_SUBDOMAIN.billomat.net/api/invoices- Header:
X-BillomatApiKey: YOUR_BILLOMAT_KEY - Filter by date range, status, or client as needed
/img/guides/billomat/billomat-uc2-fetch-invoices.pngMap each invoice to your PolyDoc template
Loop through each invoice and map its fields (invoice number, date, client details, line items, totals) to your PolyDoc template's expected JSON structure.
/img/guides/billomat/billomat-uc2-map-data.pngGenerate and store the PDFs
Call the PolyDoc API for each invoice and save the returned PDF to cloud storage (Google Drive, S3, etc.) or a local directory. Name each file using the invoice number for easy retrieval.
/img/guides/billomat/billomat-uc2-store-pdfs.png