#hamza-Connect
1 messages · Page 1 of 1 (latest)
hi.. im trying to create stripe custom connect account for uae , so stripe need passport file, so how do i upload passport file to that create account api
in stipe documentation
Hi! I'm taking over Jack Tan.
Have you tried making an API call? Did you get an error?
If so, can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
the api response is like that , it dont through an error
if you see the requirements.currently_due
Can you please share the request ID? Also, if there's no error, what is the issue?
createObject {
country: 'AE',
email: 'as@add.com',
type: 'custom',
business_type: 'company',
business_profile: {
support_phone: '+971543877816',
url: 'https://sigmads.com/',
mcc: '7299',
product_description: 'asdasd'
},
tos_acceptance: { date: 1647335508, ip: '::1' },
company: {
name: 'asdasd',
structure: 'sole_establishment',
tax_id: '12312da3312ee443',
vat_id: 1231,
executives_provided: true,
address: {
city: 'dubai',
line1: 'asdas',
line2: 'asdasd',
postal_code: '12345',
state: 'AE'
},
verification: { document: [Object] },
phone: '+971543877816'
},
documents: { company_license: { files: [Array] } },
requested_capabilities: [ 'transfers', 'card_payments' ]
}
that data is pass to this api Stripe.accounts.create(createObject, (error, account) => {}
so my main question is how to properly add files in object documents: { company_license: { files: [Array] } ,
I'm not sure to understand your issue. could you share a request ID or an error message?
Also you mentioned in your first message stripe.accounts.create(), but your screenshot of the documentation is for stripe.accounts.createPerson(). So can you clarify exactly what you are trying to do, and the problem you are facing?
Note that uploading a file is a two step process:
- Create a file with https://stripe.com/docs/api/files/create
- Then pass the file ID when you create the connected account or the person
yes as you said its 2 step process , the file will be uploaded via https://files.stripe.com/v1/files , that will return file id and then that file id will be send in stripe.accounts.create(), as a what ever purpose for you uploaded.
yes.. first im creating connect account with the company type , and company also required company_license as a files ,
as in first screen shoot that was for that how can we send a files field in in stripe.accounts.create() ,
Thanks for the clarification. So I checked your platform account, and I can see you recently created a custom account: https://dashboard.stripe.com/test/logs/req_3ApoqPAlqVNrqk
Is this where you are having issues with sending files?
yes
i am haivng issue here
i am sharing request and response objeect
request
{
"country": "AE",
"email": "mailto:as@add.com",
"type": "custom",
"business_type": "company",
"business_profile": {
"support_phone": "+971543877816",
"url": "https://sigmads.com/",
"mcc": "7299",
"product_description": "asdasd"
},
"tos_acceptance": {
"date": "1647335508",
"ip": "::1"
},
"company": {
"name": "asdasd",
"structure": "sole_establishment",
"tax_id": "************",
"vat_id": "",
"executives_provided": "true",
"address": {
"city": "dubai",
"line1": "asdas",
"line2": "asdasd",
"postal_code": "12345",
"state": "AE"
},
"verification": {
"document": {
"front": "file_1KdWPnJGKCM9YwnSNNc0tqej"
}
},
"phone": "+971543877816"
},
"documents": {
"company_license": {
"files": {
"0": "file_1KbhRMJGKCM9YwnS2ZgwNnox",
"1": "file_1KbhRMJGKCM9YwnS2ZgwNnot"
}
}
},
"requested_capabilities": {
"0": "transfers",
"1": "card_payments"
}
}
response
also in the request i am adding the files which were upload on the first request but still in the response they are due
can you please check and let me know
Hey, taking over from @pine quiver here. Can you outline the issue please?
yea.. actually im creating account custom connect account with stripe.accounts.create() api , the account is been created and got response status 200 ,
createObject {
country: 'AE',
email: 'as@add.com',
type: 'custom',
business_type: 'company',
business_profile: {
support_phone: '+971543877816',
url: 'https://sigmads.com/',
mcc: '7299',
product_description: 'asdasd'
},
tos_acceptance: { date: 1647335508, ip: '::1' },
company: {
name: 'asdasd',
structure: 'sole_establishment',
tax_id: '12312da3312ee443',
vat_id: 1231,
executives_provided: true,
address: {
city: 'dubai',
line1: 'asdas',
line2: 'asdasd',
postal_code: '12345',
state: 'AE'
},
verification: { document: [Object] },
phone: '+971543877816'
},
documents: { company_license: { files: [Array] } },
requested_capabilities: [ 'transfers', 'card_payments' ]
}
the object for creating account is that , if you see im sending documents: { company_license: { files: [Array] } ,like that but its still show in requirements due!
You need to work through providing the other requirements, too
Also, the verification process is asynchronous. It's not instantaneous so you the documents won't be verified immediately on creation
You should subscribe to webhooks to listen for updates. See: https://stripe.com/docs/connect/identity-verification-api#verification-process
can you please create curl test request which have documents file like (documents.company_license)
I can't write code for you, no