Get Refunds Report
GET/api/reports/refunds
Gross revenue, refunded amount, net revenue and refund rate for the period, as totals, an interval trend and one row per group.
reports:readGrant this scope to your token under Settings → Developer → Personal Access Tokens.
- Gross revenue: product revenue on non-draft, non-cancelled orders placed in the period, after discounts and before refunds, in home currency.
- Refunded: sales credit lines dated in the period (draft credits excluded), quantity x amount converted at each credit's exchange rate.
- Refund rate: refunded / gross revenue for the same group (null when gross revenue is 0).
Rows come one page at a time (page, per_page), in sort order (largest refunds first by default); rows_total is the number of rows across all pages. product_id 0 groups non-product lines (shipping, fees, goodwill); sales_channel_id 0 groups orders with no sales channel. A field not part of the grouping is null. Trend buckets cover the whole range, including empty ones; period is each bucket's first day.
Narrow the rows with search (search_columns / search_strict_columns pick the fields and exact matching) and the advanced filter tree filter_groups; both narrow the rows only, never totals or the trend.
Exports: format=xlsx (or format=csv with columns) downloads the table as a spreadsheet with the chosen columns and scope (all, filtered, or current_page with the row keys), ending in a Total row of the exported rows. format=csv without columns downloads the original CSV of every column.
Authentication: Requires Bearer token.
Request
Responses
- 200
- 401
- 403
- 422
- 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.
Unprocessable Content
Response Headers
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.