Hello Square Developer Team,
I’m building an application that uses Square OAuth in the Sandbox environment. Before running any API requests with a newly issued Sandbox OAuth access token, I would like to confirm the supported and secure way to verify its identity.
According to the RetrieveTokenStatus API documentation:
The response can include the client_id, merchant_id, scopes, and expiration information.
Could you please clarify the following?
-
Is RetrieveTokenStatus officially supported for Sandbox OAuth access tokens?
-
If so, is the correct endpoint
https://connect.squareupsandbox.com/oauth2/token/status? -
What authentication credentials and authorization header format should be used for this endpoint in Sandbox? Should the Sandbox application secret or another credential be used?
-
Can we reliably use the returned
client_idandmerchant_idto verify that an OAuth access token belongs to the intended Sandbox application and test seller? -
Is there a recommended alternative if RetrieveTokenStatus is not supported in Sandbox?
Our goal is to verify the application and seller identity before performing read-only API operations. We will not share access tokens, application secrets, or customer information.
Thank you for your guidance.