WbPromotion icon

WbPromotion

n8n node to interact with WB API

Overview

This node interacts with a promotions calendar API to retrieve detailed information about specific promotions based on their IDs. It is useful in scenarios where you need to fetch up-to-date promotional data, such as marketing campaigns, sales events, or special offers from a calendar of promotions. For example, an e-commerce platform could use this node to display current promotions or update its product listings with active discounts.

Properties

Name Meaning
Promotion I Ds IDs of the promotions for which detailed information is requested. Example values: 1, 3, 64

Output

The node outputs JSON data containing detailed information about the requested promotions. Each item in the output corresponds to a promotion and includes fields describing that promotion's details (such as name, dates, conditions, etc., depending on the API response). The output does not include binary data.

Dependencies

  • Requires access to the WB API (a third-party promotions API).
  • Needs an API key credential configured in n8n to authenticate requests.
  • Uses a base URL defined in the bundled Swagger/OpenAPI specification for the promotions endpoint.

Troubleshooting

  • Missing or invalid promotion IDs: Ensure that the "Promotion I Ds" property is provided and contains valid promotion identifiers.
  • Authentication errors: Verify that the API key credential is correctly set up and has sufficient permissions.
  • Network or API errors: Check connectivity to the WB API service and confirm the API endpoint is reachable.
  • Unexpected response structure: If the output JSON does not match expectations, verify that the API version matches the one described in the bundled OpenAPI spec.

Links and References

  • WB API Documentation (hypothetical link, replace with actual if available)
  • OpenAPI Specification used internally by the node (embedded in the source code)

Discussion