Have your say in Community Polls: What was/is your greatest motivation to start your own business?
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.

Why is order_number field not available for orders when using GraphQL?

Why is order_number field not available for orders when using GraphQL?

PurpleMamba
Shopify Partner
126 1 18

Can anyone actually provide an answer as to why the order_number field is not available when using GraphQL?

I know I can get the name field, but that is not the same thing at all as the name field can have prefixes.

So, why isn't this rather important field available in the GraphQL API?

Replies 5 (5)

csam
Shopify Staff (Retired)
267 40 51

Hi @PurpleMamba 

 

 

 

To learn more visit the Shopify Help Center or the Community Blog.

PurpleMamba
Shopify Partner
126 1 18

Hi @csam thanks for responding.

There is no number field for Orders.

{
  "errors": [
    {
      "message": "Field 'number' doesn't exist on type 'Order'",
      "locations": [
        {
          "line": 6,
          "column": 9
        }
      ],
      "path": [
        "query",
        "orders",
        "edges",
        "node",
        "number"
      ],
      "extensions": {
        "code": "undefinedField",
        "typeName": "Order",
        "fieldName": "number"
      }
    }
  ]
}

 

csam
Shopify Staff (Retired)
267 40 51

I will continue to look into this

To learn more visit the Shopify Help Center or the Community Blog.

PurpleMamba
Shopify Partner
126 1 18

@csam Thanks!

JoshHighland
Shopify Partner
213 12 77

I came here for the same reason. Any feedback would be appreciated.

 

SEO Manager - The all-in-One SEO solution for Shopify
A powerful suite of SEO tools that gets you found in Google results

- Install SEO Manager -