Skip to main content

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.

Required scope: reports:read

Grant 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​

OK

Response Headers
    Content-Type