WbProducts icon

WbProducts

n8n node to interact with WB API

Overview

This node is designed to interact with a product card management API, specifically for the resource "Создание Карточек Товаров" (Creating Product Cards) and the operation "Post Cards Upload Add". It allows users to attach additional product cards to an existing product card identified by its imtID. This can be useful in scenarios where products have multiple variants or related cards that need to be grouped together.

Practical examples include:

  • Adding new size or color variants to an existing product card.
  • Uploading supplementary product details or characteristics as separate cards linked to a main product.
  • Managing complex product hierarchies by associating multiple cards under a single product identifier.

Properties

Name Meaning
Imt ID The identifier (imtID) of the existing product card to which new product cards will be attached.
Cards To Add JSON structure representing the product cards to be added. This includes dimensions, sizes (with SKUs), and characteristics of the cards.

The "Cards To Add" property expects a JSON array of objects, each describing a product card's attributes such as dimensions, sizes with SKUs, and other characteristics.

Output

The node outputs JSON data representing the response from the API after attempting to add the specified product cards to the given imtID. The exact structure depends on the API but typically includes confirmation of success, any created or updated card details, and possible error messages.

There is no indication that the node handles binary data output.

Dependencies

  • Requires an API key credential for authentication with the external product card management API.
  • The node uses a base URL and request defaults configured via imported OpenAPI specifications.
  • No other external dependencies are indicated.

Troubleshooting

  • Common Issues:

    • Invalid or missing imtID may cause the API to reject the request.
    • Malformed JSON in "Cards To Add" can lead to parsing errors or API validation failures.
    • Network or authentication errors if the API key is invalid or missing.
  • Error Messages:

    • Errors related to authorization usually indicate issues with the provided API key.
    • Validation errors from the API often point to incorrect structure or missing required fields in the "Cards To Add" JSON.
  • Resolutions:

    • Verify that imtID corresponds to an existing product card.
    • Ensure the JSON structure in "Cards To Add" matches the expected schema.
    • Confirm that the API key credential is correctly set up and has necessary permissions.

Links and References

  • No direct links are provided in the source code.
  • For further information, consult the API documentation corresponding to the product card management system used.

Discussion