Solved

Authenticated request to Admin API returns authorize URL

gusterdev
Visitor
2 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 57 70

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 57 70

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
2 0 0

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