Skip to main content

ShopifyQL returns fields deprecated and replaced with sales reversals fields

In GraphQL Admin API version 2026-04, several Returns fields in analytics, which can be queried through ShopifyQL, have been deprecated and replaced with renamed versions (e.g., sales_reversals, reversed_quantity) to better reflect that they capture all order adjustments, including refunds, returns, order edits, and cancellations. The definitions remain unchanged.

Deprecation timeline

Deprecated fields will be removed in version 2026-07, but will still be accessible via older API versions until 2027-04.

Why we did this

The new field names clarify the difference between broad order adjustments (sales reversals) and physical returns. With the launch of return reason reporting, you can now see physical quantities returned and their reasons at the line item level, separate from overall order adjustments. Access these details in the returns schema using returned_quantity, return_line_item_reason, and is_unverified_return_line_item.

What you need to do

Update your ShopifyQL queries to use the new sales_reversals and reversed_quantity fields (see mapping table below)

Deprecated fieldNew replacement field
returnssales_reversals
net_returnsnet_sales_reversals
gross_returnsgross_sales_reversals
total_returnstotal_sales_reversals
discounts_returneddiscount_reversals
shipping_returnedshipping_reversals
taxes_returnedtax_reversals
quantity_returnedreversed_quantity
returned_quantity_ratereversed_quantity_rate
is_return_relatedis_reversal
order_or_returnorder_or_sales_reversal

Learn more about the updated fields., and about ShopifyQL.

Was this section helpful?