#jaketoolson
1 messages · Page 1 of 1 (latest)
Hi, there is not an option to only prorate specific line items.
I'm thinking that I need to probably create a price that is "pre-prorated" and then after the billing cycle, remove it and add the intended full price
when I call "update subscription" and add the new item with the temporary pro-rated price, should I use add_invoice_items and add the full price to the line item so that the next cycle has the full priced item?
I would need to delete the original line item with the pro-rated price, otherwise I would have 2 line items moving forward into the next billing cycle right? 1 with the pro-rated price and the 2nd with the full price
or maybe I can apply a coupon and avoid the multiple prices...
Yes, you can do, https://stripe.com/docs/api/subscriptions/update#update_subscription-add_invoice_items and it will add the invoice line item to the next invoice for the subscription. Or you can create an invoice item: https://stripe.com/docs/billing/invoices/subscription#adding-upcoming-invoice-items
I think using a coupon to apply the "pro-ration" I'm looking for on a line-item basis may work also
and a coupon may require less "code" on my end to ensure billing is correct
SO MANY OPTIONS!!! haha.
thank you for your help it's allowed me to throw my ideas out there based on my week of coding and trying various things to meet our needs.
you've helped solve a lot.