WbProducts icon

WbProducts

n8n node to interact with WB API

Overview

This node interacts with the "Цены И Скидки" (Prices and Discounts) resource of an API, specifically performing the "Get Buffer Goods Task" operation. It retrieves a paginated list of buffered goods related to a specific upload task identified by an Upload ID. This is useful for workflows that need to process or analyze batches of product pricing or discount data uploaded previously.

Practical examples include:

  • Fetching a subset of buffered goods after uploading price updates to verify or further process them.
  • Automating reports on buffered goods pricing changes in chunks to handle large datasets efficiently.
  • Integrating buffered goods data into other systems by retrieving it page-by-page.

Properties

Name Meaning
Limit Number of elements to return per page (pagination). Maximum 1000 elements.
Offset The index after which to start returning data (used for pagination offset).
Upload ID The identifier of the upload task whose buffered goods are being retrieved (required).

Output

The node outputs JSON data representing the list of buffered goods corresponding to the specified Upload ID. The output respects pagination parameters (limit and offset) and contains details about each buffered good item fetched from the API.

If the API supports binary data for these goods, the node would handle it accordingly, but based on the provided code and properties, the output is primarily JSON structured data.

Dependencies

  • Requires an API key credential for authentication with the external service (referred generically as "an API key credential").
  • The node uses a base URL configured from an imported OpenAPI specification.
  • No additional environment variables or configurations are explicitly required beyond standard API authentication setup.

Troubleshooting

  • Common issues:

    • Exceeding the maximum limit of 1000 items per request may cause errors or truncated results.
    • Providing an invalid or non-existent Upload ID will likely result in empty responses or error messages from the API.
    • Network or authentication failures can prevent data retrieval.
  • Error messages:

    • Errors related to authentication failure indicate missing or incorrect API credentials; ensure the API key is valid and properly configured.
    • Pagination errors may occur if offset or limit values are out of range; verify these parameters before execution.
    • If the API returns unexpected errors, check the Upload ID validity and API service status.

Links and References

  • No direct links were provided in the source code or properties. For more information, consult the API documentation related to "Цены И Скидки" and its buffered goods tasks.

Discussion