Customer Accounts API not allowing me to get orders past 60 days

Hi,

I posted in another forum, but I think this is the better place for it:

I’m using Shopify Hydrogen/Customer Account API to fetch orders for a logged in customer to show an order history. I’m using a very generic graphql call to get orders, but I seem to only get orders within the last 60 days.

As per this document, it doesn’t seem that the Customer Accounts API has any restrictions on fetching orders beyond a certain time – that seems to only apply authenticated access scopes in app development.

Reposting from my other post:

Using a fairly barebones call to minimize any potential issues, and I’m testing via a 3rd party API tester with the access token I get from the getAccessToken function when logged in.

{
customer {
orders(first: 100) {
nodes {
id
}
}
}
}

You will need to request read_all_orders access.

Hi, this is what someone else suggested as well, but this is not applicable for me (unless you can show me where?) I am not developing an app, I am not using those access scopes, I’m using Customer Accounts API on my hydrogen storefront. I don’t have an app in my partners dashboard on this, it’s entirely in my Shopify store.

Where can I change this?

For reference, this is the only place I see to configure permissions for Customer Accounts API:

Hi Allen,

Could you let me know your shop id or store domain. DM it if necessary.

Thank you!

Hi Allen, could you try again?

Yep! Works now, thank you!

Allen

1 Like