Shopify OAuth Questions

souravchandra
Tourist
19 0 0

Hi

 

We are adding Shopify as one of the destinations to our website. User can make product videos on our website and add to their Shopify store from our website.

 

  1. Will Shopify return any error code or error reason for OAuth failure? 
  2. Will Shopify return json/xml (i.e. machine friendly) response if OAuth authorisation flow errors out due to
    1. user does not want to continue
    2. shop does not exist
    3. shop does not belong to the account
    4. on consent page user denies giving any permission
    5. on consent page user clicks on cancel

  3. Is there an API endpoint to revoke access token? 

 

Thanks,

Sourav

0 Likes
_JB
Shopify Staff
Shopify Staff
761 89 170

Hey @souravchandra,

 

If an error occurs during OAuth, the customer will see an error in their browser. On your end you'll be able to see that a user was redirected to Oauth and never returned.

 

If you haven't already, I recommend taking a look at our OAuth tutorial here. Setting up the example app should help give a better understanding of the overall flow.

JB | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes