Can I access customer orders in a Shopify Customer Account Extension without a backend?

Hi everyone,

I’m building a Shopify Customer Account Extension using @shopify/ui-extensions-react/customer-account. I would like to access a customer’s past orders (e.g., customer.orders) directly within the extension to show them some basic information.

However, I’m getting the error:
“Access denied for orders field.”

My question is:
Is it possible to access customer orders in a Customer Account Extension without building my own backend?

If not, what’s the recommended way to securely access customer order history in this context?

Thanks in advance!

Hey Kostya

Can you share how you are trying to access customer.orders where you get the access denied?

Maybe a code snippet if you don’t mind