rr_list_sales_history
Retrieve paginated sales history by SKU, store, or time range to analyze daily or monthly demand. Use cursor values to page through results and determine window totals for planning.
Instructions
Get sales history rows, newest first, over a time period. total is the exact number of rows in the window; count is the rows in this page. When has_more is true, pass next_cursor as cursor to get the next page. Totals and rankings come from total or rr_list_top_sellers; a partial walk of the rows says nothing about the whole window.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "rr_list_sales_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | No | Filter by SKU | |
| days | No | Lookback days (default 30, max 90) | |
| limit | No | Rows per page (default 1000, max 5000). | |
| cursor | No | next_cursor from the previous page. Pass it with the same other inputs until has_more is false. | |
| months | No | Months of history when granularity is month (default 12, max 36). Net demand units; the newest month may be partial. | |
| store_id | No | Only sales from this store. | |
| granularity | No | day (default) returns daily rows for up to 90 days. month returns one row per calendar month for up to 36 months, for one SKU or, with no SKU, the store's totals. |