Closed Hpanday closed 1 year ago
using this format for properties allowed me to add them to line_items
const payload = {
order: {
line_items: [
{
variant_id: 123456789,
quantity: 1,
properties: [
{
name: "Custom Property 1",
value: "Value 1"
},
{
name: "Custom Property 2",
value: "Value 2"
}
// Add more properties as needed
]
}
// Add more line items if needed
]
}
};
Hey all, I am trying to create orders in my shopify store using
order.create
but I am unable to add properties to a line_item. I want the properties to show as below in the store.My code is as follows
but when I try to execute this, in the store nothing get's added in line_item's property field but everything else gets added perfectly (I have also checked the order using the API call to and there also line item properties show up as empty array). Am I doing something wrong? Is there a way to add line_item properties?
P.S. - Previously I was adding orders using a shopify app called MATRIXIFY throught the line item properties are added perfectly.