change shipping lines order via API

nicolasortega
New Member
1 0 0

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

nicolasortega_2-1612875921095.png

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

nicolasortega_3-1612876176700.png

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

0 Likes
_JCC_
Shopify Staff
Shopify Staff
64 8 9

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.

Regards,

John

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 Shopify.dev or the Shopify Web Design and Development Blog

0 Likes