Order shippingLines discountedPriceSet is wrong. Per the documentation this field “discountedPriceSet” should be “The pre-tax shipping price with discounts applied.”
We have an order with a free shipping discount code applied. The amount of the shipping is $5, and the discount code is for free shipping. The “discountedPriceSet” says $5 - shouldn’t it be $0?
“node”: {
“title”: “Economy (Free Shipping on orders over $100)”,
“originalPriceSet”: {
“presentmentMoney”: {
“amount”: “5.0”
}
},
“discountAllocations”: [
{
“discountApplication”: {
“allocationMethod”: “EACH”,
“targetType”: “SHIPPING_LINE”,
“value”: {}
},
“allocatedAmountSet”: {
“presentmentMoney”: {
“amount”: “5.0”
}
}
}
],
“discountedPriceSet”: {
“presentmentMoney”: {
“amount”: “5.0”
}
}
}