WbProducts icon

WbProducts

n8n node to interact with WB API

Overview

This node is designed to delete stock records associated with a specific warehouse ID from the seller's stock inventory. It is useful in scenarios where you need to clear or reset stock data for a particular warehouse, such as when a warehouse is decommissioned, undergoing maintenance, or when stock data needs to be refreshed.

Practical examples include:

  • Removing all stock entries for Warehouse #5 before importing updated stock data.
  • Clearing out obsolete stock information linked to a warehouse that is no longer active.

Properties

Name Meaning
Warehouse Id The unique identifier (ID) of the seller's warehouse whose stock records should be deleted.

Output

The node outputs JSON data indicating the result of the deletion operation. Typically, this will include confirmation of successful deletion or details about any errors encountered. The exact structure depends on the API response but generally confirms which warehouse stocks were affected.

No binary data output is expected from this node.

Dependencies

  • Requires an API key credential to authenticate requests to the external warehouse stock management API.
  • The node uses a base URL configured from an imported OpenAPI specification.
  • Proper network access and permissions to perform delete operations on the warehouse stock endpoint are necessary.

Troubleshooting

  • Common issues:

    • Invalid or missing Warehouse Id: Ensure the Warehouse Id provided is correct and exists in the system.
    • Authentication failures: Verify that the API key credential is valid and has sufficient permissions.
    • Network or API errors: Check connectivity and API availability.
  • Error messages:

    • "Unauthorized" or "Authentication failed": Indicates problems with the API key; reconfigure credentials.
    • "Warehouse not found": The specified Warehouse Id does not exist; verify the input.
    • "Failed to delete stocks": Could indicate server-side issues or insufficient permissions; retry or contact support.

Links and References

  • [Example API documentation for warehouse stock management] (Not provided in source)
  • n8n documentation on creating custom nodes and handling API requests: https://docs.n8n.io/creating-nodes/

Discussion