Proble to make an access token request to Shopify , REST API

Solved
Highlighted
Tourist
8 0 1

I design a public app which use REST API to connect with Shopify. But I have a problem if I want to make an access token request to Shopify after if the app installed. There need to know the authorization code (code) to make an access token request but Shopify don't provide this parameter in the redirect if an app has been installed early, there are available only the followings: hmac, local, session, shop, timestamp.
Is there any ideas?

 

In installing: code, hmac, shop, state, timestamp

 
 

 

 

0 Likes
Highlighted

Success.

Shopify Staff
Shopify Staff
948 125 132

Hey @Vostario,

 

authorization_code is actually just code. So you can get the access token by taking the code from the query and sending it, along with the client_id and client_secret, to /admin/oauth/access_token

 

See step three: https://shopify.dev/tutorials/authenticate-with-oauth#step-3-confirm-installation

0 Likes
Highlighted
Tourist
8 0 1

You are right But everything is a bit more complicated. Thank you.

0 Likes