Sandbox OAuth Error: Unable to find client by that client_id

When requesting authorization from the oauth-api, I get the following Error:
'Unable to find client by that ‘client_id’.

However when I supply the production clientID, this error doesn’t occur.

The auth endpoint I’m calling:
https://connect.squareup.com/oauth2/authorize

And these are the parameters:
client_id=sandbox-sq0idb-V25GcUb6ZV9JZw2lzDVzGw
session=false
scope={SCOPE}
state={STATE}
redirect_url={REDIRECT}
response_type=code

(shortened the url by removing scope, string, etc.)

It sounds like the base path URL is configured to production when your calling sandbox if its working in production but not sandbox. Are you changing the URL to https://connect.squareupsandbox.com/oauth2/authorize? :slightly_smiling_face:

Ah yep. That’s it. [facepalm]
You’re a legend. Thankyou.

Glad to hear that fixed the issue. :slightly_smiling_face: