What's your biggest current challenge? Have your say in Community Polls along the right column.
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.

Re: Why are there multiple tax lines for an item in an order

Why are there multiple tax lines for an item in an order

csilk
Shopify Partner
7 0 0

Does anyone know why there are multiple per order? I would have thought there would only be one e.g.

 

"tax_lines": [
{
"price": "0.58",
"price_set": {
"shop_money": {
"amount": "0.58",
"currency_code": "NZD"
},
"presentment_money": {
"amount": "0.58",
"currency_code": "NZD"
}
},
"rate": 0.15,
"title": "GST"
},
{
"price": "0.76",
"price_set": {
"shop_money": {
"amount": "0.76",
"currency_code": "NZD"
},
"presentment_money": {
"amount": "0.76",
"currency_code": "NZD"
}
},
"rate": 0.15,
"title": "GST"
},
{
"price": "0.59",
"price_set": {
"shop_money": {
"amount": "0.59",
"currency_code": "NZD"
},
"presentment_money": {
"amount": "0.59",
"currency_code": "NZD"
}
},
"rate": 0.15,
"title": "GST"
},
{
"price": "0.40",
"price_set": {
"shop_money": {
"amount": "0.40",
"currency_code": "NZD"
},
"presentment_money": {
"amount": "0.40",
"currency_code": "NZD"
}
},
"rate": 0.15,
"title": "GST"
},
{
"price": "0.51",
"price_set": {
"shop_money": {
"amount": "0.51",
"currency_code": "NZD"
},
"presentment_money": {
"amount": "0.51",
"currency_code": "NZD"
}
},
"rate": 0.15,
"title": "GST"
}
],

Replies 5 (5)

bundleup
Shopify Partner
13 2 4

Hi

From docs:

An array of tax line objects, each of which details a tax applicable to the order. Each object has the following properties:

  • price: The amount of tax to be charged in the shop currency.
  • rate: The rate of tax to be applied.
  • title: The name of the tax.
  • channel_liable: Whether the channel that submitted the tax line is liable for remitting. A value of null indicates unknown liability for the tax line.

When creating an order through the API, tax lines can be specified on the order or the line items but not both. Tax lines specified on the order are split across the taxable line items in the created order.

From the example looks like each order line has had the tax calculated separately so hence multiple lines.

Sam

Bundleup - bundle your products and unbundle your orders.
Channelup is a product data management solution helping Shopify stores automate their processes.
If you require custom development or would like to test out our features contact me at support@channelup.io
csilk
Shopify Partner
7 0 0

The JSON I posted was from one line item. Each like item was broken down like this with the SUM being the correct amount for each item.

Wouldn’t we expect to see this only once per item?

simonbarnes
Shopify Partner
2 0 0

We're currently experiencing this with a client. I haven't fully been able to narrow it all down. So far we've identified it's only orders on a different channel (in our case subscription orders). But that's it so far - will update here if we find a solution!

 

 

csilk
Shopify Partner
7 0 0

I think the plugin / app has a defect.

 

syslin
Shopify Partner
16 0 3

Any more information on this one?