sales_getOrderMetrics
Order metrics (units, order count, revenue) as a time series per granularity — sales trends, year-over-year comparisons, revenue reporting.
readAmazon Seller (SP-API)sp.sales
Read-only. Amazon SP-API · getOrderMetrics · GET /sales/v1/orderMetrics
Call it
In an AI client (MCP)
{
"name": "sales_getOrderMetrics",
"arguments": {
"store": "myStore-US",
"interval": "<interval>",
"granularity": "Hour"
}
}From code (Tool API)
curl -X POST https://api.sellersheetai.com/api/v1/tools/sales_getOrderMetrics \
-H "Authorization: Bearer $SELLERSHEET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"store":"myStore-US","interval":"<interval>","granularity":"Hour"}'Early access — the Tool API is open on request, contact us.
Arguments
| Name | Type | Description |
|---|---|---|
storerequired | string | the store ref `<store>-<CC>` (name-country, e.g. 'myStore-US') — one of get_user_context's store_refs, verbatim. |
intervalrequired | string | two ISO-8601 datetimes joined by '--', BOTH with a timezone offset ('2026-01-01T00:00:00-07:00--2026-02-01T00:00:00-07:00', or 'Z' for UTC) — a single datetime is rejected before the call, and Amazon refuses an offset-less interval even with granularity_time_zone set. Hour works only for an interval within the last 30 days; every other granularity within the last 2 years. A time interval used for selecting order metrics. This takes the form of two dates separated by two hyphens (first date is inclusive; second date is exclusive). Dates are in ISO8601 format and must represent absolute time (either Z notation or offset notation). Example: 2018-09-01T00:00:00-07:00--2018-09-04T00:00:00-07:00 requests order metrics for Sept 1st, 2nd and 3rd in the -07:00 zone. |
granularityrequired | string | the bucket size of the series; Total returns one sum for the interval. Allowed: Hour | Day | Week | Month | Year | Total. The granularity of the grouping of order metrics, based on a unit of time. Specifying granularity=Hour results in a successful request only if the interval specified is less than or equal to 30 days from now. For all other granularities, the interval specified must be less or equal to 2 years from now. Specifying granularity=Total results in order metrics that are aggregated over the entire interval that you specify. If the interval start and end date don’t align with the specified granularity, the head and tail end of the response interval will contain partial data. Example: Day to get a daily breakdown of the request interval, where the day boundary is defined by the granularityTimeZone.HourDayWeekMonthYearTotal |
marketplace_ids | object[] | optional single-element override of the store's marketplace (['ATVPDKIKX0DER']) — Amazon allows EXACTLY ONE per call, so compare marketplaces one call each; omit to use the store's. A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. For example, ATVPDKIKX0DER indicates the US marketplace. |
granularity_time_zone | string | IANA zone ('UTC', 'Asia/Dubai') that sets the day boundary for Day-or-longer granularity; Amazon requires it above Hour. Match it to the interval's offset (a 'Z' interval → 'UTC', '+04:00' → 'Asia/Dubai') or the buckets are re-cut in that zone with partial-day edges. An IANA-compatible time zone for determining the day boundary. Required when specifying a granularity value greater than Hour. The granularityTimeZone value must align with the offset of the specified interval value. For example, if the interval value uses Z notation, then granularityTimeZone must be UTC. If the interval value uses an offset, then granularityTimeZone must be an IANA-compatible time zone that matches the offset. Example: US/Pacific to compute day boundaries, accounting for daylight time savings, for US/Pacific zone. |
buyer_type | string | whose orders to count — business buyers, consumers or both. Default: All. Allowed: B2B | B2C | All. Filters the results by the buyer type that you specify, B2B (business to business) or B2C (business to customer). Example: B2B, if you want the response to include order metrics for only B2B buyers.B2BB2CAll |
fulfillment_network | string | AFN (FBA) | MFN (seller-fulfilled); omit for both. Filters the results by the fulfillment network that you specify, MFN (merchant fulfillment network) or AFN (Amazon fulfillment network). Do not include this filter if you want the response to include order metrics for all fulfillment networks. Example: AFN, if you want the response to include order metrics for only Amazon fulfillment network. |
first_day_of_week | string | the day a Week bucket starts on. Default: Monday. Allowed: Monday | Sunday.MondaySunday |
asin | string | the ASIN (e.g. 'B0XXXXXXXX'). Mutually exclusive with sku. Filters the results by the ASIN that you specify. Specifying both ASIN and SKU returns an error. Do not include this filter if you want the response to include order metrics for all ASINs. Example: B0792R1RSN, if you want the response to include order metrics for only ASIN B0792R1RSN. |
sku | string | one seller SKU. Mutually exclusive with asin. Filters the results by the SKU that you specify. Specifying both ASIN and SKU returns an error. Do not include this filter if you want the response to include order metrics for all SKUs. Example: TestSKU, if you want the response to include order metrics for only SKU TestSKU. |
amazon_program | string | limits the metrics to one Amazon program — AmazonHaul is the low-cost storefront; omit for all programs. Filters the results by the Amazon program that you specify. Do not include this filter if you want the response to include order metrics for all programs. Example: AmazonHaul returns order metrics for the Amazon Haul program only. |
Result
Every tool answers {notification, data, human_action}; data carries:
data.granularity / data.interval— as requested.data.result— one per period — {interval, unitCount, orderItemCount, orderCount, averageUnitPrice {amount, currencyCode}, totalSales {amount, currencyCode}}.