Actions10
- Contacts Endpoint Actions
- Invoices Endpoint Actions
- Files Endpoint Actions
Overview
This node integrates with the LexOffice API to perform operations related to invoices. Specifically, for the "Invoices Endpoint" resource and the "Render an Invoice Document (PDF)" operation, the node retrieves a PDF document of a specified invoice from LexOffice. This is useful in scenarios where you need to automatically fetch and process invoice documents, such as archiving invoices, sending them via email, or integrating with other systems for further processing.
Practical examples:
- Automatically download invoice PDFs after they are generated in LexOffice.
- Attach invoice PDFs to emails sent to customers.
- Store invoice PDFs in cloud storage or document management systems.
Properties
| Name | Type | Meaning |
|---|---|---|
| Invoice ID | String | The unique identifier of the invoice whose PDF document should be rendered and downloaded. Required for fetching the specific invoice document. |
Output
The output of this operation is the binary data of the requested invoice's PDF document. In n8n, this will typically appear as a binary property (e.g., data), which contains the actual PDF file content. You can use this binary output in subsequent nodes, such as for saving to disk, sending as an email attachment, or uploading to another service.
Dependencies
- External Service: Requires access to the LexOffice API.
- API Key: You must configure valid LexOffice API credentials in n8n under the name
lexOfficeApi. - n8n Configuration: No special environment variables are required beyond standard credential setup.
Troubleshooting
Common Issues:
- Invalid or missing Invoice ID: If the provided Invoice ID does not exist or is incorrect, the API will return an error.
- Authentication errors: If the LexOffice API credentials are missing or invalid, requests will fail with authentication errors.
- Permission issues: The API key used must have permission to access invoice documents.
Common Error Messages:
404 Not Found: The Invoice ID does not correspond to any existing invoice. Double-check the ID.401 Unauthorizedor403 Forbidden: Check your LexOffice API credentials and permissions.400 Bad Request: The request was malformed, possibly due to an empty or incorrectly formatted Invoice ID.
How to resolve:
- Ensure the Invoice ID is correct and exists in LexOffice.
- Verify that your API credentials are correctly configured in n8n.
- Make sure your LexOffice account has the necessary permissions to access invoices.