Actions28
- Product Actions
- Product Stock Actions
Overview
This node integrates with the Tiny ERP system to manage product stock and related product information. Specifically, the Product Stock - Get Kit operation retrieves detailed kit information for a specified product. A "kit" in this context refers to a product composed of multiple other products or components bundled together.
Typical use cases include:
- Fetching the composition details of a product kit to understand which items and quantities make up the kit.
- Automating inventory management by retrieving kit structures before processing orders or stock updates.
- Integrating product kit data into other systems such as e-commerce platforms or warehouse management solutions.
For example, an e-commerce business selling gift baskets (kits) can use this node to programmatically retrieve the basket contents from Tiny ERP to display on their website or to verify stock availability.
Properties
| Name | Meaning |
|---|---|
| Product ID | The unique identifier of the product whose kit information you want to retrieve. |
Output
The output is a JSON object containing the kit information for the specified product. This typically includes details about the components that make up the kit, such as product IDs and quantities.
Example structure of the output JSON might look like:
{
"items": [
{
"produto": {
"id": 123
},
"quantidade": 2
},
{
"produto": {
"id": 456
},
"quantidade": 1
}
]
}
This means the kit consists of 2 units of product 123 and 1 unit of product 456.
The node does not output binary data for 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.
- No additional external dependencies are required beyond the configured API credentials.
Troubleshooting
Error: "The operation 'getKit' is not supported!"
This error occurs if the operation parameter is incorrect or misspelled. Ensure the operation is set exactly to "Get Kit" under the "Product Stock" resource.Error: "The resource 'produto_estoque' is not supported!"
This indicates the resource parameter is invalid or unsupported. Confirm the resource is set to "Product Stock".API Authentication Errors
If the node fails due to authentication issues, verify that the API key or OAuth2 credentials for Tiny ERP are correctly configured and have sufficient permissions.Invalid Product ID
Providing a non-existent or incorrect product ID will result in an API error or empty response. Double-check the product ID value.Network or API Downtime
Temporary network issues or Tiny ERP service downtime may cause request failures. Retry after some time or check the API status.
Links and References
- Tiny ERP Official API Documentation (example link; replace with actual if available)
- n8n Documentation on Creating Custom Nodes
- Understanding Product Kits in Inventory Management
This summary focuses exclusively on the "Product Stock" resource and the "Get Kit" operation as requested.