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 detailed information about a product kit, which is a collection of products bundled together as a single item. This operation is useful for businesses that sell kits or bundles and need to access the components and quantities included in those kits.

Practical examples:

  • A retailer wants to fetch the list of items included in a promotional gift basket.
  • A manufacturer needs to verify the components of a product kit before assembly or shipment.
  • An inventory manager checks the contents of a bundled product to update stock levels accordingly.

Properties

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

Output

The output JSON contains the kit information of the specified product. This typically includes details about each component product within the kit, such as product IDs and their respective quantities. The exact structure depends on the Tiny ERP API response but generally represents the composition of the product kit.

No binary data output is involved in this operation.

Example output snippet (conceptual):

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

Dependencies

  • Requires an active connection to the Tiny ERP API.
  • Needs an API authentication credential configured in n8n (an OAuth2 API key credential).
  • The node uses the tinyErpApiRequest helper function to make HTTP requests to the Tiny ERP endpoints.

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 the operation parameter might be incorrect or unsupported for the selected resource.
    • "The resource "product" is not supported!": This suggests the resource parameter is invalid.
    • API errors returned from Tiny ERP will be passed through; check the error message for details like invalid product ID or permission issues.

To resolve errors, confirm input parameters, validate credentials, and ensure the product exists in the ERP system.

Links and References

Discussion