How to get Shopify returns which is created in given date range

Hello
I want to get return orders details which is shown in the Shopify UI Using Graph QL API orders mutations. How do I get all the return orders for given date range.
Or Is there any way to get All returns of specific date range?

Thanks In Advance.

Hey @IleshParmar ,

That’s a great question. There isn’t currently a returns query that you can use, but there is a return_status filter available on the orders connection.

https://shopify.dev/changelog/filter-orders-by-return-status

You could use that filter paired with the updated_at or created_at filters to narrow down the return orders around specific dates.

You may also find this document interesting as it give a high level overview of the returns process and various API calls that can be used!

https://shopify.dev/docs/apps/fulfillment/returns-apps

Hope this helps.

  • Kyle G.