App reviews, troubleshooting, and recommendations
Hi All,
We are trying to calculate customer returns programmatically. I couldn't find any object/variable/query that allow us to readily use the total returns by customers. Only close option I can see is this: https://shopify.dev/docs/api/admin-graphql/2024-01/objects/Customer#connection-orders-query-query-fi.... However, we want to get customers with count of returns done in the life time. Is there any other way we can get parameters closer to this ?
Solved! Go to the solution
This is an accepted solution.
This is not directly available and you are on the right track.
But instead of getting customer object, it would be slightly cheaper to directly use the orders query. Query by both the "customer_id" and "return_status".
https://shopify.dev/docs/api/admin-graphql/2024-01/queries/orders#argument-query
This is an accepted solution.
This is not directly available and you are on the right track.
But instead of getting customer object, it would be slightly cheaper to directly use the orders query. Query by both the "customer_id" and "return_status".
https://shopify.dev/docs/api/admin-graphql/2024-01/queries/orders#argument-query
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024