Hi everyone,
I’m developing a Shopify custom app installed on a few merchants, with all necessary access scopes, using GraphQL Admin API to fetch order data.
Here’s a simplified example of my query:
query {
order(id: "gid://shopify/Order/123456789") {
id
shippingLine {
originalPriceSet {
presentmentMoney {
amount
}
}
taxLines {
priceSet {
presentmentMoney {
amount
}
}
rate
}
discountAllocations {
allocatedAmountSet {
presentmentMoney {
amount
}
}
}
title
}
shippingLines(first: 10) {
edges {
node {
originalPriceSet {
presentmentMoney {
amount
}
}
taxLines {
priceSet {
presentmentMoney {
amount
}
}
rate
}
discountAllocations {
allocatedAmountSet {
presentmentMoney {
amount
}
}
}
title
}
}
}
}
}
The issue:
- For some orders:
- shippingLine.taxLines is empty
- shippingLines.taxLines contains some tax lines, but not all
- In the Shopify Admin Panel (Order JSON - REST debug view), I see the complete and correct set of shipping_lines and their tax lines.
In another case:
- For a different merchant (same app, same access scopes, same query structure), both shippingLine and shippingLines are completely empty, even though the order JSON in the admin panel shows valid shipping_lines data.
My questions:
- Is this a known issue or inconsistency in the GraphQL Admin API?
- Are there any specific conditions under which shippingLine / shippingLines or their nested fields like taxLines might not be returned?
- Can someone from Shopify confirm if this is expected or a potential GraphQL bug?
Note: I can’t use REST API for this as it’s deprecated and we want to stick with GraphQL only.
Would appreciate any insight or confirmation on this! Thanks!