Actions28
- Product Actions
- Product Stock Actions
Overview
This node integrates with the Tiny ERP system, allowing users to manage product-related data programmatically. Specifically, for the Product Stock resource and the Update Price operation, it updates the price information of a specified product in the Tiny ERP database.
Typical use cases include automating price adjustments based on external data sources, synchronizing prices across multiple sales channels, or bulk updating product prices during promotions or cost changes.
For example, a retailer could use this node to update the price of a product after receiving new pricing data from suppliers, ensuring their online store reflects accurate pricing without manual intervention.
Properties
| Name | Meaning |
|---|---|
| Product ID | The unique identifier of the product whose price will be updated. |
| Price | The new price value to set for the product (decimal number with two decimal places). |
| Promotional Price | An optional promotional price to apply to the product (decimal number with two decimals). |
Note: The "Price" and "Promotional Price" fields are part of a collection named priceData that is used only when updating the price.
Output
The node outputs JSON data representing the response from the Tiny ERP API after attempting to update the product price. This typically includes confirmation of the update and may contain the updated price details or status messages.
Example output structure:
{
"id": 123,
"preco": 99.99,
"precoPromocional": 79.99,
"message": "Price updated successfully"
}
No binary data output is produced by this operation.
Dependencies
- Requires an active connection to the Tiny ERP API.
- Requires an API authentication credential configured in n8n (an OAuth2 token or similar).
- The node depends on the internal helper function to make HTTP requests to the Tiny ERP endpoints.
Troubleshooting
Common issues:
- Invalid or missing Product ID: Ensure the product ID exists in Tiny ERP and is correctly provided.
- Authentication errors: Verify that the API credentials are valid and have sufficient permissions.
- Incorrect price format: Prices should be numeric with up to two decimal places.
- Network or API downtime: Check connectivity and Tiny ERP service status.
Error messages:
"The operation "updatePrice" is not supported!": This indicates a mismatch between the selected operation and resource; ensure you select the correct combination.- API error responses will be passed through; check the message for details such as invalid parameters or authorization failures.
Links and References
- Tiny ERP Official API Documentation (example placeholder link)
- n8n Documentation on Creating Custom Nodes
- General REST API best practices for price updates and product management