Actions28
- Product Actions
- Product Stock Actions
Overview
This node integrates with the Tiny ERP system to manage product stock and manufacturing details. Specifically, the Update Manufacturing operation under the Product Stock resource allows users to update the manufacturing information of a product in Tiny ERP. This includes specifying the components (products) used in manufacturing and the steps involved in the manufacturing process.
Typical use cases include:
- Automating updates to product manufacturing recipes or bills of materials.
- Synchronizing manufacturing workflows from external systems into Tiny ERP.
- Managing complex product assemblies by defining constituent products and manufacturing steps programmatically.
For example, a user can update a product’s manufacturing data by providing a list of component products with quantities and a sequence of manufacturing steps, ensuring that the ERP reflects the current production process.
Properties
| Name | Meaning |
|---|---|
| Product ID | The unique identifier of the product whose manufacturing data is being updated. |
| Manufacturing Data | A collection containing: - Products: List of products used in manufacturing, each with a Product ID and quantity required. - Steps: List of manufacturing steps, each described by a step name. |
The Manufacturing Data property structure:
Products: Multiple entries where each entry specifies:
- Product ID: ID of a component product.
- Quantity: Amount of that product needed for manufacturing.
Steps: Multiple entries where each entry specifies:
- Step Name: Description of a manufacturing step.
Output
The output JSON object confirms the success of the update operation and echoes back the Product ID:
{
"success": true,
"productId": 123
}
Where 123 is the ID of the product updated.
No binary data output is produced by this operation.
Dependencies
- Requires an active connection to the Tiny ERP API.
- Needs an API authentication credential configured in n8n (an OAuth2 or API key credential).
- The node uses internal helper functions to make HTTP requests to Tiny ERP endpoints.
Troubleshooting
Error: The operation "updateManufacturing" is not supported!
This error occurs if the operation parameter is incorrect or misspelled. Ensure the operation is set exactly to "updateManufacturing".Error: The resource "produto_estoque" is not supported!
This indicates the resource parameter is invalid or unsupported. For updating manufacturing, ensure the resource is set to "product".API Request Failures
If the API call fails, verify that the API credentials are valid and have sufficient permissions. Also, check network connectivity and Tiny ERP service status.Invalid Input Data
Make sure the Product ID is correct and that the manufacturing data contains properly structured products and steps. Missing or malformed data may cause the API to reject the request.
Links and References
- Tiny ERP Official API Documentation (Note: link is illustrative; please refer to actual Tiny ERP API docs)
- n8n Documentation on Creating Custom Nodes
- General info on Manufacturing BOMs and Processes
If you need further details about other operations or resources, feel free to ask!