Actions28
Overview
This node interacts with the Dolibarr API to retrieve detailed information about a specific contract by its ID. It is useful in scenarios where you need to fetch contract data stored in Dolibarr for further processing, reporting, or integration with other systems. For example, you might use this node to automatically pull contract details into a CRM system or to verify contract terms before triggering downstream workflows.
Properties
| Name | Meaning |
|---|---|
| Contract ID | The unique numeric identifier of the contract to retrieve. Must be an integer greater than or equal to 1. |
Output
The node outputs JSON data representing the full response from the Dolibarr API for the specified contract. This typically includes all contract fields such as contract reference, dates, parties involved, status, and any custom fields defined in Dolibarr.
If the API returns binary data related to the contract (not indicated in this operation), it would be included accordingly, but this operation primarily returns structured JSON data.
Dependencies
- Requires an active connection to a Dolibarr instance via its REST API.
- Needs an API authentication token or key configured in n8n credentials to authorize requests.
- The base URL of the Dolibarr API must be set in the credentials configuration.
Troubleshooting
Common Issues:
- Invalid or missing Contract ID: Ensure the Contract ID is provided and is a positive integer.
- Authentication errors: Verify that the API credentials are correctly configured and have sufficient permissions.
- Network or connectivity problems: Confirm that the Dolibarr API endpoint is reachable from the n8n environment.
Error Messages:
- HTTP 404 Not Found: The specified contract ID does not exist. Double-check the Contract ID.
- HTTP 401 Unauthorized or 403 Forbidden: Authentication failed or insufficient permissions. Check API credentials.
- Timeout or network errors: Check network connectivity and API availability.