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?
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-refundsWith 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.
View solution in original post