Error: (401) Unauthorized

New Member
9 0 0

Hi,

I want to access order details from API. And when i use API URL in browser then data is show but i used same API 

URL in my code then give authentication error as

"The remote server returned an error: (401) Unauthorized."

0 Likes
Shopify Partner
719 63 95

Most probably it works because you are already logged in and have a session token. To access API outside of the browser or live session you have to create a private app token or a public app token with the access scopes you need, more information here -https://help.shopify.com/en/api/getting-started/authentication/private-authentication and https://help.shopify.com/en/api/getting-started/authentication/public-authentication

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
0 Likes
New Member
9 0 0

I already follow this link -https://help.shopify.com/en/api/getting-started/authentication/private-authentication But don't get proper solution.

0 Likes
Highlighted
Shopify Expert
9928 77 1442

If you're looking for help here you're going to need to be able to share more information to save everyone from guessing as to what your problem might be. Consider giving some details on how you are making the call (eg, from what stack), what info you are sending, etc.

★ Winning Partner of the Build a Business competition. ★ http://freakdesign.com.au
0 Likes