Actions28
- Product Actions
- Product Stock Actions
Overview
This node integrates with the Tiny ERP API to manage products and their variations. Specifically, the "Delete Variation" operation under the "Product" resource allows users to delete a specific variation of a product by providing the product ID and the variation ID.
Common scenarios for this node include:
- Removing outdated or discontinued product variations from your inventory system.
- Cleaning up product catalogs by deleting incorrect or duplicate variations.
- Automating inventory management workflows where product variations need to be dynamically updated or removed.
For example, if you have a product with multiple size or color variations and one variation is no longer available, you can use this node to delete that variation programmatically.
Properties
| Name | Meaning |
|---|---|
| Product ID | The unique identifier of the product to which the variation belongs. |
| Variation ID | The unique identifier of the product variation to be deleted. |
Output
The output JSON contains a confirmation of the deletion operation with the following structure:
{
"success": true,
"productId": <number>,
"variationId": <number>
}
success: A boolean indicating whether the deletion was successful.productId: The ID of the product from which the variation was deleted.variationId: The ID of the deleted variation.
No binary data is output by this operation.
Dependencies
- Requires an active connection to the Tiny ERP API.
- Requires an API authentication token configured in n8n credentials (an OAuth2 API key credential).
- The node depends on the internal helper function to make HTTP requests to the Tiny ERP API endpoints.
Troubleshooting
Error: "The operation 'deleteVariation' is not supported!"
This error occurs if the operation name is misspelled or not implemented. Ensure the operation is exactly "deleteVariation" and the resource is "product".Error related to missing Product ID or Variation ID
Both IDs are required. Make sure these fields are provided and valid numbers.API Authentication Errors
If the API key or OAuth2 token is invalid or expired, the request will fail. Verify your credentials in n8n settings.Network or API Endpoint Issues
If the Tiny ERP API is unreachable or returns errors, check network connectivity and API status.
Links and References
- Tiny ERP API Documentation (general reference; actual URL may vary)
- n8n documentation on creating custom nodes
- OAuth2 authentication setup in n8n for API integrations