Tiny ERP icon

Tiny ERP

Interact with Tiny ERP API

Overview

This node integrates with the Tiny ERP system to manage product data, specifically allowing users to update the price of a product. It is useful in scenarios where product pricing needs to be programmatically adjusted based on business rules, promotions, or external data sources.

For example, an e-commerce store could use this node to automatically update product prices in Tiny ERP when running a sale or adjusting prices based on competitor analysis.

The "Update Price" operation updates the standard and promotional prices of a specified product by its ID.

Properties

Name Meaning
Product ID The unique identifier of the product whose price will be updated.
Price Data Collection of price-related fields:
- Price: The new standard price of the product (number with 2 decimals).
- Promotional Price: The new promotional price of the product (number with 2 decimals).

Output

The output JSON contains the response from the Tiny ERP API after updating the product price. This typically includes confirmation details such as the updated price information or success status.

Example output structure:

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

No binary data output is produced by this operation.

Dependencies

  • Requires an active connection to the Tiny ERP API.
  • Requires an API authentication token configured in n8n credentials for accessing Tiny ERP.
  • The node uses HTTP requests to communicate with Tiny ERP endpoints.

Troubleshooting

  • Common issues:

    • Invalid or missing Product ID: Ensure the Product ID exists in Tiny ERP and is correctly provided.
    • Incorrect price format: Prices must be numbers with up to two decimal places.
    • Authentication errors: Verify that the API key or OAuth2 credentials are valid and have sufficient permissions.
    • Network or API downtime: Check connectivity and Tiny ERP service status.
  • Error messages:

    • "The operation "updatePrice" is not supported!" — This indicates the operation parameter might be incorrect or unsupported; verify the operation name.
    • API error responses related to invalid input or authorization will be passed through; check the message for details.

To resolve errors, confirm all required parameters are set correctly, credentials are valid, and the Tiny ERP API is accessible.

Links and References

Discussion