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, thenPOST /api/v1/invoices/{invoice_id}/generate_zugferd_pdf/with the returnedid; the response is the PDF file. -
Validate an e-invoice:
POST /api/v1/validate/with the file in the form fieldinvoice_file(multipart form, file name with the extension .xml or .pdf). -
Mark an invoice as paid: look up its
idandopen_amountwithGET /api/v1/managed-invoices/and the parameterinvoice_id, thenPOST /api/v1/managed-invoices/{id}/add-payment/withamount(the open amount) and optionallypayment_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 parameterdue_stateset topaidoroverdue. Remember theidvalues of the previous query to recognise new entries.