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

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

pratik7
Shopify Partner
2 0 0

Hello,

I have reviewed and didn't found anyway order line item remove.

https://shopify.dev/api/admin-rest/2021-10/resources/order#[get]/admin/api/2021-10/orders/count.json...

 

Screenshot_16.png

Reply 1 (1)

Arslan
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_0-1640983445758.png

 

https://shopify.dev/api/admin-rest/2021-10/resources/order#[put]/admin/api/2021-10/orders/{order_id}...

 

 

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.