Create flow to close returns older than 30 days

Solved

Create flow to close returns older than 30 days

morojp82
Tourist
10 0 3

Need help creating a Shopify flow to automatically close orders with the status (Return in progress) that were created over 30 days ago.


Thank you!

Accepted Solution (1)

RPiii
Shopify Staff
44 7 18

This is an accepted solution.

We recently released several new options for handling returns, including a template to Cancel inactive returns that automatically cancels a return that has not been refunded or restocked within a certain period of time.

View solution in original post

Replies 5 (5)

Kalen_Jordan
Shopify Partner
737 34 128

You'll want to use get order data with a query in it with return_status:open and created_at less than 30 days ago, then loop over and close.

morojp82
Tourist
10 0 3

Thanks for the info, but how do I enter a query with said info as a flow?

 

Cheers

Kalen_Jordan
Shopify Partner
737 34 128

Looks like there are some templates for this mentioned below.

RPiii
Shopify Staff
44 7 18

This is an accepted solution.

We recently released several new options for handling returns, including a template to Cancel inactive returns that automatically cancels a return that has not been refunded or restocked within a certain period of time.

morojp82
Tourist
10 0 3

Thank you!