Actions28
Contracts → Close
AI-generatedOverview
This node operation closes a contract in the Dolibarr system by sending a request to the Dolibarr API endpoint for closing contracts. It is useful for automating contract lifecycle management, such as marking contracts as completed or terminated within a workflow.
Use Case Examples
- Automatically close a contract when a project is completed.
- Close contracts that have reached their end date as part of a scheduled workflow.
Properties
| Name | Meaning |
|---|---|
| Contract ID | The unique identifier of the contract to be closed. This is a required numeric input with a minimum value of 1. |
| Request Options | Additional options for the API request, including batching, SSL certificate validation, proxy settings, and request timeout. |
Output
JSON
response- The full response from the Dolibarr API after attempting to close the specified contract.
Dependencies
- Dolibarr API with valid API key credentials
Troubleshooting
- Ensure the Contract ID is valid and exists in the Dolibarr system to avoid 404 errors.
- Check network connectivity and proxy settings if requests fail to reach the Dolibarr API.
- If SSL certificate validation fails, consider enabling the option to ignore SSL issues, but be aware of security risks.
- Timeout errors may occur if the server is slow to respond; adjust the timeout setting accordingly.
Links
- Dolibarr API Documentation - Official documentation for Dolibarr API endpoints and usage.