Tiny ERP Auth2 icon

Tiny ERP Auth2

Interact with Tiny ERP API v3 with OAuth2

Produtos → Update Price

AI-generated

Overview

This node interacts with the Tiny ERP API v3 using OAuth2 authentication. Specifically, for the "Produtos" resource and the "Update Price" operation, it updates the pricing information of a product in the Tiny ERP system. This is useful for automating price adjustments, such as updating regular or promotional prices based on inventory changes, sales campaigns, or market conditions.

Practical examples include:

  • Automatically increasing or decreasing product prices based on stock levels.
  • Scheduling promotional price updates during marketing campaigns.
  • Synchronizing product prices from an external pricing system into Tiny ERP.

Properties

Name Meaning
Product ID The unique identifier (ID) of the product whose price will be updated.
Price The new regular price to set for the product.
Promotional Price An optional promotional price to set for the product, which can be lower than the regular price.

Output

The node outputs JSON data representing the result of the update operation for each input item. Each output item contains the response from the Tiny ERP API after attempting to update the product price. This typically includes confirmation of the updated product details or error information if the update failed.

No binary data output is produced by this node.

Dependencies

  • Requires an OAuth2 API credential configured in n8n to authenticate with the Tiny ERP API.
  • Depends on the Tiny ERP API v3 being accessible and the authenticated user having permissions to update product prices.

Troubleshooting

  • Common issues:

    • Invalid or expired OAuth2 token causing authentication failures.
    • Providing a non-existent Product ID leading to "product not found" errors.
    • Network connectivity problems preventing access to the Tiny ERP API.
    • Missing required parameters like Product ID or Price.
  • Error messages and resolutions:

    • "Unknown resource: produtos": Indicates the resource parameter was not recognized; ensure "produtos" is correctly specified.
    • API errors returned in the output JSON under an error field when continueOnFail is enabled; check these messages for specific causes.
    • Authentication errors: Reconfigure or refresh the OAuth2 credentials.
    • Validation errors: Verify that numeric fields like Product ID and Price are valid numbers and meet any API constraints.

Links and References

Discussion