#Zen-External-Account
1 messages ยท Page 1 of 1 (latest)
Hello Jack ๐
Hi, external_account and account are very dfferent
external_account is can be your bank account or debit card
Whereas account means a Stripe account
yep, exaclty, i'm already creating an account like this :
stripe accounts create \
-d type=custom \
-d email="email@test.fr" \
-d country="FR" \
-d "business_profile[mcc]"=5734 \
-d "business_profile[url]"="www.fakeurl.com" \
-d "capabilities[card_payments][requested]"="true" \
-d "capabilities[transfers][requested]"="true" \
-d account_token=${accountResult.id}`,
But now I need an external_account to be created, to link it to the above account, so that I can start testing stuff ^^
https://stripe.com/docs/api/external_account_bank_accounts/create?lang=node#account_create_bank_account to create an external_account on a stripe account, you need to create a bank account object and pass it to the create external account API.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
in the CLI example I see this :
stripe external_accounts create acct_1032D82eZvKYlo2C \
--external-account=btok_1LewYf2eZvKYlo2C3pOVaUQq
Could you tell me how to get/create it ?
https://stripe.com/docs/api/customer_bank_accounts/create?lang=node#customer_create_bank_account this is the API to create a bank account
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
sorry, my last message was not complete ^^
how can I get/create an external account token ?
I tried :
stripe external_accounts create acct_1LewB62ShImREKae --external-account=btok_1LewYf2eZvKYlo2C3pOVaUQ
and of course had the error :
"code": "resource_missing",
"doc_url": "https://stripe.com/docs/error-codes/resource-missing",
"message": "No such token: 'btok_1LewYf2eZvKYlo2C3pOVaUQq'",
"param": "external_account",
"type": "invalid_request_error"
}
I'm just missing that little part for everything to work ๐
where did you get the btok_xxx value from?
copied from the docs I guess. Just call and create one(https://stripe.com/docs/api/tokens/create_bank_account) using the valies from https://stripe.com/docs/connect/testing#account-numbers, then pass that variable's ID.
it's from the api page ๐
I knew it wouldn't work, but at least now my question may be clearer ^^
cool, so next steps are clear or can I clarify something?
ooooh cool , perfect link the first one
you must be super bothered at people that don't search well in the docs... really sorry and thanks alot ๐
@dreamy creekooooh Karl, didn't see it was you ^^
Thanks a lot for yesterday with the address stuff, i could pinpoint the issue ๐ an invisible character....
I have to flee, but if you remember, in my app, users create express accounts.
I'm trying to make E2E tests, creating a new account at the beginning of my test automatically, therefore going for custom accounts.
Is there anything that changes in term of receiving money, between an express and custom account ?
I want to be sure that my tests on the custom accounts will reflect what's happening on express accounts in production ๐
I remember yes.
Is there anything that changes in term of receiving money, between an express and custom account ?
Nothing really specific I can think of, most of the differences are in onboarding
ok that's perfect ๐ฅณ
i'll try to finish creating my account in like 4 hours, do not close this thread so I can tell you if everything worked ๐
unfortunately we will close it, we can't keep it open that long since we have to hand over context between multiple people and timezones. If you have any specific questions later please open a new thread
oh ok, too bad ^^ anyway, thanks a lot, you've been a super help ๐ค