This order has only 1 line item with quantity 35 and the applied discount.
After some investigation we found that this happens when because of the discount: 2022-02-03_18-29
A dump of the result of the method getItemListForOrder contains this: 2022-02-03_18-33
As you can see, the discount was added as a separate line item, because it's an order adjuster.
Afterwards we tried to disable the discount: 2022-02-03_18-32 and error from Mollie wasn't triggered anymore.
Also there are no extra items in the result of the method getItemListForOrder when discount is disabled 2022-02-03_18-29_1
It makes me think that in case the discount is applied the vatAmout is calculated by the wrong formula, But I didn't find yet the exact reason.
Also there are some suggestions regarding discounts:
Can we avoid discounts to be added as separate line items for the order in Mollie? Probably it's better to use discountAmount property on the lines array?
Or if we still need a separate order line, maybe we should split up lines with a parameter "type": "physical" and "type": "discount", like in the example in docs
We have the situation when order cannot be paid because of this error:
Here is the full response from Mollie 2022-02-03_18-41
This order has only 1 line item with quantity 35 and the applied discount.
After some investigation we found that this happens when because of the
discount
: 2022-02-03_18-29A dump of the result of the method
getItemListForOrder
contains this: 2022-02-03_18-33As you can see, the discount was added as a separate line item, because it's an
order adjuster
.Afterwards we tried to disable the discount: 2022-02-03_18-32 and error from Mollie wasn't triggered anymore.
Also there are no extra items in the result of the method
getItemListForOrder
when discount is disabled 2022-02-03_18-29_1It makes me think that in case the discount is applied the
vatAmout
is calculated by the wrong formula, But I didn't find yet the exact reason.Also there are some suggestions regarding discounts:
discountAmount
property on thelines
array?"type": "physical"
and"type": "discount"
, like in the example in docs