Yes, setting manualDiscount to 1/true helps if you use the discountPercent field, but I use the discountAmountInCurrency field and according to my tests it doesn't help to set manualDiscount = 1/true in that case. This fails: {
"customerNumber": {
"value": "10000"
},
"invoiceLines": [
{
"operation": "Insert",
"quantity": {
"value": 1
},
"unitPriceInCurrency": {
"value": 1000
},
"inventoryNumber": {
"value": "1"
},
"discountAmountInCurrency": {
"value": 200
},
"manualDiscount": {
"value": true
}
}
]
} This works: {
"customerNumber": {
"value": "10000"
},
"invoiceLines": [
{
"operation": "Insert",
"quantity": {
"value": 1
},
"unitPriceInCurrency": {
"value": 1000
},
"inventoryNumber": {
"value": "1"
},
"discountPercent": {
"value": 30
},
"manualDiscount": {
"value": true
}
}
]
} As far as I can see the only workaround in my case is to switch from using discountAmountInCurrency to discountPercent.
... View more