WbProducts icon

WbProducts

n8n node to interact with WB API

Overview

This node interacts with the "Цены И Скидки" (Prices and Discounts) resource of an API to retrieve historical data about goods tasks. Specifically, the "Get History Goods Task" operation fetches a paginated list of historical records related to goods pricing or discount upload tasks. This is useful for auditing, tracking changes over time, or analyzing past pricing adjustments.

Practical examples include:

  • Retrieving the last 100 uploaded price change tasks to verify recent updates.
  • Paginating through historical goods task data to generate reports on discount trends.
  • Debugging or validating specific upload operations by their ID.

Properties

Name Meaning
Limit Number of elements to return per page (pagination). Maximum allowed is 1,000 elements.
Offset The index after which to start returning data, used for pagination offset.
Upload ID The unique identifier of the upload task whose history you want to retrieve (required).

Output

The node outputs JSON data representing a list of historical goods task records corresponding to the specified upload ID. Each item in the output array contains details about individual goods tasks from the history, such as timestamps, status, or other metadata related to the upload.

No binary data output is indicated.

Dependencies

  • Requires an API key credential to authenticate requests to the external service providing the "Цены И Скидки" data.
  • The base URL and request defaults are configured via an imported OpenAPI specification.
  • No additional external dependencies beyond standard HTTP request handling.

Troubleshooting

  • Common issues:

    • Providing an invalid or non-existent Upload ID will likely result in empty results or errors.
    • Exceeding the maximum limit of 1,000 items per request may cause the API to reject the query.
    • Incorrect offset values might lead to unexpected pagination behavior.
  • Error messages:

    • Authentication errors if the API key is missing or invalid.
    • Validation errors if required parameters like Upload ID or Limit are omitted.
    • Network or timeout errors if the external API is unreachable.

To resolve these:

  • Ensure the API key credential is correctly set up in n8n.
  • Verify that the Upload ID exists and is correct.
  • Use valid numeric values within allowed ranges for Limit and Offset.

Links and References

  • No direct links provided in the source code.
  • Refer to the official API documentation of the "Цены И Скидки" service for detailed parameter descriptions and response formats.

Discussion