#fobor10362-invoice
1 messages · Page 1 of 1 (latest)
hello @nimble owl, have you tried creating a Invoice from https://dashboard.stripe.com/test/invoices?
I can't it says I have to activate my email to do it and I don't want to I am in test mode only
All I want to do is create an outstanding open invoice
you would need to activate / verify your email. There's no other way i'm afraid
There is a way I did it the other day
But of course I forgot
maybe it was with a test card of some kind or i just waited for the scheduled subscription to complete and i prorated it
If I could do it programmatically right away that would be better
if you wanted to do it programmatically, then you need to create an invoice_item for the customer first : https://stripe.com/docs/api/invoiceitems/create.
after which, create an invoice for that specific customer
ok i will try hold on
how do i reference the invoice item inside the invoice?
stripe.InvoiceItem.create then stripe.Invoice.create?
But how exactly?
you don't need to reference the invoice item in the invoice. When creating an invoice, it will "pull" any pending invoice items on the customers
it'll automatically finalize in ~ 1 hour. If you want to speed things up, then you can use the relevant API calls : https://stripe.com/docs/invoicing/integration/workflow-transitions
i.e. in your case, it would be https://stripe.com/docs/api/invoices/finalize
you're welcome 😃