This is my query
query {
orders(first:1){
edges {
node {
id
totalRefunded
returnStatus
totalDiscountsSet {shopMoney {amount }}
totalPriceSet{shopMoney{amount}}
totalShippingPriceSet{shopMoney{amount}}
totalTaxSet{shopMoney {amount}}
lineItems(first: 10) {
edges {
node {
quantity
discountedTotal
originalTotal
originalTotalSet{shopMoney{amount}}
originalUnitPriceSet {shopMoney{amount}}
discountAllocations{allocatedAmountSet{shopMoney {amount}}}
taxLines {title
priceSet {shopMoney {amount}}}
}
}
}
}
}
}
}
and i got this results
{
"data": {
"orders": {
"edges": [
{
"node": {
"id": "gid://shopify/Order/223322323442",
"totalRefunded": "0.00",
"returnStatus": "NO_RETURN",
"totalDiscountsSet": {
"shopMoney": {
"amount": "0.0"
}
},
"totalPriceSet": {
"shopMoney": {
"amount": "616.82"
}
},
"totalShippingPriceSet": {
"shopMoney": {
"amount": "0.0"
}
},
"totalTaxSet": {
"shopMoney": {
"amount": "70.97"
}
},
"lineItems": {
"edges": [
{
"node": {
"quantity": 1,
"discountedTotal": "60.00",
"originalTotal": "60.00",
"originalTotalSet": {
"shopMoney": {
"amount": "60.0"
}
},
"originalUnitPriceSet": {
"shopMoney": {
"amount": "60.0"
}
},
"discountAllocations": [],
"taxLines": [
{
"title": "TAX",
"priceSet": {
"shopMoney": {
"amount": "7.8"
}
}
}
]
}
},
{
"node": {
"quantity": 1,
"discountedTotal": "110.00",
"originalTotal": "110.00",
"originalTotalSet": {
"shopMoney": {
"amount": "110.0"
}
},
"originalUnitPriceSet": {
"shopMoney": {
"amount": "110.0"
}
},
"discountAllocations": [],
"taxLines": [
{
"title": "TAX",
"priceSet": {
"shopMoney": {
"amount": "14.3"
}
}
}
]
}
},
{
"node": {
"quantity": 1,
"discountedTotal": "60.00",
"originalTotal": "60.00",
"originalTotalSet": {
"shopMoney": {
"amount": "60.0"
}
},
"originalUnitPriceSet": {
"shopMoney": {
"amount": "60.0"
}
},
"discountAllocations": [],
"taxLines": [
{
"title": "TAX",
"priceSet": {
"shopMoney": {
"amount": "7.8"
}
}
}
]
}
},
{
"node": {
"quantity": 1,
"discountedTotal": "250.00",
"originalTotal": "250.00",
"originalTotalSet": {
"shopMoney": {
"amount": "250.0"
}
},
"originalUnitPriceSet": {
"shopMoney": {
"amount": "250.0"
}
},
"discountAllocations": [],
"taxLines": [
{
"title": "TAX",
"priceSet": {
"shopMoney": {
"amount": "32.5"
}
}
}
]
}
}
]
}
}
}
]
}
},
"extensions": {
"cost": {
"requestedQueryCost": 79,
"actualQueryCost": 33,
"throttleStatus": {
"maximumAvailable": 10000.0,
"currentlyAvailable": 9967,
"restoreRate": 500.0
}
}
}
}
Now if I sum up the orders in line items I reach 480
60+110+60+250=480
and in order i got
616.82-70.97=545.85
How could it be? Is there something I haven’t taken into account that could have an effect