#alok_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1253318379469799490
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
are you a bot ?
No, are you?
To answer your question, how are you onboarding users to your platform? Are you using our hosted UI?
no
i am onboarding the user via api calls
Basically, you have an issue setting up the external account via API for your new connected account, correct?
Yes, sorry for the delay.
You can create a Bank Account object via API: https://docs.stripe.com/api/external_account_bank_accounts/create
{
"error": {
"code": "resource_missing",
"doc_url": "https://stripe.com/docs/error-codes/resource-missing",
"message": "No such token: 'btok_1NAiJy2eZvKYlo2Cnh6bIs9c'",
"param": "external_account",
"request_log_url": "https://dashboard.stripe.com/acct_1PTjKFDHBlzBIowH/test/logs/req_tr1DgNQ8zradra?t=1718885853",
"type": "invalid_request_error"
}
}
Where did you get this ID from? btok_xxx
What request? From where?
What do you mean? You are sending it in the request that you shared.
@wintry vault please post in this thread
@signal solar may you please come our meet call to solve this issue ASAP. I really appreciate your effort
My team doesn't do calls, sorry.
Please don't post your keys here, it's a public forum.
The request in the docs is an example, you should use your own IDs.
You should create a new Bank Account based on this example, and then attach it to the account
please share the api doc for it
I did, above.
My team doesn't do calls, sorry.
No, it accepts account_number as well: https://docs.stripe.com/api/external_account_bank_accounts/create#account_create_bank_account-external_account-account_number
i use stripe test account number but give response
{
"error": {
"code": "resource_missing",
"doc_url": "https://stripe.com/docs/error-codes/resource-missing",
"message": "No such token: '000999999991'",
"param": "external_account",
"request_log_url": "https://dashboard.stripe.com/acct_1PTjKFDHowH/test/logs/req_O7oTA8cehEj?t=1718887339",
"type": "invalid_request_error"
}
}
Are you providing the number in
{
external_account: {
account_number: "..."
}
}
?
no i am sending form object in key value pair format where key is external_account and value is 000999999991
application/x-www-form-urlencoded
Fine, my point was that you are likely sending the value in the wrong field.
Are you using cURL for this?
curl https://api.stripe.com/v1/accounts/acct_xxx/external_accounts \
-u "sk_test_:" \
-d external_account[account_number]=...
Replace the account ID, the key and the account number with your own
now the response is {
"error": {
"message": "The external_account hash must include an 'object' key indicating what type of external_account to create.",
"param": "external_account",
"request_log_url": "https://dashboard.stripe.com/acct_1PTjKFDHBlzBIowH/test/logs/req_NwMVswBdDZSR1I?t=1718888765",
"type": "invalid_request_error"
}
}
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
๐ stepping in as vanya needed to step away
curl --location 'https://api.stripe.com/v1/accounts/acct_1PTjKFDHBlzBIowH/external_accounts'
--header 'Content-Type: application/x-www-form-urlencoded'
--header 'Authorization: Basic secret_key'
--header 'Cookie: __stripe_orig_props=%7B%22referrer%22%3A%22%22%2C%22landing%22%3A%22https%3A%2F%2Fdashboard.stripe.com%2Facct_1PTiFyRi5bftb6EU%2Ftest%2Flogs%2Freq_yeKu13Uwllpm6u%3Ft%3D1718879944%22%7D; cid=c9efe8ee-b2f1-4e0a-bc52-079e21cd82e5; machine_identifier=iPMz9IDjV1EHrs95VwiOjwS8WSTcudd1mvsV1B9tJyemvwVGxyQ8OuXhTlHiAqRXaIU%3D; private_machine_identifier=waPISHpZbES7fjaKZvQGGxn8TyfRz4DWMjbfa2VlVlURwVS57prq0nz%2FzrqPiCn2DZM%3D; stripe.csrf=yKujl8BvgY2Ok8gqrH2wPkW48IQnobiiq8jC7sC6fyPB_UgB6Ssnnm6yK1DuUpLVkvJXGUfx0q7FtWRHS_NBUjw-AYTZVJzfQr7nK4V4ngdquepwauS3Ib1KnCgiOob_5SIon93JYA%3D%3D'
--data-urlencode 'external_account%5Baccount_number%5D=000999999991'
--data-urlencode 'external_account%5Brouting_number%5D=111000025'
--data-urlencode 'external_account%5Bindividual%5D=individual'
--data-urlencode 'external_account%5Baccount_holder_name%5D=Jane Austen'
--data-urlencode 'external_account%5Bcurrency%5D=aud'
You can see the parameters there that you need
account_number, country, currency, and object
If you would like a call then you can reach out to our Support team via https://support.stripe.com/contact/login
you are also from stripe can you fix call on behalf of me
No, sorry, I can't write your code for you.
In your request above you are missing setting object: 'bank_account' based on the error
So you need to adjust your request to do that
It would look something like: --data-urlencode 'external_account%5Bobject%5D=bank_account'
{
"error": {
"code": "routing_number_invalid",
"doc_url": "https://stripe.com/docs/error-codes/routing-number-invalid",
"message": "Invalid routing number for AU. The number must contain both the bank code and the branch code, and should be in the format xxxxxx.",
"param": "external_account[routing_number]",
"request_log_url": "https://dashboard.stripe.com/acct_1PTjKFDHBlzBIowH/test/logs/req_g1Z6nvAgZzqlV9?t=1718891027",
"type": "invalid_request_error"
}
}
please give testing routing number
this issue has been resolved now just 2 points left
please help
to activate the account we need to complete a point
Account application missing
This account has not finished submitting their application. Please ask the account to complete onboarding.
You are asking how to activate a Custom Connected Account?
You would follow https://docs.stripe.com/connect/custom-accounts which talks about sending them through Connect Onboarding
That is the easiest way
In test mode you use the data we provide at https://docs.stripe.com/connect/testing to activate the account
ok i am just go through the documentation
๐