{
"message": "Not Authorized",
"type": "service.not_authorized"
}
I am receiving this error constantly while processing OAuth, it was working a day before but don't know why suddenly it's not working .
Hey! Thanks for reaching out! “Not Authorized” when using OAuth typically means the OAuth secret or the application id (client id) is incorrect. Please ensure that the secret and client id are correct for whatever environment you're using (production or sandbox). Also be sure that if you're using sandbox, the URL domain is …squareupsandbox… and not …squareup….
Let me know if you have any other questions. 🙂
I am using the application id for OAuth (authorizing application), have taken the app id correctly every time. But I get the same error every time. For OAuth, i am only using app id not app secret. Can you please suggest further? I am using sandbox also sandbox URL
If you're using ObtainToken endpoint, one of the requirements is client_secret (which is also the application secret). When exactly are you seeing this error just in case I am misunderstanding? Also, the doc for ObtainToken is here.
Square Community