Actions19
- Статистика По Продвижению Actions
- Воронка Продаж Actions
- Поисковые Запросы Actions
- История Остатков Actions
- Аналитика Продавца CSV Actions
Overview
This node operation "Post Stocks Report Products Sizes" under the resource "История Остатков" (Stock History) is designed to send a detailed request to an external API to retrieve or post stock report data for product sizes. It allows users to specify a product by its unique identifier, define a time period for the report, filter by stock type, sort the results, and choose whether to include detailed warehouse-level information.
Typical use cases include:
- Generating stock availability reports for specific products over a defined date range.
- Analyzing inventory distribution across different warehouse types (e.g., marketplace warehouses vs. company-owned warehouses).
- Sorting stock data based on average orders or other criteria to prioritize inventory management.
- Including or excluding detailed office/warehouse breakdowns in reports for operational insights.
For example, a seller on a marketplace might want to check how their product stocks have changed over a week, focusing only on marketplace warehouses, sorted by average orders ascending, and including detailed warehouse info.
Properties
| Name | Meaning |
|---|---|
| Nm ID | The unique product article number (WB article number). |
| Current Period | The reporting period specified as a JSON object with start and end dates (e.g., { "start": "2024-02-10", "end": "2024-02-10" }). |
| Stock Type | Type of warehouses to include in the report: all (""), WB warehouses (wb), or Marketplace warehouses (mp). |
| Order By | Sorting criteria for the data, provided as a JSON object with fields like field (e.g., "avgOrders") and mode ("asc" or "desc"). |
| Include Office | Boolean flag indicating whether to include detailed breakdown by individual warehouses/offices. |
Output
The node outputs JSON data representing the stock report for the specified product and period. This JSON typically includes stock quantities, sizes, and possibly aggregated metrics such as average orders, depending on the API response.
If binary data were involved (e.g., file downloads), it would be summarized here, but this node focuses on JSON stock report data.
Dependencies
- Requires connection to an external API endpoint related to stock history reporting.
- Needs an API key or authentication token configured in n8n credentials to authorize requests.
- Uses JSON payloads for sending parameters and receiving responses.
- The base URL and API schema are derived from an imported Swagger/OpenAPI specification.
Troubleshooting
- Invalid or missing required properties: Ensure all required inputs (Nm ID, Current Period, Stock Type, Order By, Include Office) are provided and correctly formatted.
- Authentication errors: Verify that the API key or authentication credentials are properly set up in n8n.
- Malformed JSON inputs: For properties expecting JSON (Current Period, Order By), ensure valid JSON syntax is used.
- API connectivity issues: Check network access to the API endpoint and confirm the base URL is correct.
- Unexpected API responses: Review the API documentation for changes or additional required parameters.
Links and References
- Wildberries API Documentation (example, replace with actual relevant docs)
- n8n Documentation on HTTP Request Node
- JSON formatting guide: https://www.json.org/json-en.html