---
title: "Connect Shopify"
url: "https://blogautopost.com/docs/connect-shopify.md"
canonical_url: "https://blogautopost.com/docs/connect-shopify"
last_updated: "2026-10-20"
type: "how-to"
summary: "Connect a Shopify store with a custom app Admin API token: required scopes, blog selection, how verification works, duplicate protection and failure fixes."
---

# Connect Shopify

> **For AI agents:** the complete index of BlogAutoPost pages is [llms.txt](https://blogautopost.com/llms.txt). Every page is also served as markdown at its URL plus .md.

Connect a Shopify store with a custom app Admin API token: required scopes, blog selection, how verification works, duplicate protection and failure fixes.

## What you need

- Your shop domain ending in `.myshopify.com`, such as `my-store.myshopify.com`. A custom storefront domain does not work here.
- The Admin API access token of a custom app you created in your Shopify admin and installed on the store.
- The `write_content` and `read_content` Admin API scopes on that app. `write_online_store_pages` also works for writing.
- At least one blog in the store, created under Online Store, Blog posts. If the store has more than one, choose which one BlogAutoPost posts to.

## Why a custom app token

A custom app belongs to your store alone, and its token is how BlogAutoPost connects. The token is stored encrypted and is removed from any error message.

## How verification works

Verification only reads. It asks Shopify for the shop name, the granted scopes and the list of blogs. It fails if the read or write content scope is missing, if the store has no blog, or if it has several and none was chosen. A blog id you gave must exist in the store, and the error lists the blogs that do.

## What is set on each article

- Title, handle (the slug), body, summary, tags and published state.
- The SEO title and description go into the standard `global.title_tag` and `global.description_tag` fields.
- The cover image with alt text. The image bytes are uploaded to a Shopify staging target first, then attached to the article.
- Shopify requires an author, so the store name is used as the byline.

## Retries never post twice

Before publishing, BlogAutoPost searches your blog for an article with the same handle. Only an exact handle in the chosen blog counts as already posted, and then the existing article is reused instead of creating another.

## Failures and what to do

| Code | Meaning | What to do |
| --- | --- | --- |
| `auth_failed` | Shopify did not accept the token, or the app lacks permission. | Copy the Admin API access token again. Grant the scopes, reinstall the app and reconnect. |
| `missing_scope` | The app lacks `read_content` or `write_content`. | Add the scope in the app configuration, reinstall and reconnect. |
| `not_found` | No store at that domain, or the blog id does not exist. | Check the `.myshopify.com` address or pick a listed blog. |
| `invalid_request` | Shopify refused something, or the store has no blog or several blogs. | Read the message, then create a blog or choose one. |
| `conflict` | The handle is already taken. | Change the post address or remove the older article. |
| `unexpected_response` | Shopify answered in a shape we do not recognise, so nothing changed. | Try again later or contact support. |

When Shopify is rate limiting your store, the step is reported as unavailable and retryable, and BlogAutoPost tries again shortly. See [errors](https://blogautopost.com/docs/errors.md) for the full list.
