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