Publishing integrations
Shopify
Shopify stores can have several blogs. The connection carries the Admin API token and which blog to post into.
Create a custom app#
- In your store admin, open Settings → Apps and sales channels.
- Click Develop apps, then Create an app. Name it
Rankli. - Open Configuration → Admin API integration and click Configure.
- Grant write_content. That is the scope that covers blogs, articles and pages — and it is the only one we ask for. We do not read orders, customers or products.
- Save, then open API credentials and click Install app.
- Reveal and copy the Admin API access token. It starts
shpat_and is shown once.
If Develop apps is greyed out, your staff account lacks the “Manage and install apps” permission. A store owner can grant it, or create the app for you.
Have a blog to post into#
A new Shopify store often has no blog at all. Create one under Online Store → Blog posts → Manage blogs → Add blog before connecting; a store with no blog fails the connection test with exactly that message.
Connect it#
- In Rankli, open Integrations → New integration → Shopify.
- Store URL —
your-store.myshopify.com. The.myshopify.comaddress, not your custom domain. - Admin API access token — the
shpat_…value. - Blog — we list the blogs on the store; pick one. Leave it empty and the first blog is used.
- Publish mode — published, or hidden for review.
- Save. We list the store’s blogs as the connection test, which also proves the scope.
What lands on your store#
| Field | Where it goes |
|---|---|
| Title | The article title. |
| Body | The article body as HTML. |
| Slug | The article handle. |
| Meta description | The SEO description on the article. |
| Hero image | Uploaded to Shopify and re-hosted on their CDN as the article image. |
| In-body images | Left at their original URLs — Shopify only re-hosts the featured image. |
| Tags | From the article’s keyword cluster. |
| Author | The store name, unless the connection sets one. |
When it does not work#
401
The token was rotated, or the custom app was uninstalled. Reinstall and copy the new token.
403
The app is missing write_content. Add the scope, save, and reinstall the app — a scope change does not take effect until the app is reinstalled.
404
The store URL is wrong (a custom domain rather than the .myshopify.com one), or the blog was deleted.
Rate limited
Shopify’s Admin API is leaky-bucket rate limited. We back off and retry; a scheduled article is not lost because the store was busy.