Sorry if I caused confusion…the OAuth API will not create accounts for them, they would still need to create their own Square account themselves. Once they have an account…
- Your application provides the merchant with an OAuth authorization link (asking permission to access their account)
- Assuming they say yes, they would be redirected to some URL that you provide that includes a
code
. - You exchange this
code
for a unique access token using theObtainToken
endpoint - This access token is unique to their Square account; now you can make calls on their behalf using this access token