Re: Pending invoice problem

224 views
Skip to first unread message
Message has been deleted

Amanda Lee

unread,
Nov 15, 2021, 10:02:11 PM11/15/21
to Stripe API Discussion, poojith...@gmail.com

Hi Poojitha, 

We recommend using `pending_invoice_item_interval` if your integration frequently creates one-off Invoice items for your Subscriptions and you want these to be invoiced at a more frequent/regular rate (you don’t want to wait until the next Invoice is naturally created or have to manually make a request to create the Invoice yourself). If you have a yearly Subscription and you expect to create one-off Invoice Items throughout the year, you can update the Subscription with `pending_invoice_item_interval[interval]: monthly` to regularly Invoice any pending Invoice Items every month. Otherwise, you would have to wait until the next Invoice is created for the Subscription (through the natural billing cycle, or through certain Subscription updates) or until you manually generate a new Invoice through the API for the Customer or Subscription.

If you just want to update a Subscription and immediately create an Invoice to reflect the changes, you can do so without setting `pending_invoice_item_interval`. As an example, imagine you have a Subscription that has a single $5 monthly recurring price with `quantity: 1`. When you update the Subscription from quantity 1 -> 2 with `proration_behavior: always_invoice`, that will immediately create a new Invoice with two line items:

  • A debit line item for the remaining time on the $10 ($5 * 2) price from the current time to the end of the billing period

  • A credit line item for any unused time on the $5 price from the current time to the end of of the billing period    

You can also preview what this Invoice would look like through the Upcoming Invoice API, by making sure to set `subscription_proration_behavior: always_invoice` and `subscription_items[0]` to reflect the update you want to make.

I hope this helps! If you have any other questions feel free to ask the folks at Support (https://support.stripe.com/contact). 

Amanda



On Monday, November 15, 2021 at 9:34:52 AM UTC-8 poojith...@gmail.com wrote:
Hi there, 

In our application I am trying to update subscription quantity by setting pending_invoice_item_interval to "day" When I am trying to retrieve  the upcoming invoice by updating subscription plan I am not able to see pending invoices .Can someone help me to sort this out ?

I am trying to retrieve the upcoming invoice by setting subscription_proration_behavior to 'always_invoice',subscription_proration_date.


Thanks,
Poojitha Miryala


Reply all
Reply to author
Forward
0 new messages