#patrickhowonk_17393_66278

1 messages · Page 1 of 1 (latest)

delicate summitBOT
mortal pebble
#

Where did you see this error?

minor vault
#

await stripe.invoices.create({
customer: customer.id,
collection_method: 'send_invoice',
metadata:{
proposition:req.body.idProposition,
facture: numero
},
days_until_due: 30,
},
{
stripeAccount: 'acct_1NUkPgKdvIU0wzJd',
}
)

#

this is my code

mortal pebble
#

acct_1NUkPgKdvIU0wzJd is not connected to any platform. Only a connected account can use Stripe-Account header

minor vault
#

how to use this

mortal pebble
#

Can you share what you're trying to do?

#

Which account does this secret key belong to?

minor vault
#

this key is mine

mortal pebble
#

Stripe-Account header can only be used if your account is a platform and account ID in Stripe-Account is connected to it

minor vault
#

this key is to me

mortal pebble
minor vault
#

acct_1NSl73F1SjbZrcb8

mortal pebble
minor vault
#

how to create an invoice from another stripe account?

mortal pebble
#

You have to create the connected account first, then create the invoice

#

It's not possible to access another Stripe account without connecting to a platform

#

The doc above provide guide about creating a connected account

minor vault
#

but if the user already has an account

mortal pebble