#neto-invoice-schedule
1 messages ยท Page 1 of 1 (latest)
neto-invoice-schedule
@true bloom you can create an Invoice, finalize it but set auto_advance: false and then later on the day of the payment call https://stripe.com/docs/api/invoices/pay
yeah, but I'm looking for a way to avoid making a call on the day of the payment...
Perhaps adding some extra price to an upcoming invoice ?
that's not really possible
or some way of attaching the new invoice pay date to the billing cycle anchor of a subscription ?
the both invoice get charge at the same time ...
๐ what are you really trying to do? because you talked about an Invoice and now you talk about a Subscription
hehehe yeah, sorry for the confusion ...
Give me sec, I will write down the explanation better. --- part of the goal is in this thread :
https://discord.com/channels/841573134531821608/841573134531821616/threads/1082711428848435200
yeah just a 2 sentences summary is good enough for me. The more words you write, the more likely it is that we confuse each other
is it to much to ask if you can take a look to that thread ?
That pretty much laid down how I got to this point
yeah I skimmed it but there are so much words and I have no idea what you mean unfortunately. Really almost every single ask can be summarized in 2 sentences: Who pays what now, who pays what in the future. Just give me one concrete example of a payment flow and I'll solve it for you
got it. that make sense. let me put it together
really don't spend long on it. write fast, just one small example and then I will ask questions to probe at it. If you spend more than 2 minutes writing, you will likely have lost me already
Discord calmed down so I'm re-reading the thread in the meantime
we have an application with contracts linked with Stripe subscriptions.
Contact/subscriptions #1
Start Date: 10/08/2022
End Date : null
Next Invoice (Bill Date) : 03/08/2023
We change the billing cycle anchor of that sub using trial to 03/18/2023
we still want to charge for those 10 days difference creating another invoice/charge or whatever tool we might have on the next billing cycle of that subscription which now is going to be the 03/18/2023
yeah, sorry for the slow writing , English is not my first language...
all good, not mine either ๐
So really all you want is to ensure that on March 18 they pay the extra 10 days?
hehe sweet
yeah, that is the goal, to make sure they pay for those 10 days( in thise case) of difference
but on March 18?
yeah, on March 18... so they get it at the sime time as the next invoice/upcoming invoice
Cool so all you need to do is create an InvoiceItem yourself for the amount owed for those 10 days via https://stripe.com/docs/api/invoiceitems/create and passing the right info + customer + subscription. And then magically on March 18 when the trial hack you use ends, a new Invoice will be created for the new cycle's amount and that will pull in the pending InvoiceItem for the extra 10 days automatically for you
Interesting I will give it a try , thanks!
will that invoiceitem be display on the upcoming invoice page on the Stripe dashboard ?
yes
let me know if that doesn't work, you should be able to test this in a few minutes in Test mode
yeah, it work perfectly!!, thanks again!