Hey Everyone,
I noticed today that the line_items.total_discounts field is not populating when using the Order API. I know this worked in the past but when I associate any data to this field on the Order API, it does not show up on my order in my Shopify admin. The Order API documentation says this field is still writable and it should show up on my order.
I have multiple examples with the request id if that helps. The JSON request looks something like this.
{
"email": "example@example.com",
"currency": "USD",
"customer": {
"email": "example@example.com",
"first_name": "Led"
},
"tax_lines": [{
"rate": "0.05",
"price": 5.0,
"title": "State Tax"
}],
"total_tax": 5.0,
"line_items": [{
"sku": "1009-1001",
"price": 50.0,
"title": "Goblet of Fire",
"quantity": 1,
"total_discount": 5.0
}, {
"sku": "1009-3001",
"price": 25.0,
"title": "Golden Snitch",
"quantity": 2,
"total_discount": 5.0
}],
"send_receipt": false,
"transactions": [{
"amount": 120.75
}],
"discount_codes": [{
"code": "Coupon1",
"amount": 10.0
}],
"shipping_lines": [{
"price": 15.75,
"title": "Fedex Ground"
}],
"taxes_included": "False",
"billing_address": {
"zip": "2215",
"city": "Boston",
"country": "US",
"address1": "4 Yawkey Way",
"province": "MA",
"last_name": "Dent"
},
"note_attributes": [{
"name": "Delivery-Date",
"value": "2018/12/21"
}, {
"name": "Customer Note",
"value": "Thank You"
}, {
"name": "PO Number",
"value": "123"
}],
"total_discounts": 10.0,
"shipping_address": {
"zip": "2215",
"city": "Boston",
"country": "US",
"address1": "4 Yawkey Way",
"province": "MA",
"last_name": "Dent"
},
"buyer_accepts_marketing": "TRUE"
}
We have customers that rely the line item total_discounts while importing their orders so any help you can provide here would be greatly appreciated.
Thanks for all your help!

