soeru Shopify OAuth API
The Shopify OAuth API from soeru — 10 operation(s) for shopify oauth.
The Shopify OAuth API from soeru — 10 operation(s) for shopify oauth.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/soeru-biz:soeru-biz-shopify-oauth-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: soeru Shopify OAuth API
description: AIパーソナライズ明細書メッセージ自動生成SaaS
version: 0.1.0
tags:
- name: Shopify OAuth
paths:
/api/shopify/install:
get:
tags:
- Shopify OAuth
summary: Shopify Install
description: 'Entry point for Shopify App Store installs.
This endpoint does NOT require soeru authentication. It initiates the
Shopify OAuth flow directly so that App Store reviewers (and new merchants)
get the expected "install → app works" experience.
After OAuth completes, the callback detects this is an install flow and
redirects the user to /setup/shopify where they can create or link a
soeru account.'
operationId: shopify_install_api_shopify_install_get
parameters:
- name: shop
in: query
required: true
schema:
type: string
description: Shopify store domain
title: Shop
description: Shopify store domain
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/shopify/auth:
post:
tags:
- Shopify OAuth
summary: Start Shopify Auth
description: 'Generate Shopify authorization URL for the current shop.
The frontend should redirect the user to auth_url.'
operationId: start_shopify_auth_api_shopify_auth_post
parameters:
- name: x-shop-id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Optional shop ID
title: X-Shop-Id
description: Optional shop ID
- name: authorization
in: header
required: true
schema:
type: string
description: Bearer <token>
title: Authorization
description: Bearer <token>
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ShopifyAuthRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ShopifyAuthResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/shopify/callback:
get:
tags:
- Shopify OAuth
summary: Shopify Callback
description: 'Handle Shopify OAuth callback.
Shopify redirects here after user authorizes. We:
1. Verify HMAC signature
2. Verify state matches a pending auth request
3. Exchange authorization code for access token
4. Store the token in shop_settings
5. Redirect to frontend settings page'
operationId: shopify_callback_api_shopify_callback_get
parameters:
- name: code
in: query
required: true
schema:
type: string
title: Code
- name: shop
in: query
required: true
schema:
type: string
title: Shop
- name: state
in: query
required: true
schema:
type: string
title: State
- name: hmac
in: query
required: false
schema:
type: string
default: ''
title: Hmac
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/shopify/claim-install:
post:
tags:
- Shopify OAuth
summary: Claim Shopify Install
description: 'Claim a pending Shopify install for the authenticated user.
This is called from the /setup/shopify page after the user logs in or
creates an account. It:
1. Validates the setup token
2. Creates a soeru shop for the user
3. Stores the Shopify access token in shop_settings
4. Deletes the pending install record'
operationId: claim_shopify_install_api_shopify_claim_install_post
parameters:
- name: authorization
in: header
required: true
schema:
type: string
description: Bearer <token>
title: Authorization
description: Bearer <token>
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ClaimShopifyInstallRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/shopify/pending-install:
get:
tags:
- Shopify OAuth
summary: Get Pending Install
description: Retrieve pending install info for the setup page (no auth required).
operationId: get_pending_install_api_shopify_pending_install_get
parameters:
- name: token
in: query
required: true
schema:
type: string
description: Setup token from install redirect
title: Token
description: Setup token from install redirect
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/shopify/status:
get:
tags:
- Shopify OAuth
summary: Shopify Connection Status
description: Check if the current shop has a valid Shopify connection.
operationId: shopify_connection_status_api_shopify_status_get
parameters:
- name: x-shop-id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Optional shop ID
title: X-Shop-Id
description: Optional shop ID
- name: authorization
in: header
required: true
schema:
type: string
description: Bearer <token>
title: Authorization
description: Bearer <token>
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/shopify/diagnose:
get:
tags:
- Shopify OAuth
summary: Shopify Diagnose
description: 'Diagnostic endpoint to check Shopify API access and data quality.
Returns: granted scopes, order count, sample customer data with orders_count,
and whether read_all_orders is actually working.'
operationId: shopify_diagnose_api_shopify_diagnose_get
parameters:
- name: x-shop-id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Optional shop ID
title: X-Shop-Id
description: Optional shop ID
- name: authorization
in: header
required: true
schema:
type: string
description: Bearer <token>
title: Authorization
description: Bearer <token>
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/shopify/disconnect:
post:
tags:
- Shopify OAuth
summary: Disconnect Shopify
description: Remove Shopify connection for the current shop.
operationId: disconnect_shopify_api_shopify_disconnect_post
parameters:
- name: x-shop-id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Optional shop ID
title: X-Shop-Id
description: Optional shop ID
- name: authorization
in: header
required: true
schema:
type: string
description: Bearer <token>
title: Authorization
description: Bearer <token>
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/shopify/manual-connect:
post:
tags:
- Shopify OAuth
summary: Manual Shopify Connect
description: 'Connect a Shopify store using a manually obtained Admin API access token.
This is used for custom apps created directly in the Shopify store admin,
bypassing the OAuth flow. The token is validated via GraphQL shop query.'
operationId: manual_shopify_connect_api_shopify_manual_connect_post
parameters:
- name: x-shop-id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Optional shop ID
title: X-Shop-Id
description: Optional shop ID
- name: authorization
in: header
required: true
schema:
type: string
description: Bearer <token>
title: Authorization
description: Bearer <token>
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ManualShopifyConnectRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/shopify/client-credentials-connect:
post:
tags:
- Shopify OAuth
summary: Client Credentials Connect
description: 'Connect a Shopify store using Client Credentials Grant.
This is for apps created in the Shopify Dev Dashboard (new flow from 2025+).
Instead of a static access token, we exchange Client ID + Client Secret
for a temporary access token via Shopify''s OAuth endpoint.'
operationId: client_credentials_connect_api_shopify_client_credentials_connect_post
parameters:
- name: x-shop-id
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Optional shop ID
title: X-Shop-Id
description: Optional shop ID
- name: authorization
in: header
required: true
schema:
type: string
description: Bearer <token>
title: Authorization
description: Bearer <token>
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ClientCredentialsConnectRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
ClaimShopifyInstallRequest:
properties:
setup_token:
type: string
maxLength: 128
minLength: 16
title: Setup Token
type: object
required:
- setup_token
title: ClaimShopifyInstallRequest
description: Request to claim a pending Shopify install for the authenticated user.
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
ManualShopifyConnectRequest:
properties:
store_domain:
type: string
maxLength: 256
minLength: 3
title: Store Domain
access_token:
type: string
maxLength: 512
minLength: 8
title: Access Token
type: object
required:
- store_domain
- access_token
title: ManualShopifyConnectRequest
description: Request to connect using a manually obtained access token.
ShopifyAuthResponse:
properties:
auth_url:
type: string
title: Auth Url
shop_domain:
type: string
title: Shop Domain
type: object
required:
- auth_url
- shop_domain
title: ShopifyAuthResponse
description: Response containing the authorization URL.
ClientCredentialsConnectRequest:
properties:
store_domain:
type: string
maxLength: 256
minLength: 3
title: Store Domain
client_id:
type: string
maxLength: 256
minLength: 8
title: Client Id
client_secret:
type: string
maxLength: 256
minLength: 8
title: Client Secret
type: object
required:
- store_domain
- client_id
- client_secret
title: ClientCredentialsConnectRequest
description: Request to connect using Client ID + Client Secret (Dev Dashboard flow).
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
ShopifyAuthRequest:
properties:
shop_domain:
type: string
maxLength: 256
minLength: 3
title: Shop Domain
frontend_origin:
anyOf:
- type: string
maxLength: 512
- type: 'null'
title: Frontend Origin
custom_client_id:
anyOf:
- type: string
maxLength: 256
- type: 'null'
title: Custom Client Id
custom_client_secret:
anyOf:
- type: string
maxLength: 256
- type: 'null'
title: Custom Client Secret
type: object
required:
- shop_domain
title: ShopifyAuthRequest
description: Request to start Shopify OAuth flow.