Discussing APIs and development related to customers, discounts, and order management.
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"
}
],
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:
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
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?
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!
I think the plugin / app has a defect.
Any more information on this one?