Tiny ERP icon

Tiny ERP

Interact with Tiny ERP API

Overview

This node integrates with the Tiny ERP system to manage product data. Specifically, the Update Price operation allows users to update the pricing information of an existing product in Tiny ERP by specifying the product ID and new price details.

Typical use cases include:

  • Automatically updating product prices based on external pricing strategies or market changes.
  • Synchronizing product prices from other systems or databases into Tiny ERP.
  • Running workflows that adjust promotional prices during sales campaigns.

For example, a user could set up a workflow that updates the price and promotional price of a product whenever a new marketing campaign starts.

Properties

Name Meaning
Product ID The unique identifier of the product whose price you want to update.
Price Data Collection of fields related to pricing:
- Price: The new standard price of the product (number with two decimal precision).
- Promotional Price: The new promotional price for the product (optional, two decimals).

Output

The output JSON contains the response from the Tiny ERP API after updating the product price. It typically includes confirmation of the updated price data for the specified product.

Example output structure:

{
  "preco": 123.45,
  "precoPromocional": 99.99,
  "otherApiResponseFields": "..."
}

No binary data is produced by this operation.

Dependencies

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

Troubleshooting

  • Common issues:

    • Invalid or missing Product ID will cause the API request to fail.
    • Providing invalid price values (e.g., negative numbers) may result in errors from the API.
    • Network or authentication failures can prevent successful updates.
  • Error messages:

    • "The operation "updatePrice" is not supported!" — indicates a misconfiguration or unsupported operation selected.
    • API errors returned from Tiny ERP will be passed through; check the error message for details such as invalid product ID or permission issues.
  • Resolution tips:

    • Verify the Product ID exists in Tiny ERP before attempting to update.
    • Ensure price fields are valid numbers with correct precision.
    • Confirm API credentials are correctly set up and have sufficient permissions.

Links and References

Discussion