#hiru99-connect

1 messages ยท Page 1 of 1 (latest)

somber geyser
cyan hornet
#

I want to upload this document through API, How to upload in stripe connect custom account creation API?

somber geyser
real bloom
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!

cyan hornet
#

const account = await stripe.accounts.create({
type: "custom",
country: "US",
business_type: "individual",
capabilities: {
card_payments: { requested: true },
transfers: { requested: true },
},
external_account: bankToken.id,
tos_acceptance: {
date: Math.round(new Date().getTime() / 1000),
ip: ip,
},
business_profile: {
mcc: 7623,
url: "https://filed.com",
},
individual: {
first_name: "helol",
last_name: "patel",
email: "dpdp@mailinator.com",
phone: "+13187459467",
id_number: "123456789",
dob: {
day: 1,
month: 1,
year: 1901,
},
address: {
city: "Fairbanks",
country: "US",
line1: "919 Stimple Ct",
line2: "Stimple Ct",
postal_code: "99712",
state: "Alaska",
},
verification: {
document: { front: fileFront.id, back: fileBack.id },
},
bank_account_ownership_verification: {
document: { front: bankFront.id, back: bankBack.id },
},
},
});

#

if we want to upload an identity document so we use the verfication object in stripe account creation api and send document in this.
so for uploading bank_account_ownership_verification document so which object we type in account creation api.

if i write as same as above then they give me error so please check and update me asps.

real bloom
#

documents.bank_acocunt_ownership_verification

cyan hornet
#

How can I set the parameter in above code ? can you share some demo of code ?

real bloom
#
stripe.accounts.create({
  documents: {
    bank_account_ownership_verification: {
      files: [ backFront.id ]
    }
  }
})
cyan hornet
#

i uploaded document in bank_account_ownership_verification. but stripe still wants the document. so what should I do now?

real bloom
#

Which document did you use?

cyan hornet
#

.png file

real bloom
#

Or in this case the API request to create the account

cyan hornet
#

req_hBOYidnL3Q7ABi

marsh lily
#

HI ๐Ÿ‘‹ jumping in as my teammate needs to step away.

cyan hornet
#

Hi

pearl rapids
#

Hello ๐Ÿ‘‹
Taking over here as the server got a little busy

#

It could've been an issue with the file attached for the bank verification
I see you were able to create few new accounts successfully.