Sandbox Merchant ID

Hello Square Developer Support,

I’m developing a multi-tenant jewelry management application called Imperium Gemmae, which will integrate with Square through OAuth.

I’ve created a new US Sandbox test account named The Gem Jewelers - Sandbox, with automatic application authorizations disabled. The account currently has no authorized applications.

I would like to retrieve or confirm this test account’s Square Merchant ID before initiating OAuth, so our application can validate the expected merchant during the authorization flow.

Is there a supported way to obtain the Merchant ID for a Sandbox test account without first creating an application authorization or OAuth access token?

We want to preserve the account’s unauthorized state to test the complete first-time OAuth consent experience.

Thank you for your assistance.

Hi,
We don’t have a way to obtain a Sandbox test account’s Merchant ID without first creating an application authorization or access token. The Merchants API requires a valid access token, so API Explorer cannot retrieve it while the account remains unauthorized.