WbProducts icon

WbProducts

n8n node to interact with WB API

Overview

This node operation fetches data from a directory related to Tnved codes (customs commodity codes) within the context of categories, subjects, and characteristics. It is useful for retrieving detailed classification information about goods based on their subject ID and optionally searching by a specific Tnved code. Typical use cases include customs compliance automation, product categorization, and integration with trade or logistics systems where standardized commodity codes are required.

For example, a user might input a subject ID representing a category of products and optionally provide a Tnved code to get detailed classification data in a preferred language.

Properties

Name Meaning
Subject ID The identifier of the subject (предмета). This is a required numeric value used to specify the category.
Search A numeric Tnved code to search for within the specified subject. Works only when paired with Subject ID.
Locale Language of the response fields. Options: ru (Russian), en (English), zh (Chinese). Default is en.

Output

The node outputs JSON data containing the directory information related to the requested Tnved codes under the specified subject. The structure typically includes details about the commodity codes, descriptions, and possibly hierarchical classification data depending on the API response.

No binary data output is indicated.

Dependencies

  • Requires an API key credential for authentication with the external service providing the Tnved directory data.
  • The node uses HTTP requests configured with base URL and headers to interact with the external API.
  • Proper configuration of the API credentials in n8n is necessary for successful execution.

Troubleshooting

  • Missing or invalid Subject ID: Since Subject ID is required, omitting it or providing an invalid number will likely cause errors or empty responses.
  • Search parameter without Subject ID: The search by Tnved code only works if Subject ID is also provided; otherwise, the query may fail or return no results.
  • Locale not supported: Using unsupported locale values may result in default language responses or errors.
  • API authentication errors: Ensure that the API key credential is correctly set up and has sufficient permissions.
  • Network or connectivity issues: Verify network access to the external API endpoint.

Links and References

Discussion