Agendor icon

Agendor

Trabalhe com dados da API do Agendor CRM

Overview

This node integrates with the Agendor CRM API to manage products and services data. Specifically, the Delete Product operation allows users to remove a product from their Agendor account by specifying its unique identifier. This is useful in scenarios where products are discontinued, no longer offered, or need to be cleaned up from the system.

Practical examples include:

  • Automatically deleting products that are out of stock or obsolete.
  • Cleaning up test or duplicate product entries during data synchronization workflows.
  • Managing product lifecycle within automated sales or inventory pipelines.

Properties

Name Meaning
Product ID The unique identifier of the product to delete. This is required to specify which product should be removed from the system.

Output

The node outputs JSON data representing the response from the Agendor API after attempting to delete the specified product. Typically, for a successful deletion, the API returns an empty body or confirmation status. The output JSON can be used to verify if the deletion was successful or to handle errors.

No binary data output is involved in this operation.

Dependencies

  • Requires an API authentication token credential to access the Agendor API.
  • The node sends HTTP DELETE requests to the endpoint /products/{productId} on the base URL https://api.agendor.com.br/v3.
  • Proper configuration of the API key/token in n8n credentials is necessary for authorization.

Troubleshooting

  • Common Issues:

    • Providing an invalid or non-existent Product ID will result in an error from the API indicating the product could not be found.
    • Missing or incorrect API authentication token will cause authorization failures.
    • Network connectivity issues may prevent the request from reaching the Agendor API.
  • Error Messages and Resolutions:

    • 404 Not Found: The specified Product ID does not exist. Verify the ID is correct.
    • 401 Unauthorized: Authentication failed. Check that the API token credential is correctly configured and valid.
    • 400 Bad Request: The request parameters might be malformed. Ensure the Product ID is properly formatted.
    • 500 Internal Server Error: Temporary server issue at Agendor. Retry after some time or contact support.

Links and References

Discussion