---
title: "Get Shopify OAuth connect URL"
method: GET
path: "/v1/connect/shopify"
tags: ["Connect"]
---

# Get Shopify OAuth connect URL

`GET /v1/connect/shopify`

Initiate the Shopify OAuth flow for a store. Shopify is a connect-only
platform: the connected account does not publish social posts, it powers
the Blogs API (`/v1/accounts/{accountId}/blogs`) and the Products API
(`/v1/accounts/{accountId}/products`). Returns an `authUrl`
to redirect the merchant to; after they approve the install, Shopify
redirects their browser to Zernio's callback, the account is created on
the profile (platform `shopify`), and the browser is redirected to
`redirect_url` (or the Zernio dashboard when omitted). Requested scopes
are `read_content`, `write_content`, `read_products` and
`write_products` (content and products only; no customer or order
data). Connecting the same profile to a store again refreshes the
stored token in place, and is how a store connected under the older
content-only grant picks up product access.

## Query parameters

- `profileId` string, required
- `shop` string, required
- `redirect_url` string, uri

## Response `200`

OAuth authorization URL to redirect the merchant to

- object
  - `authUrl` string, uri — URL to redirect your user to for OAuth authorization
  - `state` string — State parameter for security (handled automatically)

## Other responses

- `400` — Invalid `profileId` format, `shop` is not a myshopify.com store domain, or `redirect_url` is not an absolute http(s) URL or custom app scheme.
- `401` — Unauthorized
- `402` — Payment method or enterprise contract required. The authenticated account hit a billing gate before the connection could proceed. Three reasons: - `free_tier_exceeded`: the team has connected more accounts than the free tier allows. Add a payment method on the dashboard to continue (the user will be billed per additional connected account). - `twitter_passthrough`: connecting an X account requires a card on file from day one because X API calls incur real per-call pass-through costs. Applies to the 1st X account, not only the 3rd+. - `enterprise_required`: the team is on an enterprise contract with a negotiated connected-account cap and has reached it. Self-service teams have NO connected-account cap (the $1/account rate continues at any scale), so this reason can only fire for teams whose contract sets an explicit limit. `dashboard_url` deep-links to the enterprise contact page rather than the billing tab. The end-user already has a card on file; this gate is about contract terms, not card collection. - `card_verification_required`: the card on file was flagged at add time (prepaid, or issued in a different country than the billing address) and a one-time verification charge of `details.verification_amount_cents` (USD) is pending. The charge is credited to the team's usage balance, not a fee. `dashboard_url` opens the billing page on the verification step; the request succeeds once it is paid. SDK consumers should switch on `reason` to render the right prompt. For `free_tier_exceeded`, `twitter_passthrough` and `card_verification_required`, redirect the end-user to `dashboard_url`: it opens the add-payment-method drawer on the Zernio billing page, and the request succeeds once the card is on file (or verified). For `enterprise_required`, redirect to `dashboard_url` (the enterprise contact form) to adjust the contract's limit.
- `403` — API key does not have access to this profile.
- `404` — Profile not found or access denied.
- `500` — Shopify API not configured (missing credentials).

## Changes

- **2026-09-24** `f5bd490b5731` — 1 warning, 1 info
  - added the new `card_verification_required` enum value to the `reason` response property for the response status `402`
  - added the optional property `details/verification_amount_cents` to the response with the `402` status
- **2026-08-14** `875093317201` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/zernio/apis/zernio-api/changes/v1/connect/shopify/get.md)

---

[API](https://skmtc.dev/zernio/apis/zernio-api.md) · [All operations](https://skmtc.dev/zernio/apis/zernio-api/llms.txt) · [OpenAPI document](https://skmtc.dev/zernio/apis/zernio-api/revisions/a0d8f21b5abe?raw)
