Have your say in Community Polls: What was/is your greatest motivation to start your own business?

How to set carrier_identifier by POST request on the ORDER resource?

How to set carrier_identifier by POST request on the ORDER resource?

Agam1997
Shopify Partner
3 0 0

Hey,

 

When I create an order from admin rest api with shipping_lines as

{
      "code": "Standard (Free Shipping above Rs 500!)",
      "carrier_identifier": "identifier_id_here",
      "price": "50",
      "price_set": {
        "shop_money": {
          "amount": "50",
          "currency_code": "INR"
        },
        "presentment_money": {
          "amount": "50",
          "currency_code": "INR"
        }
      },
      "discounted_price": "50",
      "discounted_price_set": {
        "shop_money": {
          "amount": "50",
          "currency_code": "INR"
        },
        "presentment_money": {
          "amount": "50",
          "currency_code": "INR"
        }
      },
      "source": "shopify",
      "title": "Standard (Free Shipping above Rs 500!)",
      "tax_lines": [],
      "requested_fulfillment_service_id": null
    }

The carrier_identifier never gets set as "identifier_id_here" it's always null. 

Any help is greatly appreciated.

 

Agam

Replies 0 (0)