Re: All api requests return 404 errors

Solved

All api requests return 404 errors

jeffpsherman
Shopify Partner
2 0 0

I think I have the same issue as this question, but the answer wasn't public:

https://community.shopify.com/c/products-variants-and/all-request-return-404-errors-not-found-for-cu...

 

All `get` requests come back with 404 errors. 

For example: myshopify.com/admin/api/2023-07/products.json

Returns: 

{"errors":"Not Found"}

I've tried with and without the `X-Shopify-Access-Token`, using `curl`, `postman`, and a browser.

I've also tried on various API versions.

 

Thank you for your help

Accepted Solution (1)

romartiny
Shopify Partner
34 8 8

This is an accepted solution.

I can help you. Open your store and go to Settings. Then go to Apps and sales channels. Click Develop apps and create a test app with any name. Go to Admin API integration and select all the scopes you need (for your products). Then save and go to API credentials. Click on Install app and save this token.
Open postman and paste your store link from admin api into the url (https://"store_url"/admin/api/2023-07/products.json).
Go to headers and paste it there:

 

 

key: X-Shopify-Access-Token
value: "your_token"

 

 

I checked and everything works fine. Enjoy.

Romartiny | Software Engineer
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution

View solution in original post

Replies 2 (2)

romartiny
Shopify Partner
34 8 8

This is an accepted solution.

I can help you. Open your store and go to Settings. Then go to Apps and sales channels. Click Develop apps and create a test app with any name. Go to Admin API integration and select all the scopes you need (for your products). Then save and go to API credentials. Click on Install app and save this token.
Open postman and paste your store link from admin api into the url (https://"store_url"/admin/api/2023-07/products.json).
Go to headers and paste it there:

 

 

key: X-Shopify-Access-Token
value: "your_token"

 

 

I checked and everything works fine. Enjoy.

Romartiny | Software Engineer
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution
jeffpsherman
Shopify Partner
2 0 0

Hi Romartiny, thank you for the help!

That didn't quite work but it got me most of the way.

https://"store_url"/admin/api/2023-07/products.json ended up doing a redirect to 

https://"key I've never seen before".myshopify.com/admin/api/...

 

Once I switched to that url everything worked.