Cancel, restock and refund all the lines items an order

Cancel, restock and refund all the lines items an order

sengming
Shopify Partner
50 1 9

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...

 

What is the proper way to cancel, restock and refund all the lines items an order? Preferably using the REST admin API.

 

Thank you!

Replies 2 (2)

csam
Shopify Staff (Retired)
267 40 51

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,

To learn more visit the Shopify Help Center or the Community Blog.

sengming
Shopify Partner
50 1 9

Thanks for the reply @cs . How about cancelling and refunding the order?