One of my clients has an issue where orders are unable to import into Unleashed inventory management system. We evened down the issue to only Recharge subscription orders.
Unleashed states the issue is with the tax data in the API. On the orders in question, Shopify outputs the tax_lines object multiple times, once for each line item. If an order has 3 line items of subscription products, the tax_lines object outputs 3 times.
Recharge states that these tax_lines are created solely in Shopify, not by their interaction with the orders.
Consider this:
Non-subscription order with 3 line items. Produces a single tax line object (as it should):
"tax_lines": [{
"price": "3.04",
"price_set": {
"shop_money": {
"amount": "3.04",
"currency_code": "GBP"
},
"presentment_money": {
"amount": "3.04",
"currency_code": "GBP"
}
},
"rate": 0.23,
"title": "IE VAT"
}
],
Subscription order with 2 subscription line items. Produces 2 tax line objects (should only produce 1).
"tax_lines": [{
"price": "1.37",
"price_set": {
"shop_money": {
"amount": "1.37",
"currency_code": "GBP"
},
"presentment_money": {
"amount": "1.37",
"currency_code": "GBP"
}
},
"rate": 0.23,
"title": "IE VAT"
}, {
"price": "1.37",
"price_set": {
"shop_money": {
"amount": "1.37",
"currency_code": "GBP"
},
"presentment_money": {
"amount": "1.37",
"currency_code": "GBP"
}
},
"rate": 0.23,
"title": "IE VAT"
}
],
The Unleashed software will attempt to import each tax_line object as valid, doubling, tripling, etc, the taxes for the order as a result.
What can we do to make sure these orders do not have superfluous tax lines in the data?
Thanks!