Update products line item from an order

I’m trying to work on an app, where I want to update or add the line-items of the products after the order has been submitted. I was trying to find the GraphQl API’s from the documentation but couldn’t find anything.
Reference Documentation link: orderEditAddShippingLine - GraphQL Admin

Have anyone worked on this type of API before? Please let me know if I can work on that.

Thanks.

It’s better to post your Query on shopify.dev where you can get the best answers regarding the app development.

Hope this was helpful!

Best,

Daniel

Hi @el_006

Yes, you can do this, but it requires a specific three-step “Order Edit” process via the GraphQL Admin API. You cannot add a line item in a single step.

First, you must understand that you’ll be using a sequence of mutations to safely modify a submitted order. You will need the write_orders access scope for your app to perform these actions.

And like @The_ScriptFlow said, it is best to post your query on here and get some answers!

Hope this helps!