Ad

Shopify, Nodejs :check Shopify Api Request In App Valid Or Not If Scope Changed

- 1 answer

Can anybody help me about how can i check shopify request valid or not if scope changed, i am creating shopify app in nodejs

Ad

Answer

Hi i got my solution,

You could check the status code of your response in node. I think '403 Forbidden' is the one you need. If you are trying to make an api call to a scope you didn't request in the initial oAuth process, a 403 response will be returned and a message like this:

{
  errors: "[API] This action requires merchant approval for read_orders scope."
}

You can see all the response status codes here

Ad
source: stackoverflow.com
Ad