#NewtReyes-connect-OAuth

1 messages ยท Page 1 of 1 (latest)

vague spire
midnight forum
#

Is this for new accounts only?

vague spire
#

It will create new accounts, yes.

midnight forum
#

Is there a way to connect an already created account?

#

Or is there a migration path for old accounts to the newly created account?

vague spire
#

The OAuth flow lets you try to connect to an existing account, but there is a possibility of that flow creating a new account instead. If the connected account is already controlled by another platform then you won't be able to connect to it and a new account will be created.

midnight forum
#

There is a way to can try to connect to an existing account, but there is a possibility of that flow creating a new account instead.
Are there any docs detailing this?

vague spire
#

Apologies, realized that was vague and updated. The OAuth flow is the one that tries to connect to existing accounts.

midnight forum
#

If the connected account is already controlled by another platform then you won't be able to connect to it and a new account will be created.****
Makes sense

#

Apologies, realized that was vague and updated. The OAuth flow is the one that tries to connect to existing accounts.
No prob

vague spire
#

If you're going that way then it sounds like you want the read_write scope, but there is a note at the top of the OAuth doc about that not working for existing accounts.

midnight forum
#

Yeah

#

we noticed the "small detail"

#

๐Ÿ˜„

#

Please correct me if wrong, but that means that even if we allow the client to oauth, the token we receive will only be allowed to read data from their account. Any inserts, updates or deletes won't be allowed.

#

correct?

#

if that is the case, is there a way for customers to migrate their old accounts to the new accounts?

vague spire
#

Apologies for the delay while I was confirming some details. If you try to connect to an existing standard account, and specify a read_write scope, then this will create a new account and you wouldn't be able to write in the intended one.
Also we no longer recommend using OAuth tokens for interacting with objects on a connected account, instead we recommend using our Stripe-Account header:
https://stripe.com/docs/api/connected_accounts

#

Can you elaborate on what you mean by migrate their old account?