API : Create an order with a specifi shipping_lines item

Theo_fr
Visitor
1 0 0

Hi there,

 

I wanted to know how i can update Delivery method ("shipping_lines") in API Post request :

{
   "order":{
      "line_items":[
         {
            "variant_id":41075873120427,
            "quantity":1
         }
      ]
   },
   "shipping_lines":[
      {
         "id":3415903010987,
         "carrier_identifier":null,
         "code":"Gratuit",
         "delivery_category":null,
         "discounted_price":"0.00",
         "discounted_price_set":{
            "shop_money":{
               "amount":"0.00",
               "currency_code":"EUR"
            },
            "presentment_money":{
               "amount":"0.00",
               "currency_code":"EUR"
            }
         },
         "phone":null,
         "price":"0.00",
         "price_set":{
            "shop_money":{
               "amount":"0.00",
               "currency_code":"EUR"
            },
            "presentment_money":{
               "amount":"0.00",
               "currency_code":"EUR"
            }
         },
         "requested_fulfillment_service_id":null,
         "source":"shopify",
         "title":"Gratuit",
         "tax_lines":[
            
         ],
         "discount_allocations":[
            
         ]
      }
   ]
}

 

Thanks

Replies 2 (2)

Don
Shopify Staff
2762 199 388

Hi there @Theo_fr!

I just wanted to let you know I have moved your query here to our API forums, so as to get you the best chance of a useful reply on this.

These forums are moderated and responded to by our developers and your fellow Partners, so it really is the best place to share queries like this.

If you haven't already, you can always check out our API dev docs here, to learn more about objects like this one

 

Don | Social Care @ 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 the Shopify Help Center or the Shopify Blog

Luke_K
Shopify Staff
402 66 98

Hey @Theo_fr 

Thanks for getting touch about this! At present, it's not possible to add or update the shipping lines via the API. Please feel free to check out here for further info - there's a potential workaround too. Hope that at least explains! Thanks.

| Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!