Getting graphql "bad request" with postman

I am trying to get a list of my shop locations using GraphQL.
This was very easy with REST, I just used cURL.

This is the request I have on postman

and it returns “bad request”

I can run the query on the GraphiQL App just fine:

I am not sure what is wrong here?
Can anybody help?


Agustin

Hi Agustin,

Does your app have the unauthenticated_read_product_pickup_locations access scope?

Hi Liam,

Thank you for your response.
I am not sure about that access scope, our current code is working with the REST API, and we are able to get the locations just fine.

How can I check if this access scope is active?


Agustin

Hi again,

There’s an availableAccessScopes field on the app object so you can query that to see what scopes your app has, eg:

query GetAppScopes {
  app {
    availableAccessScopes {
      handle
    }
  }
}

@Agustin_Boleda, the URL is wrong. You added double api in the route.

Current: https://yourstore.myshopify.com/admin/api/api/2025-01/graphql.json
Correct: https://yourstore.myshopify.com/admin/api/2025-01/graphql.json

1 Like

Hi Liam,

Thank you, I will check this out

Hi Remy727,

Thanks, but I think Liam is right and it is a scope problem.
I did remove the extra “api” from the URL and I still get the bad request response.

You should be able to request the scopes by following this process: Manage access scopes

And then try making the call in your app again