Manage the Headless channel
You can manage the Headless channel by creating new storefronts, rotating your private access tokens, editing store names, managing storefront permissions, order attribution, and more. The Headless channel gives you all of Shopify's channel features, such as product publishing, scheduled product publishing, analytics, and reporting sales by channel.
The following instructions assume that you've pinned the Headless channel in your Shopify admin. If you haven't, then you can access the channel using the Search field.
Anchor to What you'll learnWhat you'll learn
You'll learn how to do the following tasks:
-
Add a custom storefront using the Headless channel
-
View a list of your custom storefronts
-
Edit storefront names
-
Rotate private access tokens
-
Edit storefront permissions
-
Order attribution
-
Delete storefronts
Anchor to RequirementsRequirements
- You've completed the Getting started with the Storefront API guide.
Anchor to Add storefrontsAdd storefronts
You can have a maximum of 100 active storefronts and access tokens per shop.
-
From your Shopify admin, under Sales channels, click Headless.
-
On the Storefronts page, click Add storefront.
Anchor to View custom storefrontsView custom storefronts
-
From your Shopify admin, under Sales channels, click Headless.
-
On the Storefronts page, optionally select a storefront to view it.
Anchor to Edit storefront namesEdit storefront names
-
From your Shopify admin, under Sales channels, click Headless.
-
On the Storefronts page, select the storefront to rename.
-
Beside Storefront name, click Edit.
-
Type the new name for the storefront.
-
Click Save.
Anchor to Rotate private access tokensRotate private access tokens
After you delete your old private access token, you need to update any applications or scripts to use the new token, or else you won't be able to access the Storefront API. Deleting a private access token can't be undone.
-
From your Shopify admin, under Sales channels, click Headless.
-
On the Storefronts page, select the storefront to rotate the access tokens for.
-
In the Storefront API tokens card, under Rotate private access token, click Generate new token.
-
Update any applications or scripts to use the new token. The old token remains valid until you delete it.
-
Beside the old private access token, click Delete.
-
When prompted, click Delete token.
Anchor to Request storefront permissionsRequest storefront permissions
Permissions control what Storefront API data custom storefronts can display in your Shopify store. When you install the channel, a default set of permissions is created for you. You can edit these.
Both Storefront and Admin API permissions are shared across all storefronts.
-
From your Shopify admin, under Sales channels, click Headless.
-
On the Storefronts page, select a storefront to edit permissions for.
-
In the Storefront API permissions card, click Edit.
-
Select or deselect permissions for the store.
-
Click Save.
Anchor to Order attributionOrder attribution
Order attribution is at the channel level, and a Headless storefront is treated as a channel.
-
From your Shopify admin, click Orders.
-
In the Channel column, sales attributed to the Headless channel are displayed as the name of the Storefront through which the sale was made.
Anchor to Delete storefrontsDelete storefronts
Deleting a storefront invalidates its Storefront API tokens. This action can't be undone.
-
From your Shopify admin, under Sales channels, click Headless.
-
On the Storefronts page, select a storefront to edit permissions for.
-
In the Delete storefront card, click Delete storefront.
-
Click Delete storefront
Anchor to Next stepsNext steps
- Learn more about Storefront API authorization and rate limiting.
- Learn more about Storefront API access tokens.
- Learn how to publish products and schedule product publishing with the Headless channel.
- Learn how to view analytics and reporting sales by channel with the Headless channel.