replenishment_getSellingPartnerMetrics
Get aggregated, account-level Subscribe & Save replenishment metrics for the selling partner.
readAmazon Seller (SP-API)sp.replenishment-2022-11-07
Amazon SP-API · getSellingPartnerMetrics · POST /replenishment/2022-11-07/sellingPartners/metrics/search Returns program-wide numbers (active subscriptions, subscription revenue, OOS loss, retention, revenue penetration) — NOT per-offer data. For per-ASIN drill-down use replenishment_listOfferMetrics.
Call it
In an AI client (MCP)
{
"name": "replenishment_getSellingPartnerMetrics",
"arguments": {
"store": "myStore-US",
"timeInterval": {}
}
}From code (Tool API)
curl -X POST https://api.sellersheetai.com/api/v1/tools/replenishment_getSellingPartnerMetrics \
-H "Authorization: Bearer $SELLERSHEET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"store":"myStore-US","timeInterval":{}}'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. |
timeIntervalrequired | object | {startDate, endDate}, both ISO 8601 datetimes with timezone, e.g. {"startDate": "2026-04-01T00:00:00Z", "endDate": "2026-04-30T00:00:00Z"}. A date-time interval in ISO 8601 format used to compute metrics. Only the date is required, but you must pass the complete date and time value. For example, November 11, 2022 should be passed as "2022-11-11T00:00:00Z". Note that only data for the trailing 2 years is supported. Note: The listOfferMetrics operation only supports a time interval which covers a single unit of the aggregation frequency. For example, for a MONTH aggregation frequency, the duration of the interval between the startDate and endDate can not be more than 1 month; For the getSellingPartnerMetrics operation with DAY aggregation frequency, the time interval cannot exceed 31 days |
timePeriodType | string | PERFORMANCE (backward-looking; the default when omitted) or FORECAST (forward-looking projection).PERFORMANCEFORECAST |
aggregationFrequency | string | how to group rows in the response. Amazon REQUIRES it when timePeriodType=PERFORMANCE (else it 400s "aggregationFrequency is required for PERFORMANCE timePeriodType"); omit it with FORECAST. startDate / endDate are widened to whole buckets (WEEK = Monday–Sunday, MONTH = the calendar month, and so on). Allowed: DAY | WEEK | MONTH | QUARTER | YEAR. The time period used to group data in the response. Note that this is only valid for the PERFORMANCE time period type.DAYWEEKMONTHQUARTERYEAR |
programTypes | string[] | omit — SUBSCRIBE_AND_SAVE, the only value, is sent for you. |
metrics | string[] | optional allowlist of metric names; omit for all. Allowed: SHIPPED_SUBSCRIPTION_UNITS | TOTAL_SUBSCRIPTIONS_REVENUE | ACTIVE_SUBSCRIPTIONS | NOT_DELIVERED_DUE_TO_OOS | SUBSCRIBER_NON_SUBSCRIBER_AVERAGE_REVENUE | LOST_REVENUE_DUE_TO_OOS | SUBSCRIBER_NON_SUBSCRIBER_AVERAGE_REORDERS | COUPONS_REVENUE_PENETRATION | REVENUE_BY_DELIVERIES | SUBSCRIBER_RETENTION | REVENUE_PENETRATION_BY_SELLER_FUNDING | SHARE_OF_COUPON_SUBSCRIPTIONS | SUBSCRIBER_LIFETIME_VALUE_BY_CUSTOMER_SEGMENT | SIGNUP_CONVERSION_BY_SELLER_FUNDING | REVENUE_PENETRATION. The list of metrics requested. If no metric value is provided, data for all metrics will be returned.SHIPPED_SUBSCRIPTION_UNITSTOTAL_SUBSCRIPTIONS_REVENUEACTIVE_SUBSCRIPTIONSNOT_DELIVERED_DUE_TO_OOSSUBSCRIBER_NON_SUBSCRIBER_AVERAGE_REVENUELOST_REVENUE_DUE_TO_OOSSUBSCRIBER_NON_SUBSCRIBER_AVERAGE_REORDERSCOUPONS_REVENUE_PENETRATIONREVENUE_BY_DELIVERIESSUBSCRIBER_RETENTIONREVENUE_PENETRATION_BY_SELLER_FUNDINGSHARE_OF_COUPON_SUBSCRIPTIONSSUBSCRIBER_LIFETIME_VALUE_BY_CUSTOMER_SEGMENTSIGNUP_CONVERSION_BY_SELLER_FUNDINGREVENUE_PENETRATION |
filters | object | Optional dict (each list maxItems 20, minItems 1): {"asins": [...], "skus": [...] (sellers only), "fulfillmentChannelTypes": [...] (each AMAZON | MERCHANT; sellers only), "brandNames": [...] (US only), "productGroups": [...] (vendors only)}. Use these parameters to filter results. Any result must match all provided parameters. For parameters that accept multiple values (arrays), the API returns results that match at least one value in the array. |
marketplaceId | string | optional Amazon marketplaceId; defaults to the store ref's marketplace. The marketplace identifier. The supported marketplaces for both sellers and vendors are US, CA, ES, UK, FR, IT, IN, DE, and JP. The supported marketplaces for vendors only are BR, AU, MX, AE, and NL. Refer to Marketplace IDs to find the identifier for the marketplace. |
Result
Every tool answers {notification, data, human_action}; data carries:
data.result.metrics[]— per-interval objects (activeSubscriptions, totalSubscriptionsRevenue, shippedSubscriptionUnits, notDeliveredDueToOOS, lostRevenueDueToOOS, subscriberRetentionFor30Days/90Days, revenuePenetration, timeInterval, currencyCode, ...).
Body (Amazon schema)
aggregationFrequency: DAY | WEEK | MONTH | QUARTER | YEAR
timeInterval*: {startDate*, endDate*}
metrics: [SHIPPED_SUBSCRIPTION_UNITS | TOTAL_SUBSCRIPTIONS_REVENUE | ACTIVE_SUBSCRIPTIONS | NOT_DELIVERED_DUE_TO_OOS | SUBSCRIBER_NON_SUBSCRIBER_AVERAGE_REVENUE | LOST_REVENUE_DUE_TO_OOS | SUBSCRIBER_NON_SUBSCRIBER_AVERAGE_REORDERS | COUPONS_REVENUE_PENETRATION | REVENUE_BY_DELIVERIES | SUBSCRIBER_RETENTION | REVENUE_PENETRATION_BY_SELLER_FUNDING | SHARE_OF_COUPON_SUBSCRIPTIONS | SUBSCRIBER_LIFETIME_VALUE_BY_CUSTOMER_SEGMENT | SIGNUP_CONVERSION_BY_SELLER_FUNDING | REVENUE_PENETRATION] (min 1)
filters: {asins: [string] (1–20), skus: [string] (1–20), fulfillmentChannelTypes: [AMAZON | MERCHANT] (1–2), brandNames: [string] (1–20), productGroups: [string] (1–20)}
timePeriodType*: PERFORMANCE | FORECAST
marketplaceId*: string
programTypes*: [SUBSCRIBE_AND_SAVE] (min 1)