Checkout UI Extension Accessing Additional Order Data on Order Status

I’m coming to the experts because I have exhausted my search of the docs and feel I’m just missing something very simple. We’re developing a UI Extension intended to be a private extension. It targets the Order Status page.

The only thing this UI Extension is going to do is look at a custom order metafield (custom.estimated_ship_date) Estimated Ship Date, which is a Date field that stores the estimated date an order will ship.

I had assumed that having access to useOrder(); would give me all the order data I need. But it only gives the extension a few pieces. So I decided to see what data I might get using graphQL and so I used the graphiQL and a simple query like this just to confirm access:

query {
  order1: order(id: "gid://shopify/Order/5800727380057") {
    name
  }
}

Results in an error: “message”: “Access denied for order field. Required access: read_orders access scope or read_marketplace_orders access scope.”

Is it possible to get access to additional Order Details like custom Metafields? I would think with access to GraphQL an extension would be able to show details, but maybe I am misunderstanding the access.

Thank you for any assistance!

K-C

Quick follow-up. What I am looking for is simply a way to access a metafield. In my case its order.custom.estimated_ship_date and this is created for every order via Shopify Flow. This can be queried via GraphQL. However, the documentation seems to indicate that we cannot query the GraphQL directly from Extensions, but on this page I also found this “Once the order is created, you can query these metafields using the GraphQL Admin API” which seems to indicate that we can.

I’ve yet to get it to work so any thoughts would be awesome. Thanks again,

Kane