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.
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. Shopify creates the storefront and opens its page.
-
Under Manage API access, beside Storefront API, click Manage.
-
In the Credentials card, copy the token that your app needs. Use the public access token for client-side requests, and the private access token for server-side requests. To learn how to send the token with a request, refer to Storefront API authentication.
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.
-
Click Rename.
-
In the Storefront name field, enter 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.
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.
-
Under Manage API access, beside Storefront API, click Manage.
-
In the Credentials 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 Revoke. The Revoke button appears only while the storefront has two private access tokens.
-
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.
Storefront API and Customer Account API permissions are shared across all storefronts.
Storefront API and Customer Account 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.
-
Under Manage API access, beside Storefront API, click Manage.
-
In the Storefront API permissions card, click the edit icon.
-
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.
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 the storefront to delete.
-
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.