Shop API icon

Shop API

Call Shop API

Statistics → Product Orders

AI-generated

Summary

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-dd format; sent as the month query 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).

Links

Discussion