How to get a Shopify Storefront access token for a Framer site
By Jake Marsh · Updated
To get a Shopify Storefront access token for a Framer site, install the free Headless sales channel in your Shopify admin, click Create storefront, and copy the public access token it shows: 32 letters and digits. Then publish your products to the Headless channel so the token can see them. In Framer, open Shelfferry, paste your store address and the token on the Store tab and click Connect. Never use an Admin API token, which starts with shpat_.
Which token you want
Shopify makes several kinds of keys, and only one belongs in a website.
| Token | Looks like | Use it on a Framer site? |
|---|---|---|
| Storefront API public access token | 32 letters and digits (0-9, a-f) | Yes. It reads what your online store shows and creates carts |
| Storefront API private token | Starts with shpss_ or shpsk_ | No. It's meant for servers |
| Admin API access token | Starts with shpat_ | No. It can change your store |
Shelfferry checks the token you paste and refuses the private and Admin kinds, with a message saying which one it is.
Steps: the Headless channel
- In Shopify admin, add the Headless channel from the Shopify App Store. It's free.
- Click Create storefront. Shopify makes the storefront and its tokens.
- Copy the public access token.
- Publish your products to Headless. In Products, select the products (or all of them) and use Include in sales channels to add Headless. A product that isn't on the channel won't come through.
- In Framer, open Shelfferry and go to the Store tab.
- Paste the store address (
your-store.myshopify.com, or the address of your Shopify admin) and the token, and click Connect. - Read the summary. Shelfferry shows the store name, its currency, how many countries are in its markets, and either "The token can read stock quantities" or "The token can't read stock quantities".
Already have a custom app?
A custom app your store made before can also have a Storefront API access token, and Shelfferry takes it the same way. For stock counts, the app needs the product inventory permission as well as product listings and checkouts. For a new setup, the Headless channel is the shorter route.
Where the token is kept
The token stays in your own browser, not in the Framer project's shared data, so it doesn't travel with the project. A teammate who wants to run the plugin pastes it once in theirs. Pressing Sync on the collection in the CMS works for anyone on the project after the first sync.
The store components that go on your site use the same public token to show live prices and make carts, which is what Shopify designed it for.
What it costs
Connecting a store and the dry run are free. The trial covers 5 syncs of up to 25 products over 7 days, with no card. After that Shelfferry is $59 a month, $499 a year or $699 once per seat. Plans and the install link are on the Shelfferry page.
Shelfferry
Sync a Shopify store's products, variants, collections, metafields and market prices into Framer CMS, and sell with buy buttons, a cart and Shopify checkout that keep working without a subscription $59 a month or $499 a year per seat, or $699 once.
Questions
Why does Shelfferry say my token can't read stock quantities?
The token's app or channel doesn't have the inventory permission. On the Headless channel, check the storefront's Storefront API permissions in Shopify. In stock yes or no still works without it.
Why do some products not show up?
They aren't published to the sales channel the token belongs to. Add them to Headless (or your custom app's channel) in Shopify and run the dry run again.
Is it safe that the token is visible in my site's code?
Yes. The public Storefront token is built to be used in browsers. It can read what your online store already shows and create carts, and can't change products, orders or settings.
Can I use the same token on two Framer sites?
Yes. The token belongs to the Shopify storefront, not to a Framer project.