WbReports icon

WbReports

n8n node to interact with WB API

Actions26

Overview

This node interacts with a specific API to retrieve acceptance report tasks by their Task Id within the "Платная Приёмка" (Paid Acceptance) resource. It is designed to download detailed reports related to acceptance tasks, which can be useful for quality control, auditing, or tracking task completion statuses in logistics or warehouse management scenarios.

Practical examples include:

  • Automatically fetching acceptance report data for a given task to integrate into internal dashboards.
  • Downloading task-specific reports for compliance verification or record-keeping.
  • Triggering workflows based on the status or content of acceptance reports.

Properties

Name Meaning
Task Id The unique identifier of the acceptance report task to retrieve and download the report.

Output

The node outputs JSON data representing the acceptance report task details associated with the provided Task Id. This typically includes metadata and possibly the report content itself. If the report contains binary data (e.g., PDF or other file formats), the node would handle it accordingly, but this is not explicitly shown in the source code snippet.

Dependencies

  • Requires an API key credential or similar authentication token to access the external API.
  • Depends on the base URL and OpenAPI specification defined in the bundled swagger JSON (11-reports_modified.json).
  • Uses an internal helper library for building properties and making HTTP requests.
  • The node expects the environment to have network access to the API endpoint specified in the base URL.

Troubleshooting

  • Common issues:
    • Invalid or missing Task Id will result in errors or empty responses.
    • Authentication failures if the API key or credentials are not properly configured.
    • Network connectivity problems preventing access to the API endpoint.
  • Error messages:
    • "Unauthorized" or "Authentication failed": Check that the API key credential is correctly set up.
    • "Task not found" or similar: Verify the Task Id is correct and exists in the system.
    • Timeout or connection errors: Ensure the API endpoint is reachable from the n8n instance.

Links and References

  • No direct external links were provided in the source code.
  • Refer to the API documentation corresponding to the acceptance report tasks for detailed schema and usage.
  • Consult n8n documentation on setting up API credentials and handling HTTP request nodes for further configuration help.

Discussion