Get Channel Sales History (Pro Forma)
GET/api/v2/pro-forma/history
Historical realized actuals for one product on a set of sales channels — the "pro forma vs. actuals" comparison.
products:readGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Metrics (per the period):
orders— distinct order count (drafts and cancelled excluded)units— total units soldavg_unit_revenue/avg_unit_cogs/avg_unit_fees— per-unit averages from sales order line financials (fees = allocated settlement/channel costs)avg_unit_shipping— fulfillment costs prorated to the product by quantity shareavg_margin_pct— profit / revenue * 100return_rate_pct— quantity-weighted share of lines with credits or returned COGSavg_refund_pct— refund $ as % of gross revenue over returned lines (null when the period has no returns)recovery_rate_pct— COGS recovered (restocked) as % of COGS over returned lines (null when the period has no returns)
data is null when the product has no qualifying orders in the period.
Requires Bearer token (products scope).
Request
Responses
- 200
- 401
- 403
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.