Hello,
I’m attempting to create a Sales Order via the REST API and I’m running into an error I don’t understand when applying a discount.
My DiscountDetails JSON payload looks like this:
"DiscountDetails": [
{
"Description": {
"value": "Coupon Discount"
},
"DiscountCode": {
"value": "COUPON"
},
"DiscountPercent": {
"value": 15
},
"DiscountAmount": {
"value": 0.6
},
"ManualDiscount": {
"value": true
},
"SequenceID": {
"value": "TATER15"
},
"Type": {
"value": "Document"
}
}
]
The error I’m receiving is “’Type’ cannot be empty”, but I am providing a “Type”, so I don’t really understand what’s wrong. There are no other errors.
The error only seems to occur when using the REST API; I have been able to successfully apply the same discount to a Sales Order using the Acumatica UI.
Any ideas? Thanks!
