Actions119
- Products Actions
- Categories Actions
- Customers Actions
- Customer Groups Actions
- Agents Actions
- Contacts Actions
- Orders Actions
- Offers Actions
- Preorders Actions
- Payment Methods Actions
- Pricelists Actions
- Product Units Actions
- Product Types Actions
- Tags Actions
- Tag Types Actions
- Tax Rates Actions
- Reorder Reminders Actions
- Prospects Actions
- Activities Actions
- Statistics Actions
Statistics → Product Orders
AI-generatedSummary
Retrieves orders containing a specified product for a given month by sending a POST request to the Shop API. Provide the product ID, month in yyyy-MM-dd format, and a JSON object as the request body.
Inputs
- Product ID (required) — Product whose orders to retrieve.
- Month (required) — Month to expand, in
yyyy-MM-ddformat; sent as themonthquery parameter. - Request Body (required) — JSON object sent as the request body; defaults to
{ }.
Output shape
A single response item containing the API response.
The request uses
POST /v1/stats/products/{productId}/orders?month={month}. The product ID and month are URL-encoded. The request body must parse as a JSON object; invalid JSON or a JSON value that is not an object causes an error.
Examples
Example 1: Fetch product orders for a month
Set Product ID, enter the month as a yyyy-MM-dd date, and supply a JSON object in Request Body (or leave the default empty object).