WbProducts icon

WbProducts

n8n node to interact with WB API

Overview

This node interacts with the Wildberries (WB) API to generate product barcodes. Specifically, the "Post Barcodes" operation under the resource "Создание Карточек Товаров" (Creating Product Cards) allows users to request a batch of barcodes to be created. This is useful for sellers or inventory managers who need to generate multiple unique barcodes for new products in bulk.

Practical examples include:

  • Automatically generating barcodes when onboarding a large number of new products.
  • Preparing barcode labels for printing and physical tagging in warehouses or retail stores.
  • Integrating barcode generation into an automated product creation workflow.

Properties

Name Meaning
Count The number of barcodes to generate. Maximum allowed quantity is 5,000.

Output

The node outputs JSON data containing the response from the WB API after requesting barcode generation. This typically includes details about the generated barcodes such as their identifiers or codes. The exact structure depends on the API response but generally provides the list or count of barcodes created.

No binary data output is indicated by the source code.

Dependencies

  • Requires an API key credential for authenticating with the Wildberries API.
  • The node uses a base URL configured from an imported OpenAPI specification.
  • Proper network access to the WB API endpoint is necessary.

Troubleshooting

  • Common issues:

    • Requesting more than 5,000 barcodes will likely result in an error; ensure the Count property does not exceed this limit.
    • Authentication failures if the API key is missing or invalid.
    • Network connectivity problems preventing access to the WB API.
  • Error messages:

    • Errors related to exceeding maximum barcode count should prompt reducing the requested number.
    • Authorization errors require checking and updating the API credentials.
    • Timeout or connection errors suggest verifying internet connectivity and API endpoint availability.

Links and References

  • Wildberries API documentation (official site or developer portal) for barcode generation endpoints.
  • n8n documentation on creating custom nodes and using API credentials.

Discussion