Actions28
- Product Actions
- Product Stock Actions
Overview
This node integrates with the Tiny ERP system to manage product stock and related product data. Specifically, the "Product Stock" resource with the "Update Kit" operation allows users to update the components (kit items) of a product kit in Tiny ERP. This is useful for businesses that sell products composed of multiple items bundled together (kits), enabling them to keep the kit composition up-to-date.
Practical scenarios include:
- Updating the list or quantities of items in a product kit after changes in inventory or product offerings.
- Automating synchronization of product kits between Tiny ERP and other systems.
- Managing complex product bundles efficiently within an automated workflow.
Properties
| Name | Meaning |
|---|---|
| Product ID | The unique identifier of the product whose kit you want to update. |
| Kit Items | A collection of kit components, each specifying: |
| - Product ID: The ID of the product included in the kit. | |
| - Quantity: The quantity of that product in the kit. |
Output
The node outputs a JSON object indicating the success of the update operation along with the productId of the updated product kit. Example output structure:
{
"success": true,
"productId": 123
}
No binary data output is involved in this operation.
Dependencies
- Requires an API authentication credential configured in n8n to connect to the Tiny ERP API.
- The node uses HTTP requests to interact with Tiny ERP endpoints.
- Proper permissions on the Tiny ERP account are necessary to update product kits.
Troubleshooting
Common issues:
- Invalid or missing Product ID: Ensure the Product ID provided exists in Tiny ERP.
- Incorrect kit item format: Each kit item must have a valid product ID and quantity.
- Authentication errors: Verify that the API credentials are correctly set up and have sufficient permissions.
- Network or API downtime: Check connectivity and Tiny ERP service status.
Error messages:
"The operation "updateKit" is not supported!": This indicates the operation parameter might be incorrect or unsupported for the selected resource."The resource "produto_estoque" is not supported!": Occurs if an unsupported resource is selected.- API response errors from Tiny ERP will be passed through; check the error message for details such as invalid IDs or permission issues.
To resolve errors, verify input parameters, ensure correct resource-operation selection, and confirm API credentials and network connectivity.
Links and References
- Tiny ERP API Documentation (general reference for API endpoints)
- n8n documentation on Creating Custom Nodes