#Mael CHEMLA

1 messages · Page 1 of 1 (latest)

quiet galleonBOT
errant coral
#

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?

vocal narwhal
#

Oh ! I should use impersonate maybe ?

errant coral
#

I'm not sure what you mean by that

#

What are you trying to do?

vocal narwhal
#

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

errant coral
#

Was the invoice created on that account?

vocal narwhal
#

yes

errant coral
vocal narwhal
#

It's ok It work ! I just need to change the collection_method of the invoice now

errant coral
#

So any request that involves that invoice needs to be made with the stripe account header for that connected account