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 Manufacturing" operation retrieves manufacturing information for a specified product by its ID. This is useful in scenarios where you need to obtain details about how a product is manufactured, including components and production steps, directly from your ERP system.

Practical examples include:

  • Fetching manufacturing instructions or bill of materials for a product before starting production.
  • Integrating manufacturing data into other workflows such as inventory management or production scheduling.
  • Automating reporting on product manufacturing details.

Properties

Name Meaning
Product ID The unique identifier (ID) of the product for which manufacturing information is retrieved.

Output

The output JSON contains the manufacturing information of the specified product as returned by the Tiny ERP API endpoint /produtos/{productId}/fabricado. This typically includes details such as:

  • Components or raw materials used in manufacturing.
  • Quantities required for each component.
  • Steps involved in the manufacturing process.

The exact structure depends on the ERP's API response but generally represents the bill of materials and manufacturing workflow for the product.

No binary data output is produced by this operation.

Dependencies

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

Troubleshooting

  • Common issues:

    • Invalid or missing Product ID will cause the API request to fail.
    • Authentication errors if the OAuth2 credentials are not set up correctly.
    • Network connectivity issues may prevent reaching the Tiny ERP API.
  • Error messages:

    • "The operation "getManufacturing" is not supported!" — indicates the operation parameter was incorrect or unsupported.
    • API errors returned from Tiny ERP (e.g., 404 Not Found if the product does not exist).
  • Resolutions:

    • Ensure the Product ID is valid and exists in Tiny ERP.
    • Verify that the OAuth2 credentials are properly configured and authorized.
    • Check network connectivity and API endpoint availability.

Links and References

Discussion