Missing shippingLine.taxLines in GraphQL Order (but visible in Admin Json order)

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
        }
      }
    }
  }
}

:puzzle_piece: 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.

:red_question_mark:My questions:

  1. Is this a known issue or inconsistency in the GraphQL Admin API?
  2. Are there any specific conditions under which shippingLine / shippingLines or their nested fields like taxLines might not be returned?
  3. Can someone from Shopify confirm if this is expected or a potential GraphQL bug?

:memo: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!

Hi @olek_y

For the orders where shippingLine.taxLines is empty, are there any commonalities, eg: same payment gateway, specific fulfillment settings?

Nope, different payments, addresses, etc.

Are you still seeing this @olek_y - and is this only happening on one store or multiple?