#NO ONE - identity docs

1 messages · Page 1 of 1 (latest)

minor sluice
#

I wish I could help, but this chat is focused on developers and technical questions. WE don't really handle identity verification. Our support team will be able to assist you better than I can: https://support.stripe.com/contact/email

copper flame
#

I am trying it through api

#

@minor sluice

minor sluice
#

I don't think that will work but have you been successful when testing?

copper flame
minor sluice
#

I am pretty sure it needs to be an in-memory file object that is transmitted in the POST request

copper flame
#

coz it is throwing me error that no such file or path exist

minor sluice
#

Yeah. It's expecting a file

copper flame
#

any other way I can achieve this coz I need to automate this verification process

#

@minor sluice

minor sluice
#

Can you show me the API call you are making, with the parameters you are passing in?

copper flame
#

I cant show you that but just consider I am passing an image link instead of path inside fs.ReadFileSync

#

const stripe = require('stripe')(..);

const fs = require('fs');
const file = await stripe.files.create({
purpose: 'identity_document',
file: {

data: fs.readFileSync('***HERE I AM PASSING A LINK***),
name: 'file_name.jpg',
type: 'application/octet-stream',

},
}, {
stripeAccount: '{{CONNECTED_STRIPE_ACCOUNT_ID}}',
});

minor sluice
copper flame
#

I think this also similar api but still I will check