#rarcif
1 messages · Page 1 of 1 (latest)
Hello
Hi
You pass that as part of the options for the request
ok so for example
const upload = await stripe.files.create({
file: {
data: fp,
name: 'file.jpg',
type: 'application/octet-stream',
},
{ stripeAccount: stripeAccountId },
purpose: 'dispute_evidence',
});
I'll be back in 3 min
Should just be const upload = await stripe.files.create({ file: { data: fp, name: 'file.jpg', type: 'application/octet-stream', }, purpose: 'dispute_evidence', stripeAccount: stripeAccountId }); for that
ok sounds good. Imma test this out
Sorry moving too quickly
It is const upload = await stripe.files.create({ file: { data: fp, name: 'file.jpg', type: 'application/octet-stream', }, purpose: 'dispute_evidence',}, { stripeAccount: stripeAccountId });
yeah that would have been my understanding as well. So the two objects are separated.
Yeah, the initial is the param arguments object and the second object is your options object
allrigthy, and where do I find the document after upload? I mean where exactly in the stripe connect profile of the user?
I guess in the API logs
Yeah not sure exactly what you mean