#jmontydesign
1 messages · Page 1 of 1 (latest)
Hi, all of our test data for connect is here: https://stripe.com/docs/connect/testing and https://stripe.com/docs/connect/testing#account-numbers specifically. There is not token but when you go through the onboarding there is button that says 'use test data' that auto fills this bank account data for yout.
I need to batch set up test "connect" accounts that have test bank accounts through a series of api calls. Is there any way to do this without going into the ui?
With Custom Connect, you should be able to https://stripe.com/docs/api/external_account_bank_accounts/create pass in that test account data
So I need to do this through 3 api calls? 1) create connect acct 2) create external account bank account 3) update connect account with external account bank account ?
Yes
There is not
Just an fyi, you shared your test API key here and this is a public platform so I recommend that you not share this going forward.
Since this test mode, it's maybe ok but I would be cautious.
Thanks for the helpful warning. So is there an api call that can pass in one of the test Stripe bank routing nunbers and test Stripe bank accoutn numbers to generate "btok ..." token?
You can pass the data from https://stripe.com/docs/connect/testing#account-numbers to create an external bank account: https://stripe.com/docs/api/external_account_bank_accounts/create
Yes, I see the test bank account numbers and test bank routing numbers in the first link, BUT the second link shows an api call that does not pass in a bank acct number and routing number, but rather passes in a "btok..." token. So how can I use the bank acct number and routing number in an api call to get the "btok"?
Are you not able to expand the external_account hash, https://stripe.com/docs/api/external_account_bank_accounts/create#account_create_bank_account-external_account-account_number?
I see that under the "child parameters" you can pass in the bank account number, BUT it appers the "external_account: 'btok_1N4BU3LbLm0ePwAQVIm7BRee'," is required?
It has been a while since I tried this, I typically use the onboarding flow to add the bank details.. Let me test this on my end
While I test this, can you share where you see 'external_account: 'btok_1N4BU3LbLm0ePwAQVIm7BRee'," is required' this?
I tested this on my end and it's working..
You just need to expand the external_account, https://stripe.com/docs/api/accounts/create#create_account-external_account-object and pass in the required data among the routing and account numbers.