Actions60
- User Actions
- Teams Actions
- Custom Fields Actions
- Tickets Actions
- Deals Actions
- Webhooks Actions
- Contacts Actions
- Companies Actions
- Bussiness Types Actions
- Tags Actions
- Deal Phases Actions
- Invoices Actions
- Subscriptions Actions
- Products Actions
- Projects Actions
- Tasks Actions
- Files Actions
Overview
This node integrates with the Teamleader API to perform various operations on different resources. Specifically, for the Invoices resource with the Download operation, it allows users to download an invoice by specifying its ID. This is useful in scenarios where you want to programmatically retrieve invoice documents from Teamleader for further processing, archiving, or sending via email.
Practical examples include:
- Automatically downloading invoices after they are created or updated.
- Integrating invoice retrieval into a larger workflow for accounting or billing automation.
- Archiving invoices in external storage systems.
Properties
| Name | Meaning |
|---|---|
| ID | The unique identifier of the invoice to download. This is required to specify which invoice document should be retrieved. |
Output
The node outputs JSON data representing the downloaded invoice. The exact structure depends on the Teamleader API response but typically includes invoice details and possibly the invoice file content or a link to it.
If the invoice is returned as binary data (e.g., PDF), the node would handle this accordingly, allowing workflows to save or forward the invoice file.
Dependencies
- Requires an OAuth2 API credential configured for Teamleader to authenticate requests.
- Uses the Teamleader API endpoint at
https://api.focus.teamleader.eu. - The node sends POST requests to the API with the specified operation path (
invoices.download).
Troubleshooting
- No data returned but request was successful: This message indicates that the API call succeeded but no invoice data was returned. Verify the invoice ID is correct and that the invoice exists.
- No data got returned: This error means the API response did not contain expected data. Check if the invoice ID is valid and if the user has permission to access the invoice.
- Authentication errors: Ensure the OAuth2 credentials are correctly set up and have the necessary scopes to access invoices.
- Invalid ID format: The invoice ID must be a valid string matching Teamleader's invoice identifiers.
Links and References
- Teamleader API Documentation
- Teamleader API endpoint used:
https://api.focus.teamleader.eu/invoices.download