Taxes in the order and the payment are different
Could you describe which one is correct(we do bookkeeping and it's important)?
We get this jsons via rest api:
Payment:
{ "order": { "currency": "USD", "total": 9728, "payType": "FULL" }, "amount": 9728, "taxAmount": 822, "cashbackAmount": 0, "result": "SUCCESS" }
Order:
{ "currency": "USD", "total": 9728, "paymentState": "OPEN", "payType": "FULL", "discounts": { "elements": [ { "name": "Military", "percentage": 5 } ] }, "lineItems": { "elements": [ { "price": 9375, "taxRates": { "elements": [ { "name": "Missouri", "rate": 922500, "isDefault": true } ] } } ] }, "taxRates": { "elements": [ { "name": "Missouri", "amount": 821 } ] } }