---
title: "Start Shopify Auth"
method: POST
path: "/api/shopify/auth"
tags: ["Shopify OAuth"]
---

# Start Shopify Auth

`POST /api/shopify/auth`

## Request

- Base URL: `https://api.soeru.biz` (the document declares no server; this is the origin it was published from)
- URL: `https://api.soeru.biz/api/shopify/auth`
- Auth: none declared. Required headers: `authorization`

Generate Shopify authorization URL for the current shop.

The frontend should redirect the user to auth_url.

## Headers

- `x-shop-id` string, nullable: Optional shop ID
- `authorization` string, required: Bearer <token>

## Request body

- ShopifyAuthRequest: Request to start Shopify OAuth flow.
  - `shop_domain` string, required
  - `frontend_origin` string, nullable
  - `custom_client_id` string, nullable
  - `custom_client_secret` string, nullable

## Response `200`

Successful Response

- ShopifyAuthResponse: Response containing the authorization URL.
  - `auth_url` string, required
  - `shop_domain` string, required

## Other responses

- `422`: Validation Error

---

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