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

PurpleMamba
Shopify Partner
114 2 16

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)
Shopify Staff (Retired)
267 40 47

Hi @PurpleMamba 

 

 

 

CS | API Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

PurpleMamba
Shopify Partner
114 2 16

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)
Shopify Staff (Retired)
267 40 47

I will continue to look into this

CS | API Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

PurpleMamba
Shopify Partner
114 2 16

@csam Thanks!

JoshHighland
Shopify Expert
92 2 50

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