#sandeepdil

1 messages ยท Page 1 of 1 (latest)

prisma horizonBOT
dull lake
#

Hi there!

clever sphinx
#

hi

dull lake
#

I'm not sure I understand your question. Can you share more context on what you are trying to do and what is the issue?

clever sphinx
#

"external_account.documents.bank_account_ownership_verification.files " will have array of file ids or string

prisma horizonBOT
clever sphinx
#

i have to attach file ids with api params ...

external_account.documents.bank_account_ownership_verification.files

will be an array or file ids or string or comma separated

#

i tried with array

external_account.documents.bank_account_ownership_verification.files = ['file_exampleID']

but not working

#

please assist !

narrow mural
#

Hello ๐Ÿ‘‹
Taking over as soma needs to step away

clever sphinx
#

hi

#

can you please help me over it ?

#

i need to attach bank verification document with stripe.accounts.create api

narrow mural
#

Is that a specific guide you're following for this flow?

clever sphinx
#

i do follow same as given in the stripe documents

narrow mural
#

which one? Can you share the link?

clever sphinx
#

everything is working only bank document file id is not getting attached with api params

#

sharing my code :

#

only problem in
external_account.documents.bank_account_ownership_verification.files

narrow mural
#

There are a few different ways to perform ownership verification. One uses hosted flow

https://stripe.com/docs/connect/payouts-bank-accounts?bank-account-collection-integration=prebuilt-web-form&bank-account-collection-method=financial-connections

And the other is directly using the API
https://stripe.com/docs/connect/payouts-bank-accounts?bank-account-collection-integration=direct-api&bank-account-collection-method=financial-connections

Just want to make sure that you are aware about the hosted flow but still want to use the API approach here?

clever sphinx
#

with api

#

i want to attached file with stripe.accounts.create() api in nodejs

#

account creation is working file only documents is not getting attached with external bank in "stripe.accounts.create"

#

i have shared my code... please assist where is the mistake in external_account document file id attachment

narrow mural
#

Gotcha. When you run the above code, what response do you see?

clever sphinx
#

req_02P3hspNOgstJE

#

StripeAPIError: An unknown error occurred

#

if i do comment "external_account.documents.bank_account_ownership_verification.files" starts working but thn i have to add bank document manually from stripe dashboard

narrow mural
#

it seems like you're passing an array to files

What happens if you only pass the file ID as a string?

clever sphinx
#

file ID as string

req_PQHMRYggYfoixy

StripeAPIError: An unknown error occurred

#

same error

narrow mural
#

Interesting... looking to see if there's anything obvious I am missing here

clever sphinx
#

ok please assist...

narrow mural
#

In the code that you've shared above, you're setting string like

clever sphinx
#

bank_account_ownership_verification : {
files : [bankDetail.rows[0].bank_identification_doc_id]
}

#

for array

narrow mural
#

Gotcha. Thanks

clever sphinx
#

so any solution on it ?

narrow mural
#

We're looking into it, the API shouldn't be returning an error with the array as thats the expected datatype.

clever sphinx
#

hummm... so will it take time to get solution on it ?

narrow mural
#

Yeah I've asked a colleague to look into it as well, if it is a bug with the API then we'll need to loop in our product team that maintains the API for this feature.

#

Appreciate your patience

clever sphinx
#

ok... please check on it and keep this thread open for some time so i can get update on it

prisma horizonBOT
prisma sun
#

Hey apologies this is still taking a bit. I've been looking to see if this call was previously working with this or if this has been the base as far back as I can see. Changes how to file the bug report

#

If you want you can write in to support and I can grab the ticket and get back to you with progress. The fix will likely take longer than we want to keep this chat open https://support.stripe.com/?contact=true

prisma horizonBOT
prisma sun
#

I'm going to close this thread for now. If you want to follow the fix you can reach out through that support form, if you give your code and a description of the errors and mention that you were talking to Pompey on Discord, it should get directed to me.