#peppemu-account-links
1 messages ยท Page 1 of 1 (latest)
Hey! Can you share the ID (req_xxx) of the failing API request? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
hey ynnoi
how is it going ?
do you know how do I find that ID in postman?
I got iy
it*
req_PusbpXQFPqTscs
Looks like you're passing the acct_xxx ID of your platform (the same account making the API request) to the account parameter
indeed
Why would you do that? That won't work. You need to create a new account first (https://stripe.com/docs/api/accounts/create) and pass that account ID
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
What kind of connected accounts are you using?
ok I see, thanks, I missed that
let me give you a bit of context here
so far we have been using Connect Links to let our new users create their account on our stripe platform
we would share that link and they would connect filling in all the info
now, we want to automate this step
from the link u sent, it looks like I can do that by simply defining the account type
correct ?
Sounds like OAuth?
Yes, generally. There are other parameters you can define/pre-fill for the account. This is all outlined here for Express: https://stripe.com/docs/connect/express-accounts
well, nope.
just by manually creating the connect link from Stripe
ok thanks, could you confirm if my understanding is correct ?
Yes, you can automate this flow via the API. The exact process depends on which type of Connect accounts you're using (and why I asked earlier)
Premise: we need express accounts.
Steps:
- user signs up
- I send a request like: https://api.stripe.com/v1/accounts?type=express
- I extract the account id of this request
- I allow the user to access this account by (for example) adding a button on their profile = https://dashboard.stripe.com/ + account_id + /dashboard
- The user can add email, card details, etc... to this account
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
They'll need to be onboarded/verified via the Account Link first: https://stripe.com/docs/connect/express-accounts#create-link
I allow the user to access this account by (for example) adding a button on their profile = https://dashboard.stripe.com/ + account_id + /dashboard
Express accounts don't have access to the standard Dashboard: https://stripe.com/docs/connect/express-dashboard
ok I see, so I can use the account id I extract to make the call to https://api.stripe.com/v1/account_links
this will give me a url the user can use to onboard
Exactly!
ok cool ๐
and one question about the url
is it going to prefill the email address with the email address I can add when making the first call?
It will, yep
Of course, np!