Tiny ERP icon

Tiny ERP

Interact with Tiny ERP API

Overview

The node interacts with the Tiny ERP API to manage product data, specifically focusing on updating the kit composition of a product. The "Update Kit" operation allows users to modify the list of items (products) that compose a product kit, including specifying quantities for each item.

This node is beneficial in scenarios where products are sold as kits or bundles, and the composition of these kits needs to be updated programmatically. For example, an e-commerce business might use this node to update the components of a gift basket product kit when inventory changes or new items are added.

Practical example: Updating a product kit by specifying the product ID of the kit and providing a list of kit items with their respective product IDs and quantities.

Properties

Name Meaning
Product ID The ID of the product whose kit you want to update.
Kit Items A collection of kit items to include in the product 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 success confirmation and the product ID of the updated kit:

{
  "success": true,
  "productId": 123
}
  • success: Boolean indicating if the update was successful.
  • productId: The ID of the product kit that was updated.

No binary data is output by this operation.

Dependencies

  • Requires an API key credential for authenticating with the Tiny ERP API.
  • The node uses HTTP requests to communicate with the Tiny ERP endpoints.
  • Proper configuration of the API credentials within n8n is necessary.

Troubleshooting

  • Common issues:

    • Invalid or missing Product ID: Ensure the product ID provided exists and is correct.
    • Empty or malformed kit items list: The kit items must be properly structured with valid product IDs and quantities.
    • API authentication errors: Verify that the API key credential is correctly configured and has sufficient permissions.
  • Error messages:

    • "The operation "updateKit" is not supported!" — This indicates an unsupported operation; ensure the operation parameter is set correctly.
    • "The resource "product" is not supported!" — Indicates an invalid resource selection.
    • API request failures may return error messages from the Tiny ERP API; check the message for details such as invalid input or permission issues.

To resolve errors, verify all input parameters, confirm API credentials, and consult the Tiny ERP API documentation for endpoint requirements.

Links and References

Discussion