Skip to main content
GET
https://searchcompany-main.up.railway.app
/
api
/
shopify
/
callback
Shopify Callback
curl --request GET \
  --url https://searchcompany-main.up.railway.app/api/shopify/callback

Shopify OAuth Callback

Handles the OAuth callback from Shopify after user authorization. Exchanges the authorization code for an access token and stores it.

Query Parameters

code
string
required
Authorization code from Shopify
shop
string
required
The shop domain
state
string
required
CSRF state parameter (must match the one from connect)
hmac
string
required
HMAC signature for verification

Response

Redirects to the frontend settings page with success or error status.
  • Success: /dashboard/settings?tab=connect&shopify=success
  • Error: /dashboard/settings?tab=connect&shopify=error&message=...