Draft Order API Not Overriding Variant Default Price with Custom Price

Draft Order API Not Overriding Variant Default Price with Custom Price

zhangxiaolong
Shopify Partner
2 0 0

I am experiencing an issue with the Shopify Draft Order API (version 2025-01). I would like to set a custom price by including both the variant_id and price field in a draft order line item, but the created order still uses the variant's default price.

Below is an request url and payload :

https://startmakemoney.myshopify.com/admin/api/2025-01/draft_orders.json

 

{
  "draft_order": {
    "line_items": [
      {
        "variant_id": 47407549481273,
        "quantity": 2,
        "price": "50.00",
        "properties": [
          {
            "name": "Custom Option",
            "value": "Blackout 90%"
          },
          {
            "name": "Size",
            "value": "25'' x 13''"
          }
        ]
      }
    ]
  }
}

 

 

Replies 0 (0)