Actions8
- Invoice Actions
- Product Actions
- Report Actions
- Subscription Actions
Overview
The node integrates with the LavaTop service to update product details, specifically allowing updates to a product's offers and their pricing configurations. This is useful in scenarios where you need to programmatically modify product offerings, such as changing offer names, descriptions, or adjusting prices and billing periodicities without manual intervention.
Practical examples include:
- Updating subscription plans or digital product offers with new pricing.
- Changing offer descriptions or names to reflect updated marketing information.
- Adjusting billing cycles for recurring offers (e.g., switching from monthly to yearly billing).
Properties
| Name | Meaning |
|---|---|
| Product ID | UUID of the product to update. Identifies which product will be modified. |
| Offers | A collection of offers to update within the product. Each offer includes: |
| Offer ID | UUID of the specific offer to update. |
| Name | New name for the offer (optional). |
| Description | New description for the offer (optional). |
| Prices | Price configurations for the offer. Multiple prices can be specified, each with: |
| Amount | Numeric price amount. |
| Currency | Currency code for the price. Options: RUB, USD, EUR. |
| Periodicity | Billing periodicity for the price. Options: One Time, Monthly, Every 90 Days, Every 180 Days, Yearly. |
Output
The node outputs JSON data representing the result of the product update operation. This typically includes the updated product information reflecting the changes made to offers and prices.
No binary data output is indicated.
Dependencies
- Requires an API key credential for authenticating with the LavaTop service.
- The node depends on the LavaTop API endpoint that supports updating products and their offers.
- No additional environment variables are explicitly required beyond the API authentication.
Troubleshooting
Common Issues:
- Invalid or missing Product ID: The update will fail if the product UUID is incorrect or not provided.
- Incorrect Offer IDs: If an offer ID does not exist under the specified product, the update may fail or ignore that offer.
- Currency or periodicity values outside allowed options may cause validation errors.
- Network or authentication errors if the API key is invalid or connectivity issues occur.
Error Messages:
- "Product not found" — Verify the Product ID is correct.
- "Offer not found" — Check that the Offer IDs belong to the specified product.
- "Invalid currency/periodicity" — Ensure values match one of the allowed options.
- Authentication errors — Confirm the API key credential is valid and has necessary permissions.
Resolving these usually involves verifying input parameters and ensuring proper API credentials.
Links and References
- LavaTop API documentation (for product and offer management) — consult the official LavaTop developer resources.
- n8n documentation on creating and using custom nodes for API integrations.