> For the complete documentation index, see [llms.txt](https://docs.goaffpro.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.goaffpro.com/program-settings/extra-settings/setup-affiliate-public-store/generate-storefront-access-token.md).

# Generate Storefront Access Token

#### Generate the storefront access token for setting up the affiliate public store:

To generate the storefront access token, install the [Headless channel](https://apps.shopify.com/headless) from the Shopify app store.&#x20;

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FHQPLSb0vDWk3TPuX6Pjt%2FScreenshot%202026-01-06%20151125.png?alt=media&amp;token=6309ed98-1af4-407e-b66b-7358bc5d0734" alt=""><figcaption><p>Install the Headless channel from the Shopify app store</p></figcaption></figure>

This will open up the Storefronts section.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FeFi3jRx9eh9NvMT9crZd%2Fimage.png?alt=media&amp;token=4de0a41f-b168-4136-8821-50dd6656f2bc" alt=""><figcaption><p>Storefronts</p></figcaption></figure>

Here, click on **Create storefront**.&#x20;

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FCMvQDEXQ9a3AsodFoeVP%2FScreenshot%202026-01-06%20151404.png?alt=media&amp;token=bb9418ce-85e8-4bb0-8d81-68e533b632af" alt=""><figcaption><p>Click on Create Storefront</p></figcaption></figure>

To access the Storefront API, click on **Manage**.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FeCjf98FDIq55PaknqQ5V%2FScreenshot%202026-01-06%20151420.png?alt=media&amp;token=91912ac5-1ede-4221-9d1c-6889a1f76404" alt=""><figcaption><p>Storefront API > Click on Manage</p></figcaption></figure>

This will open up the Storefront API section.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2F0qd8Kq9ExoAw4LCmbdcc%2Fimage.png?alt=media&amp;token=24b795e0-7e79-4f83-b907-9065a0626976" alt=""><figcaption><p>Storefront API</p></figcaption></figure>

Next, click on **Edit** to update the Storefront API permissions.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FwPOJfHFB1pJmd2d6pY44%2FScreenshot%202026-01-06%20151449.png?alt=media&amp;token=3069dd8d-9b39-4a69-b693-27d8c2fecc48" alt=""><figcaption><p>Storefront API permissions > Click on Edit</p></figcaption></figure>

After this, enable the "unauthenticated\_read\_product\_inventory" permission.&#x20;

{% hint style="info" %}
The following Storefront API permissions need to be enabled:&#x20;

* unauthenticated\_read\_product\_listings
* unauthenticated\_read\_product\_inventory
* unauthenticated\_read\_product\_tags
* unauthenticated\_read\_customers
* unauthenticated\_write\_customers
* unauthenticated\_read\_content
* unauthenticated\_read\_checkouts
* unauthenticated\_write\_checkouts

Please note that most of these permissions are enabled by default.
{% endhint %}

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FLiZZe9ZdMWV40RuNfBDs%2FScreenshot%202026-01-06%20151504.png?alt=media&amp;token=8646fe0c-ca5a-4487-ab3c-eda9d4bfde23" alt=""><figcaption><p>Enable the "unauthenticated_read_product_inventory" permission</p></figcaption></figure>

Finally, click on **Save**.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2Fbi7MdquO2zrXll47GSPY%2FScreenshot%202026-01-06%20151516.png?alt=media&amp;token=c53ece37-b9f3-45a6-8709-3522c6763435" alt=""><figcaption><p>Click on Save</p></figcaption></figure>

You can copy the generated storefront API access token and use it to set up the affiliate public store.&#x20;

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2Flq6N2cyX271CWkJU6qNM%2FScreenshot%202026-01-06%2015152942.png?alt=media&amp;token=27af0a62-d8f7-4c50-9c7e-9067de168b19" alt=""><figcaption></figcaption></figure>

{% embed url="<https://youtu.be/7vOPVxdIjd0>" %}
Generate Storefront Access Token
{% endembed %}
