How to remove line item from order using shopify Rest Admin API

Shopify Partner
2 0 0


I have reviewed and didn't found anyway order line item remove.[get]/admin/api/2021-10/orders/count.json...



Reply 1 (1)

Shopify Partner
13 2 5

Hi Pratik,


This is not possible to remove the line item from the order through Shopify REST API. The Orders API allows only for updating properties of an order including `buyer_accepts_marketing`, `email`, `phone`, `note`, `tags`, `metafields` and `shipping_address_attributes`. It is not for editing the items of an order.




Arslan | Shopify Developer
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Feel free to ask if you have any question, I'd love to extend a hand to help you out.