Actions25
Overview
This node integrates with the Tiny ERP API v3 to manage various business resources such as products, customers, orders, invoices, stock, contacts, and accounts. Specifically for the Product - Delete operation, it allows users to delete a product from their Tiny ERP system by specifying the product's unique ID.
Common scenarios where this node is beneficial include automating inventory management workflows, cleaning up obsolete or discontinued products, and synchronizing product data between Tiny ERP and other systems.
For example, you might use this node in an automation that removes products from your ERP when they are no longer sold or have been marked as discontinued in another system.
Properties
| Name | Meaning |
|---|---|
| ID | The unique identifier of the product to delete. This is required to specify which product should be removed from Tiny ERP. |
Output
The output JSON contains the response from the Tiny ERP API after attempting to delete the specified product. Typically, this will confirm whether the deletion was successful or provide error details if it failed.
The structure generally looks like:
{
"success": true,
"message": "Product deleted successfully"
}
or in case of failure:
{
"success": false,
"message": "Product not found"
}
No binary data is output by this operation.
Dependencies
- Requires an API authentication token configured via OAuth2 credentials to access the Tiny ERP API.
- The node makes HTTP requests to
https://erp.tiny.com.br/public-api/v3. - Proper permissions on the API key are necessary to perform delete operations on products.
Troubleshooting
Common issues:
- Providing an invalid or non-existent product ID will result in an error indicating the product could not be found.
- Insufficient API permissions or expired tokens can cause authentication failures.
- Network connectivity problems may prevent the node from reaching the Tiny ERP API.
Error messages:
"Tiny ERP API request failed: <error message>"indicates a problem with the API call, such as authentication errors, invalid parameters, or server issues."Unknown operation: delete"would occur if the operation parameter is incorrectly set; ensure the operation is exactly"delete"for product resource.
Resolutions:
- Verify the product ID exists in Tiny ERP before attempting deletion.
- Check and refresh API credentials if authentication errors occur.
- Confirm network connectivity and API endpoint availability.
- Ensure the node parameters are correctly configured according to the operation and resource.
Links and References
- Tiny ERP Public API Documentation (official API docs)
- n8n documentation on creating custom nodes
- OAuth2 credential setup in n8n for secure API access