Solved

Draft Order: How to pass properties/notes to line items?

moaazbhnas228
Shopify Partner
11 2 5

I need to add a note for each line item in draft orders.

In the Shopify Admin docs, I found the "properties" field:

 

  • properties: An array of custom information for an item that has been added to the draft order, often used to provide product customization options. Copied to created order when draft order is completed.

But when I try to use it, it doesn't apply the data added to the draft order.

 

moaazbhnas228_0-1689594032257.png

 

 

Accepted Solution (1)

moaazbhnas228
Shopify Partner
11 2 5

This is an accepted solution.

The properties has to be an array of objects, and each object must contain "name" and "value" fields:

[
  {
    "name": "price",
    "value": "100"
  }
]

 

View solution in original post

Reply 1 (1)

moaazbhnas228
Shopify Partner
11 2 5

This is an accepted solution.

The properties has to be an array of objects, and each object must contain "name" and "value" fields:

[
  {
    "name": "price",
    "value": "100"
  }
]