Can I remove a line item of an existing order via GraphQL API?

mawta
New Member
1 0 0

Hi, I'm new to Shopify , please help me.

I see those line in the document here: https://help.shopify.com/en/api/guides/editing-orders

 

You can make the following edits to an order with the Order editing API:

Add new variant line items

Add new custom line items

Remove line items

Alter line item quantities

 

but I cannot find the way to delete a line item at the Shopify GraphQL Explorer: https://help.shopify.com/en/api/admin-graphiql

 

 

please, help me.

by the way, have a nice day

(sorry for my Enlish).

 

0 Likes
Ryan
Shopify Staff
Shopify Staff
492 42 110

HI @mawta ,

 

The Order Editing feature is only available in the Unite 2019 Developer Preview.  For more information on testing this API please see the changelog entry for the release of the feature.  Once the feature goes live for all partners you will be able to remove the line item on an existing order using this API.

 

Regards,

Ryan

Developer Experience @ Shopify
0 Likes
max-b
New Member
1 0 0

@Ryan is there an expected release date for this feature? want to make sure we plan accordingly to support this feature for our app

0 Likes
Ryan
Shopify Staff
Shopify Staff
492 42 110

There is not yet a publicly announced release date for general availability sorry.

Developer Experience @ Shopify
0 Likes
TomTranzistor
Shopify Partner
31 2 5

Hey there, 

 

Just use the set Qauntity endpoint and set it to 0 !

 

Happy to help

Let us help you - Tranzistor.tech
0 Likes