Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Authenticated request to Admin API returns authorize URL

Solved

Authenticated request to Admin API returns authorize URL

gusterdev
Visitor
3 0 0

I have installed a new app onto the shopify admin store. (I believe this app is considered private/custom)
My goal is to have the app set up to listen via webhooks for orders that are created in the store.

In order to test this app, I just made a simple authenticated request, but the response I'm getting is a oauthorize url. What am I doing wrong here?
```GET https://<SHOP_NAME>.myshopify.com/admin/api/2023-10/orders.json```
with headers: X-Shopify-Access-Token: <ACCESSS_TOKEN>

returns html response: with redirect link
```https://accounts.shopify.com/oauth/authorize?>>>>>>>>``

Accepted Solution (1)

lizk
Shopify Staff
246 58 79

This is an accepted solution.

Hi there 👋

To help with this sort of troubleshooting it is helpful to share the exact details about your request, because the problem could be very small. Sharing the exact code you are using, or if you are using an API client like Postman or Insomnia. 

When you created your app, and generated your access token this was done through the Shopify Admin or the Partner Dashboard

When you created your app you selected the read_orders scope?

To learn more visit the Shopify Help Center or the Community Blog.

View solution in original post

Replies 2 (2)

lizk
Shopify Staff
246 58 79

This is an accepted solution.

Hi there 👋

To help with this sort of troubleshooting it is helpful to share the exact details about your request, because the problem could be very small. Sharing the exact code you are using, or if you are using an API client like Postman or Insomnia. 

When you created your app, and generated your access token this was done through the Shopify Admin or the Partner Dashboard

When you created your app you selected the read_orders scope?

To learn more visit the Shopify Help Center or the Community Blog.

gusterdev
Visitor
3 0 0

Thank you, I realized It was Postman creating incorrect requests.