Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hey,
I am looking for a graphQL query that that gets the order numbers for returns? I think it needs to be query orders {}
Preferably with the returnID so I can use the query {}.
I guess, I want to get a list of all orders with returns on them and also filter by an update date.
Any ideas?
I think you need the Orders through admin api you can try this query in graphql admin api
query GetReturnOrders {
orders(first: 10, query: "return_status:returned") { # Adjust the number as needed
edges {
node {
id
name # Order number
returnStatus
createdAt
}
}
}
}
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025