cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 - Issues with coupon / vouchers

when ever we've got a transaction with a coupon we get an error such as:

 

'code' => 'E00003',
'text' => 'The \'AnetApi/xml/v1/schema/AnetApiSchema.xsd:unitPrice\' element is invalid - The value '-78.05' is invalid according to its datatype \'Decimal\' - The MinInclusive constraint failed.',

 

I am guessing the extension is added an itemline for the discount, which gets refused due to it being a negative value.

 

This is causing a huge headache..

asurrey
Member
10 REPLIES 10
@gakon104110

Then it sounds like your solution is to pull in the item quantity or set your discount as a percent value in the calculation.