Shopify return after authorizing the app: validates, stores the encrypted token and sends the user to the dashboard
GET
/shopify/callback
const url = 'https://api.replifier.com/shopify/callback?shop=example&code=example&state=example&hmac=example×tamp=example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.replifier.com/shopify/callback?shop=example&code=example&state=example&hmac=example×tamp=example'Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”shop
required
string
code
required
string
state
required
string
hmac
required
string
timestamp
required
string
Responses
Section titled “Responses”Redirects to the dashboard with shopify=connected or shopify=error&reason=…
Invalid data
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Internal error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Service temporarily unavailable
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}