A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
I'm assuming the Cancel API will bring the inventory back, but the location doesn't seem to be correct.
The API doesn't seem to allow me to specify a location, is there any solution?
Solved! Go to the solution
This is an accepted solution.
Hi there!
I think you will want to be using the Refund Resource.
https://shopify.dev/api/admin-rest/2022-04/resources/refund#post-orders-order-id-refunds
With the refund resource you will be able to include restocking instructions for the line items, including the location_id, of where the item should be restocked to.
To learn more visit the Shopify Help Center or the Community Blog.
This is an accepted solution.
Hi there!
I think you will want to be using the Refund Resource.
https://shopify.dev/api/admin-rest/2022-04/resources/refund#post-orders-order-id-refunds
With the refund resource you will be able to include restocking instructions for the line items, including the location_id, of where the item should be restocked to.
To learn more visit the Shopify Help Center or the Community Blog.