Tiny ERP Auth2 icon

Tiny ERP Auth2

Interact with Tiny ERP API v3 with OAuth2

Produtos → Delete

AI-generated

Overview

This node interacts with the Tiny ERP API v3 using OAuth2 authentication. Specifically, for the "Produtos" resource and the "Delete" operation, it deletes a product from the Tiny ERP system based on a provided product ID. This is useful in scenarios where you need to automate inventory management by removing obsolete or discontinued products from your ERP database.

Practical examples include:

  • Automatically deleting products that are no longer sold.
  • Cleaning up test or duplicate product entries in bulk workflows.
  • Integrating with other systems to synchronize product deletions.

Properties

Name Meaning
ID The unique identifier of the resource (product) to delete. Required for operations like get, update, delete, send, updateStatus.
Product ID The numeric ID of the product to be deleted. Required specifically for the "produtos" resource when performing the "delete" operation.

Output

The node outputs JSON data representing the result of the delete operation. Typically, this will contain confirmation details or status information returned by the Tiny ERP API after attempting to delete the specified product.

If multiple items are processed, the output is an array of JSON objects, each corresponding to one deletion attempt.

No binary data output is indicated.

Dependencies

  • Requires an OAuth2 API credential configured in n8n to authenticate with the Tiny ERP API.
  • Depends on the external Tiny ERP API v3 service being accessible and the credentials having sufficient permissions to delete products.

Troubleshooting

  • Common issues:

    • Invalid or missing product ID: Ensure the "Product ID" property is correctly set and corresponds to an existing product.
    • Authentication errors: Verify that the OAuth2 credentials are valid and have not expired.
    • API connectivity problems: Check network access to the Tiny ERP API endpoint.
  • Error messages:

    • "Unknown resource: produtos": Indicates the resource name was not recognized; ensure the resource parameter is exactly "produtos".
    • API error messages related to authorization or invalid IDs will be passed through; review the message for specifics.
  • To resolve errors, confirm all required properties are set, credentials are correct, and the target product exists in the ERP system.

Links and References

Discussion