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 "Update Stock" operation under the "Product" resource allows users to update the stock quantity of a specific product in a particular deposit (warehouse or storage location). This is useful for inventory management workflows where stock levels need to be adjusted automatically based on sales, returns, or stock audits.

Practical examples:

  • Automatically updating stock quantities after an order is fulfilled.
  • Syncing stock levels between Tiny ERP and other sales platforms.
  • Adjusting inventory counts after receiving new shipments.

Properties

Name Meaning
Product ID The unique identifier of the product whose stock is being updated.
Deposit ID The identifier of the deposit (warehouse/storage location) where the stock is updated.
Quantity The new quantity of the product stock in the specified deposit.

Output

The output JSON contains the response from the Tiny ERP API after updating the stock. It typically includes confirmation details about the updated stock entry. The exact structure depends on the API response but generally confirms success and may include updated stock information.

No binary data output is involved in this operation.

Dependencies

  • Requires an API authentication credential configured in n8n to connect to the Tiny ERP API.
  • The node uses HTTP requests to interact with Tiny ERP endpoints.
  • Proper permissions in Tiny ERP are necessary to update stock information.

Troubleshooting

  • Common issues:

    • Invalid or missing Product ID or Deposit ID will cause the API request to fail.
    • Insufficient permissions or invalid API credentials can result in authorization errors.
    • Network connectivity problems may prevent successful API calls.
  • Error messages:

    • "The operation "updateStock" is not supported for resource "produto_estoque"!" — indicates that the operation is not recognized; ensure the correct resource and operation are selected.
    • API errors returned by Tiny ERP will be passed through; check the error message for details such as invalid IDs or permission issues.
  • Resolution tips:

    • Verify that all required fields (Product ID, Deposit ID, Quantity) are correctly set.
    • Confirm API credentials and permissions.
    • Check network connectivity and endpoint availability.

Links and References

Discussion