Tiny ERP icon

Tiny ERP

Interact with Tiny ERP API

Overview

This node integrates with the Tiny ERP system to manage product data, specifically allowing you to update the kit composition of a product. A "kit" in this context is a product composed of multiple other products (kit items), each with specified quantities.

The Update Kit operation lets you modify which products and quantities make up a given product's kit. This is useful for businesses that sell bundled products or assemblies and need to keep their kit components up to date in their ERP system.

Practical examples:

  • Updating the components of a gift basket product by changing included items and their quantities.
  • Modifying a computer build kit by adding or removing hardware parts.
  • Adjusting a promotional bundle to reflect new product combinations.

Properties

Name Meaning
Product ID The unique identifier of the product whose kit you want to update.
Kit Items A list of products that compose the kit. Each item includes:
- Product ID: ID of the product in the kit.
- Quantity: Number of units of that product in the kit.

Output

The output JSON contains a confirmation of the successful update:

{
  "success": true,
  "productId": <updated product ID>
}

This indicates that the kit for the specified product was updated successfully.

No binary data is output by this operation.

Dependencies

  • Requires an active connection to the Tiny ERP API.
  • Needs an API authentication credential configured in n8n (an OAuth2 token or similar).
  • The node uses the /produtos/{productId}/kit endpoint of the Tiny ERP API to perform the update.

Troubleshooting

  • Common issues:

    • Invalid or missing Product ID: Ensure the product ID exists in Tiny ERP and is correctly provided.
    • Kit items list empty or malformed: Provide at least one valid kit item with correct product IDs and quantities.
    • API authentication errors: Verify that the API credentials are valid and have sufficient permissions.
    • Network or API downtime: Check connectivity and Tiny ERP service status.
  • Error messages:

    • "The operation "updateKit" is not supported!": This may occur if the operation parameter is incorrect or misspelled.
    • "The resource "product" is not supported!": Indicates the resource parameter is invalid.
    • API response errors from Tiny ERP will be passed through; check the error message for details such as invalid product IDs or permission issues.

To resolve errors, verify all input parameters, ensure proper API credentials, and consult Tiny ERP API documentation for specific error codes.

Links and References

Discussion