Shopify setup
This guide will walk you through everything you need to set up Shopify for a headless integration.
Signup as Shopify partner
Start by signing up as a Shopify Partner. This gives you access to create and manage development stores without needing a paid plan. Once your store is ready, you can easily transition it to a live environment.
Create a development store
- Go to Stores
- Click Add store > Create developemnt store
- Select Create a store for a client and fill in the rest of the information
- Click Create development store
Now your development store is ready to use.
Get storefront API keys
Get the storefron API keys to access all the data from the NextJS frontent.
-
Go to your Shopify admin panel
-
Navigate to Settings > Apps and sales channels
-
Click Create an app
-
Name your app (e.g., “Headless”)
-
Click Configure Storefront API scopes
-
Enable necessary permissions:
unauthenticated_read_product_listings
unauthenticated_read_product_inventory
unauthenticated_read_customer_tags
unauthenticated_read_content
-
Save and install the app.
-
Under API Credentials, copy the Storefront API Access Token (this will be used in your Next.js app).
-
Copy the API Access Token and paste it to the
.env.local
forSHOPIFY_STOREFRONT_CLIENT_ACCESS_TOKEN
Your store is now connected, if correctly setup you should be able to see your products in the frontend.