Skip to main content

Shopify

The following steps outline how to get the API credentials needed to integrate Workforce with Shopify to be able to browse and select products.

You'll need the same credentials to configure the Shopify action extension for use in Workforce Flows, and for setting up a commerce repository for Workforce content generation templates.

What you'll need
Link 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 ID
Link 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 is https://admin.shopify.com/store/amp-content-studio-01

  • From the "Stores" section of your account, as shown below

You can find the site ID in the Stores section of your account

Getting an API access token
Link copied!

Log in to your store and select "Apps and Sales channels" from the menu on the left.

  • Click the "Develop apps" button.

Click develop apps to start getting an access token

  • Click the "Allow custom app development" button and accept the notification.

Click allow custom development to continue

  • Click on "Create an app"

Finish completing an app

  • Give the app a name, assign an app developer and create the app

Assign the app a name and developer

  • The configuration screen will be displayed

The configuration screen

The Workforce 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".

Configuring the required access

To get the access token you need to install the app.

  • Click "Install app" and then click the "Install" button on the confirmation dialog.

Installing the app

You now have access to a storefront API Access token with the correct scope.

You can now access the API access token

Getting the Shopify Storefront API version
Link 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.

Workforce- generating content