Connect Shopify
Initiates the Shopify OAuth flow by generating an authorization URL.
Request Body
The Shopify store domain (e.g., “my-store.myshopify.com”)
Response
The Shopify OAuth URL to redirect the user to
CSRF protection state parameter
Example
curl -X POST https://api.searchcompany.ai/api/shopify/connect \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"shop_domain": "my-store.myshopify.com"}'
{
"oauth_url": "https://my-store.myshopify.com/admin/oauth/authorize?client_id=...",
"state": "org-slug:random-token"
}