Shopify
The following steps outline how to get the API credentials needed to integrate Content Studio with Shopify to be able to browse and select products.
What you'll needLink copied!
The following details are required:
- Shopify Site ID
- Shopify access token
- Shopify API version
The setup information on this page assumes that you already have a Shopify store set up.
Finding the site IDLink copied!
You can find the site ID in two ways:
The URL when logged into Shopify. In the example used on this page it's
amp-content-studio-01
and the login URL ishttps://admin.shopify.com/store/amp-content-studio-01
From the "Stores" section of your account, as shown below
Getting an API access tokenLink copied!
Log in to your store and select "Apps and Sales channels" from the menu on the left.
- Click the "Develop apps" button.
- Click the "Allow custom app development" button and accept the notification.
- Click on "Create an app"
- Give the app a name, assign an app developer and create the app
- The configuration screen will be displayed
The Content Studio integration uses the Storefront API and requires the following access: unauthenticated_read_product_listings
.
- Choose Configuration -> Storefront API integration. Enable the required setting and click "Save".
To get the access token you need to install the app.
- Click "Install app" and then click the "Install" button on the confirmation dialog.
You now have access to a storefront API Access token with the correct scope.
Getting the Shopify Storefront API versionLink copied!
We recommend using the latest version as specified in the Shopify documentation. This is currently 2024-07
.
Should there be any issues with an updated API version, then use a previous version.
Setting up the integration in Content StudioLink copied!
In Content Studio choose the Commerce Repositories icon and click "Add Commerce Repository".
Choose "Shopify" from the dialog and add the integration.
Give the integration a label and description and fill in the Site ID, access token and API version from your Shopify account.
You can verify that the integration can retrieve product information from the next screen.
Product information can now be retrieved in templates such as Rewrite product description.