Agendor icon

Agendor

Trabalhe com dados da API do Agendor CRM

Overview

This node integrates with the Agendor CRM API to manage deals (business opportunities). Specifically, the "Delete" operation for the "Deal" resource allows users to delete a deal by its ID. This is useful in scenarios where deals are no longer relevant or were created by mistake and need to be removed from the CRM system.

Practical examples:

  • Automatically removing lost or cancelled deals from your CRM after a certain period.
  • Cleaning up test or duplicate deals during data maintenance workflows.
  • Integrating with other systems to synchronize deal deletions.

Properties

Name Meaning
Deal ID The numeric ID of the deal to delete. This identifies which deal will be removed.

Output

The output JSON typically contains the response from the Agendor API after attempting to delete the deal. Since this is a DELETE operation, the response may be empty or contain a confirmation message indicating success or failure.

No binary data output is expected for this operation.

Dependencies

  • Requires an API authentication token credential for Agendor CRM.
  • The node sends HTTP DELETE requests to the Agendor API endpoint: https://api.agendor.com.br/v3/deals/{dealId}.
  • Proper configuration of the API token in n8n credentials is necessary.

Troubleshooting

  • Common issues:

    • Invalid or missing Deal ID: The node requires a valid numeric deal ID; otherwise, the API will reject the request.
    • Authentication errors: If the API token is invalid or missing, the request will fail.
    • Network or API downtime: Connectivity issues can cause failures.
  • Error messages:

    • Unauthorized or 401 errors: Check that the API token credential is correctly set and has proper permissions.
    • 404 Not Found: The specified deal ID does not exist; verify the ID is correct.
    • 400 Bad Request: Possibly due to malformed input; ensure the Deal ID is provided and correctly formatted.

Resolving these usually involves verifying the Deal ID, ensuring the API token is valid, and checking network connectivity.

Links and References

Discussion