#hiru99-connect
1 messages ยท Page 1 of 1 (latest)
hi! it's this field : https://stripe.com/docs/api/accounts/create#create_account-documents-bank_account_ownership_verification-files. What part specifically are you having difficulty with?
I want to upload this document through API, How to upload in stripe connect custom account creation API?
the first step is to use https://stripe.com/docs/api/files/create to upload a file from your server to Stripe. In test mode I believe you want to save this file(https://d37ugbyn3rpeym.cloudfront.net/docs/identity/success.png) to your server and then use that API to upload it. That returns an object with an ID file_xxx and that's what you pass to the Account creation API.
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!
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.
That's the wrong parameter: https://stripe.com/docs/api/accounts/create#create_account-documents-bank_account_ownership_verification
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
documents.bank_acocunt_ownership_verification
How can I set the parameter in above code ? can you share some demo of code ?
stripe.accounts.create({
documents: {
bank_account_ownership_verification: {
files: [ backFront.id ]
}
}
})
i uploaded document in bank_account_ownership_verification. but stripe still wants the document. so what should I do now?
Which document did you use?
.png file
Can you share the ID (req_xxx) of the failing API request? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Or in this case the API request to create the account
req_hBOYidnL3Q7ABi
HI ๐ jumping in as my teammate needs to step away.
Hi