#Mael CHEMLA
1 messages · Page 1 of 1 (latest)
Hi 👋
That sounds like the API request is occurring on the wrong account. Are you using the Secret key for the that account or a Connected Account?
Oh ! I should use impersonate maybe ?
I mean to add the stripeAcountId of the connectedAccount
const invoice = await this.stripe.invoices.sendInvoice(invoiceId, {
stripeAccount: stripeAccountId,
});
like that
I try to send an invoice from a connectedAccount to his customer
Was the invoice created on that account?
yes
It looks like it was a Direct charge so the Invoice exists on the Connected account
https://dashboard.stripe.com/test/logs/req_NMDoR5bX9hjxlh
It's ok It work ! I just need to change the collection_method of the invoice now
So any request that involves that invoice needs to be made with the stripe account header for that connected account