WbFbs icon

WbFbs

n8n node to interact with WB API

Overview

This node interacts with a system managing "Сборочные Задания" (Assembly Tasks) to post sticker data related to orders. Specifically, the "Post Orders Stickers" operation allows users to generate and send sticker information for a set of assembly task orders. This is useful in warehouse or logistics environments where physical stickers need to be printed or generated for order identification and processing.

Practical examples include:

  • Generating barcode or label stickers in various formats (SVG, PNG, ZPL vertical/horizontal) for packing or shipping.
  • Automating sticker creation for batches of assembly tasks to streamline warehouse operations.
  • Integrating with printing systems that require specific sticker dimensions and formats.

Properties

Name Meaning
Type The format/type of the sticker to generate. Options: Svg, Zplv (ZPL vertical), Zplh (ZPL horizontal), Png.
Width The width of the sticker in millimeters. Options: 58, 40.
Height The height of the sticker in millimeters. Options: 40, 30.
Orders A JSON array containing the IDs of the assembly tasks (orders) for which stickers are generated.

Output

The node outputs JSON data representing the result of posting the stickers for the specified orders. The exact structure depends on the API response but typically includes confirmation of sticker generation or relevant metadata.

If the node supports binary output (e.g., actual image or label files), it would represent the sticker content in the specified format (SVG, PNG, or ZPL). However, based on the provided code and properties, the output is primarily JSON confirming the operation.

Dependencies

  • Requires an API key credential to authenticate with the external system managing assembly tasks and stickers.
  • Depends on the base URL and OpenAPI specification defined in the bundled swagger JSON file.
  • Uses HTTP requests with JSON payloads and query parameters to communicate with the external API.

Troubleshooting

  • Invalid Order IDs: If the orders array contains invalid or non-existent IDs, the API may return errors or empty results. Verify that the order IDs are correct.
  • Unsupported Sticker Type or Dimensions: Using unsupported combinations of type, width, or height might cause the API to reject the request. Use only the provided options.
  • Authentication Errors: Missing or incorrect API credentials will lead to authorization failures. Ensure the API key is correctly configured.
  • JSON Parsing Issues: The orders property expects a valid JSON array. Malformed JSON input will cause parsing errors before sending the request.

Links and References

  • ZPL Label Format — For understanding ZPL sticker types.
  • SVG Specification — Details about SVG format.
  • PNG Format — Details about PNG images.
  • Documentation or API reference of the external system managing "Сборочные Задания" (not provided here).

Discussion