Overview
This node integrates with the Cubo Suite CRM API to update an existing deal. It allows users to modify various attributes of a deal such as its title, pipeline, price, responsible user, stage, rating, associated products, and custom fields. This operation is useful in scenarios where deal information needs to be kept current, for example, updating deal status after negotiations, changing assigned sales representatives, or adjusting product details within a deal.
Practical examples include:
- Updating the price or stage of a deal after a client negotiation.
- Adding or removing products linked to a deal.
- Modifying custom fields to capture additional business-specific data.
Properties
| Name | Meaning |
|---|---|
| Deal ID | ID of the deal to update (required) |
| Title | Title of the deal |
| Pipe ID | ID of the pipeline |
| Price | Price of the deal |
| User ID | ID of the user responsible for the deal |
| Stage ID | ID of the stage in the pipeline |
| Rating | Rating of the deal |
| Products | Collection of products associated with the deal. Each product includes: |
| - Product ID: ID of the product | |
| - Quantity: Quantity of the product | |
| - Price: Price of the product | |
| - Status: Status of the product in the deal; options are "active" or "deactivated" | |
| Custom Fields | Collection of custom fields to update on the deal. Each custom field includes: |
| - Custom Field ID: ID of the custom field (required) | |
| - Value: Value to set for the custom field |
Output
The node outputs an array containing the response from the Cubo Suite CRM API after attempting to update the deal. The output JSON typically includes updated deal details reflecting the changes made. If the API supports it, the output may also contain status messages or error information related to the update operation.
No binary data output is indicated for this operation.
Dependencies
- Requires an API key credential for authenticating with the Cubo Suite CRM API.
- The base URL for API requests is
https://api.cubosuite.com.br. - Proper configuration of the API authentication credential in n8n is necessary.
Troubleshooting
Common issues:
- Providing an invalid or non-existent Deal ID will likely result in an error from the API indicating the deal was not found.
- Omitting required fields or providing incorrect data types (e.g., string instead of number) may cause validation errors.
- Network or authentication failures can prevent successful updates.
Error messages and resolutions:
- "Deal not found": Verify that the Deal ID exists in the CRM system.
- "Invalid input data": Check that all provided fields conform to expected types and constraints.
- Authentication errors: Ensure the API key credential is correctly configured and has sufficient permissions.
Links and References
- Cubo Suite CRM API Documentation (hypothetical link based on base URL)
- n8n documentation on creating custom nodes