change shipping lines order via API

New Member
3 0 0

Hi community! , im trying to change the shipping_lines via api. Currently im modifying the shipping_address without problems using this


This works, but when i try to change specifically the shipping_lines doesnt works, im using this


'll it be possible to make that change?, Im doing this from a custom modal in my app

Shopify Staff
Shopify Staff
160 21 28

This is an accepted solution.

Hey @nicolasortega ,

Happy to help you out with this. Shipping line edits are not possible via REST or GraphQL admin APIs. Order edits that impact the value of the order to not be possible with REST. While your example is not specifically changing the shipping cost, any attribute of the shipping line is prevented from being updated with an Order PUT request.

GraphQL does support some order edit capabilities as documented in this tutorial, but again shipping line updates is not one of them.



John C | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit or the Shopify Web Design and Development Blog