Actions8
Create Incoming Invoice
AI-generatedSummary
Creates an incoming invoice in work4all from form fields or a JSON object, optionally uploading binary attachments and filtering the returned GraphQL response.
Inputs
- Mandant — Select the work4all tenant or supply its ID; it is sent as the x-work4all-mandant header (default ID: 1).
- Invoice data — Choose Form Fields or JSON. Supply supplier details or a supplier code, optional project identifiers, invoice number, note, dates, payment terms, cash discounts, currency code, and invoice line items. In form mode, enter line items by manual mapping or as a JSON array; in JSON mode, include an invoiceItems array in the invoice object. Supplier code takes priority over other supplier lookup fields; project code takes priority over project number and name. Name and other lookup matches must be unique.
- Attachments — Choose form fields or a JSON array of binaryPropertyName entries. Each name must refer to binary data on the current input item; selected files are uploaded and attached to the invoice.
- Output — Choose Raw for the full GraphQL response, Simplified for a reduced set of invoice fields, or Selected Fields and provide a JSON array of nested invoice field names. Non-raw modes retain the top-level status fields.
Output shape
One n8n item per input item, with the operation result in json.
The result contains the GraphQL response. Simplified and Selected Fields filter fields inside the nested invoice object while retaining newSupplierCreated, newSupplierCode, accountSet, taxKeytSet, invoiceCreated, and errorMessage. Raw returns the unfiltered response. The operation throws an error if GraphQL reports errors, errorMessage is set, invoiceCreated is false, or a valid invoice code is missing.