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 on your store.
While creating the Private App, You need to enable permissions that your private app will access. Once You click on 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 Private App, firstly you need to Visit the “Apps” section of your Shopify Store. Scrolling down to bottom, You will get the “Manage Private Apps” option. Click on it to create a new 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 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 “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 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 access token. You can now access all your store’s data using 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!