Actions41
- Склады Продавца Actions
- Остатки На Складах Продавца Actions
- Категории Предметы И Характеристики Actions
- Создание Карточек Товаров Actions
- Карточки Товаров Actions
- Медиафайлы Actions
- Ярлыки Actions
- Цены И Скидки Actions
Overview
This node is designed to upload a batch of products with their associated club discounts to a service referred to as "WB Club." It allows users to send up to 1,000 product discount entries in one request. This functionality is useful for e-commerce managers or marketing teams who want to update or set special pricing discounts for multiple products efficiently.
A practical example would be a retailer who wants to apply exclusive discounts to a selection of products for members of a loyalty program ("WB Club"). Instead of updating each product individually, this node enables bulk uploading of discount data, saving time and reducing errors.
Properties
| Name | Meaning |
|---|---|
| Data | A JSON array containing objects that specify the product ID (nmID) and the corresponding club discount percentage (clubDiscount). The maximum number of products allowed per upload is 1,000. Example entry: [{"nmID": 123, "clubDiscount": 5}] |
Output
The node outputs JSON data reflecting the response from the API after attempting to upload the club discount task. The exact structure depends on the external service's response but typically includes confirmation of success or details about any errors encountered.
No binary data output is involved.
Dependencies
- Requires an API key credential for authentication with the WB API.
- The node uses a base URL configured from an imported OpenAPI specification.
- The HTTP request headers are preset to accept and send JSON content.
- No additional environment variables are explicitly required beyond the API authentication token.
Troubleshooting
Common issues:
- Sending more than 1,000 products in the
Dataproperty will likely cause the request to fail. - Malformed JSON in the
Datafield can lead to parsing errors. - Missing or invalid API credentials will result in authentication errors.
- Network connectivity problems may prevent successful API calls.
- Sending more than 1,000 products in the
Error messages and resolutions:
- "Invalid JSON format" — Ensure the
Datainput is valid JSON and correctly formatted as an array of objects. - "Authentication failed" — Verify that the API key credential is correctly configured and has necessary permissions.
- "Request entity too large" — Reduce the number of products in the
Dataarray to 1,000 or fewer. - "Network error" — Check internet connection and API endpoint availability.
- "Invalid JSON format" — Ensure the
Links and References
- WB API Documentation (general reference) (replace with actual link if available)
- JSON formatting guide: https://www.json.org/json-en.html