In Order to create the access token, firstly You need to create a Private App from store backend and then, make your Products & Collections available on that Private app for which You want to provide access to your store.
While creating the Private App, You need to enable permissions that your private app will access. Once You click on the SAVE button, You will be ended up generating the API Credentials. And from there, You will get the Storefront access token that will be needed to access your storefront data.
How to Create Private App?
To create a Private App, firstly you need to Visit the “Apps” section of your Shopify Store. Scrolling down to the bottom, You will get the “Manage Private Apps” option. Click on it to create a new Private app.
Create Private App
Now, Click on the “Create a new private app” button to create app, assign permissions and generate API credentials on saving the details.
Here, You need to mention the Name of your private app, an Email ID used to contact the developer regarding the app in the App Details section.
Now, Prior to the generation of the API Credentials, You need to add certain permissions for the data that your private app will access. Go to the Admin API section and enable those actions which are necessary to work for your private app.
After that, don’t forget to enable the checkbox to allow access for your private app from the “Storefront API” section.
Important Note:- Product, Variants, Collections, Orders, Inventory, Shipping, etc are some of the essential entities listed in the Admin API section and thus, it is mandatory to access permission to these entities to make them work for the app.
Please make sure that You have enabled the API permission for visitors to access product tags, customer tags, checkouts, articles, blogs and comments as shown in below screenshot:
Once done, click on the save button and further proceed to create the app.
In this way, You can create a new private app and the same will be listed as shown in the below screenshot:
Once You will click on the app, you will be reaching to the Admin API section and there you will get the storefront access token that you need to access store’s data.
In this way, You will get the required access token.
Make Your Products Available on Your Created Private App
As soon as You create a Private app and get the API credentials to access the store’s data, now, you need to make all your Shopify Store’s Products available on that private app.
To get this working out the same, visit the Products section of your Shopify Store. There, You need to select all the products and make them available on the app.
This is the complete process to generate an access token. You can now access all of your store’s data using the required token.
Still, you need any kind of support, simply raise a ticket at https://webkul.uvdesk.com/en/. You can also contact firstname.lastname@example.org to get proper assistance.
Thanks for Reading!