#patrickhowonk_17393_66278
1 messages · Page 1 of 1 (latest)
Where did you see this error?
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
acct_1NUkPgKdvIU0wzJd is not connected to any platform. Only a connected account can use Stripe-Account header
how to use this
Can you share what you're trying to do?
Which account does this secret key belong to?
this key is mine
Stripe-Account header can only be used if your account is a platform and account ID in Stripe-Account is connected to it
this key is to me
Can you share your account ID? You can find your account ID by logging in to https://dashboard.stripe.com/settings/account. It'll be in the upper right hand corner and looks like acct_123
acct_1NSl73F1SjbZrcb8
In https://dashboard.stripe.com/test/connect/accounts/overview, there is no connected account. The connected account has to be created before proceeding with the billing/payment.
Connect product should be used. You may refer to more details here: https://stripe.com/docs/connect/explore-connect-guide
how to create an invoice from another stripe account?
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
but if the user already has an account
Then you can use OAuth to connect the existing account: https://stripe.com/docs/connect/oauth-standard-accounts