Hi,
I am read all document and forum post regarding creating order with live item level discount, but none of them are working for me.
Here is my JSON payload.
{
"order":{
"discount_codes":[
{
"code":"RAKESHTE2ST",
"amount":"45"
}
],
"email":"foo@example.com",
"line_items":[
{
"variant_id":21516219908176,
"quantity":1,
"discount_allocations": [
{
"amount": "45",
"discount_application_index": 0
}
]
},
{
"variant_id":21516220006480,
"quantity":1
}
]
}
}
Discount code is configured to give 30% on one of variant that I mentioned in line items.
Expected result is having discount on that 21516219908176 ( variant ID ) not on other. But its being applied prorated on both line items.
Can any one help me please ?
Thanks,
Rakesh