Tiny ERP icon

Tiny ERP

Interact with Tiny ERP API

Overview

This node integrates with the Tiny ERP system to manage product-related data. Specifically, the Get Kit operation retrieves the kit information for a specified product. A product kit typically consists of multiple items bundled together as a single product offering.

Use cases include:

  • Fetching the components or items that make up a product kit.
  • Managing inventory or sales processes where kits are sold instead of individual products.
  • Automating workflows that require detailed product composition data from Tiny ERP.

For example, if you sell computer bundles composed of a monitor, keyboard, and CPU, this operation lets you retrieve all those constituent parts programmatically.

Properties

Name Meaning
Product ID The unique identifier (ID) of the product whose kit information you want to retrieve.

Output

The output is a JSON object containing the kit details of the specified product. This typically includes an array of items that compose the kit, each with its own product ID and quantity.

Example structure (simplified):

{
  "items": [
    {
      "produto": {
        "id": 123
      },
      "quantidade": 2
    },
    {
      "produto": {
        "id": 456
      },
      "quantidade": 1
    }
  ]
}

No binary data is returned by this operation.

Dependencies

  • Requires an API authentication credential configured in n8n to access the Tiny ERP API.
  • The node uses the Tiny ERP REST API endpoints to perform operations.
  • Network connectivity to the Tiny ERP service is necessary.

Troubleshooting

  • Common issues:

    • Invalid or missing Product ID: Ensure the Product ID provided exists in Tiny ERP.
    • 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 "getKit" is not supported!" — This indicates an unsupported operation was requested; ensure the operation name is correct.
    • "The resource "product" is not supported!" — Indicates an invalid resource selection; verify the resource parameter.
    • API errors returned from Tiny ERP will be passed through; check the error message for details such as "Product not found" or permission denied.

To resolve errors, confirm input parameters, credentials, and network access.

Links and References

Discussion