#alok_api

1 messages ยท Page 1 of 1 (latest)

junior mulchBOT
#

๐Ÿ‘‹ 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.

wintry vault
#

are you a bot ?

split perch
#

No, are you?

wintry vault
#

no

#

hi

#

@split perch may please help me i am stuck in a issue ?

split perch
#

To answer your question, how are you onboarding users to your platform? Are you using our hosted UI?

wintry vault
#

no

junior mulchBOT
wintry vault
#

i am onboarding the user via api calls

signal solar
#

Basically, you have an issue setting up the external account via API for your new connected account, correct?

wintry vault
#

yes

#

are you their ?

signal solar
#

Yes, sorry for the delay.

wintry vault
#

{
"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"
}
}

Learn more about error codes and how to resolve them.

signal solar
#

Where did you get this ID from? btok_xxx

wintry vault
#

i just copy the curl request

#

i don't have have this id

signal solar
signal solar
#

@wintry vault please post in this thread

wintry vault
#

@signal solar may you please come our meet call to solve this issue ASAP. I really appreciate your effort

signal solar
#

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.

signal solar
wintry vault
#

please share the api doc for it

signal solar
#

I did, above.

wintry vault
#

i create but it needs external_account token

#

how i get this token

signal solar
#

My team doesn't do calls, sorry.

wintry vault
#

ok

#

i create but it needs external_account token
how i get this token

wintry vault
#

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"
}
}

Learn more about error codes and how to resolve them.

signal solar
#

Are you providing the number in

{
  external_account: {
     account_number: "..."
  }
}

?

placid lilyBOT
wintry vault
#

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

signal solar
#

Fine, my point was that you are likely sending the value in the wrong field.

#

Are you using cURL for this?

wintry vault
#

yes

#

may please provide the correct curl request then

signal solar
#
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

wintry vault
#

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"
}
}

tired pendant
#

๐Ÿ‘‹ stepping in as vanya needed to step away

wintry vault
#

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'

tired pendant
#

You can see the parameters there that you need

#

account_number, country, currency, and object

wintry vault
#

alread set

#

can you fix a call with any resposible person from stripe team

tired pendant
wintry vault
#

you are also from stripe can you fix call on behalf of me

tired pendant
#

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'

wintry vault
#

{
"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

Learn more about error codes and how to resolve them.

tired pendant
#

You want 110000 for the routing

#

Looks like you have too many 0s

wintry vault
#

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.

tired pendant
#

You are asking how to activate a Custom Connected Account?

#

That is the easiest way

wintry vault
#

ok i am just go through the documentation

tired pendant
#

๐Ÿ‘