It looks like the “restock” field has been deprecated https://shopify.dev/api/admin-rest/2021-04/resources/order#[post]/admin/api/2021-04/orders/{order_id}/cancel.json
What is the proper way to cancel, restock and refund all the lines items an order? Preferably using the REST admin API.
Thank you!
Hi @sengming
You’ll want to take a look at the Refund documentation found here: https://shopify.dev/api/admin-rest/2021-04/resources/refund The restock information is now provided via restock_type under the refund_line_items property. Hope this helps!
Regards,
Thanks for the reply @cs . How about cancelling and refunding the order?