Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Wrong tax rates in orders when order contains products with varying tax rates

Wrong tax rates in orders when order contains products with varying tax rates

Frieg
Shopify Partner
2 0 1

I have created an order in my test account with two products, one using a reduced tax rate of 7% and one using the german default of 19%. The products cost 107 and 119€ respectively, so both are 100€ before tax. Order id is 5225546678507.

 

There are multiple things wrong with the tax rates in my opinion.

 

1. The tax_lines on the order head shows only one element with a tax rate of 7% and the sum of both taxes rates as the amount.

 

"tax_lines": [{
        "price": "26.00",
        "rate": 0.07,
        "title": "DE MwSt",
        "price_set": {
            "shop_money": {
                "amount": "26.00",
                "currency_code": "EUR"
            },
            "presentment_money": {
                "amount": "26.00",
                "currency_code": "EUR"
            }
        },
        "channel_liable": false
    }
]

I'd have expected two elements which give a breakdown of the total tax amount by tax rate / type.

 

 

2.The tax rate on the line_item does not match the actual rate being applied.

"tax_lines": [{
        "channel_liable": false,
        "price": "19.00",
        "price_set": {
            "shop_money": {
                "amount": "19.00",
                "currency_code": "EUR"
            },
            "presentment_money": {
                "amount": "19.00",
                "currency_code": "EUR"
            }
        },
        "rate": 0.07,
        "title": "DE MwSt"
    }
]

 

Is there something wrong here or am i just completely mistaken about how taxes are displayed in the API?

 

Reply 1 (1)

Frieg
Shopify Partner
2 0 1

I did some additional testing. This behaviour is dependent on what product comes first in the order.

 

The snippets above comes from an order that was created with the product with reduced taxes first. If i create an identical order with the product with normal taxes first, all the rate-fields show "0.19" instead. This can't be the expected behaviour, can it?