#Tirth Joshi
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
You can listen to the invoice.created events and add InvoiceItems to that Invoice before it finalizes.
you mean
The first payment for my subscription is on the checkout page.
In my next cycle, I want to add an additional amount to my existing subscription.
That time, I want to catch the invoice. created events and added invoice items to that invoice.
Could you please share any links and documentation for that?
Do you want to do a one-off addon? Or upgrade the monthly amount?
No, I don't want to upgrade the monthly amount; I want to add additional charges to the customer's subscription amount.
👋 stepping in here as vanya needs to step away
We don't really have a doc of how to do this exactly but you already described what you need to do. You listen for invoice.created and then you create an Invoice Item (https://stripe.com/docs/api/invoiceitems/create) which will then be picked up by the finalized Invoice.
But how can we merge the new invoice with the subscription invoice?
In this scenario you are just adding an extra item to the current Invoice
Not creating a new Invoice
How can I do that? Could you please send the URL for that?