Shopify Integration Guide

Connect your Shopify store to HQ via the Admin API.

Architecture

Unlike WordPress, Shopify doesn't support server-side plugins. Instead, the Hub communicates directly with your Shopify store via the Admin API (GraphQL).

HQ Hub → Shopify Admin API → Blog Articles

Setup

1. Create a Shopify App

  1. Go to Shopify Partners
  2. Create a new app
  3. Set the app URL to your Hub instance
  4. Configure OAuth scopes: read_content, write_content

2. Get API Credentials

  1. Install the app on your store
  2. Copy the Admin API access token
  3. Add to your Hub .env:
SHOPIFY_STORE=your-store.myshopify.com
SHOPIFY_ACCESS_TOKEN=shpat_xxxxxxxxxxxxxxxxxxxxxxxx

3. Configure in Hub

  1. In Hub admin, go to Websites → Create
  2. Enter your Shopify store URL
  3. Select "Shopify" as the connector type

Field Mapping

HQ FieldShopify Field
titleArticle title
body_htmlArticle body_html
slugArticle handle
featured_imageArticle image
meta.titleSEO title
meta.descriptionSEO description
publishedArticle status

Rate Limits

Shopify enforces rate limits:

The Hub automatically handles rate limit retries.

Media Handling

Shopify handles media differently than WordPress:

Required Scopes

ScopePurpose
read_contentRead blogs and articles
write_contentCreate/update/delete articles
read_filesRead uploaded files
write_filesUpload media files