Skip to content

REST API for developers

Automation tools (Zapier, Make, n8n)

Typical steps with the HTTP module of your automation tool.

Contents

Calls with the HTTP module

Automation tools can call the API with their HTTP module. Send the header Authorization: Api-Key <key> with every request. Typical steps:

  • Create an e-invoice: POST /api/v1/invoices/ with the invoice as JSON, then POST /api/v1/invoices/{invoice_id}/generate_zugferd_pdf/ with the returned id; the response is the PDF file.
  • Validate an e-invoice: POST /api/v1/validate/ with the file in the form field invoice_file (multipart form, file name with the extension .xml or .pdf).
  • Mark an invoice as paid: look up its id and open_amount with GET /api/v1/managed-invoices/ and the parameter invoice_id, then POST /api/v1/managed-invoices/{id}/add-payment/ with amount (the open amount) and optionally payment_date. The status paid follows from the payments.
  • New, paid or overdue invoices (polling): GET /api/v1/managed-invoices/, for paid or overdue invoices with the parameter due_state set to paid or overdue. Remember the id values of the previous query to recognise new entries.