Tax_Line array in the orders API does not show tax types in the same position of the arrar

Neil_Bragg
Shopify Partner
5 0 1

In Canada we have 2 types of tax

1. GST (Goods and Services tax) and sometimes
2. Provincial Sales Tax eg. in Quebec it is the QST

Please see attached screenshots for the order api data retrieved for two different orders

You will notice that the GST does not occupy the same position in the array (??) ie in one order the GST is in position 0 and in the other position 1

 

and then obviously the QST is switched too.

 

Surely this is ridiculous. ie I have written code (as any programmer would) believing the GST would occupy always position zero, say.

 

Reply 1 (1)

Neil_Bragg
Shopify Partner
5 0 1

This bug started happening 3rd April 2021.

 

This is issue is resulting in wrong totals for taxes. That since April 21 anyone using this data is submitting incorrect taxes ... a critical bug.