question

kmm avatar image
kmm asked

Taxes in the order and the payment are different

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
      }
    ]
  }
}
Taxes
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community