1. Storefront API Access Token Issuance
To use the Shopify Storefront API, you must first obtain a Storefront Access Token for your store. This is a public token designed to be safely used in client-side browser environments.
1.1. Creating a Custom App
Enable a custom app in your Shopify Admin dashboard to utilize the API.
1. Log in to Shopify Admin -> Go to Settings -> Apps and sales channels.
2. Click the \'Develop apps\' button.
3. Click \'Create an app\', enter your app name, and create it.
1.2. Configuring Storefront API Scopes & Copying the Token
Configure the required API scopes for your app and obtain the access token.
1. Select \'Configure Storefront API scopes\'.
2. Check the required scopes for checkoutUrl generation, such as \'unauthenticated_write_checkouts\' and \'unauthenticated_read_product_listings\', then click Save.
3. Navigate to the \'API credentials\' tab and click \'Install app\'.
4. Once installed, copy the \'Storefront access token\' displayed on the screen and save it securely.