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

IleshParmar
Visitor
1 0 0

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.

Reply 1 (1)

ShopifyDevSup
Shopify Staff
1323 218 459

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. 

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog