#arvindkgs
1 messages · Page 1 of 1 (latest)
Since you have set the billing interval on the price, you don't have to set in Subscriptions Creation API. Subscription API will pick up the interval from the prices
Okay, what is the use of pending_invoice_item_interval then?
I tried setting price to one that is recurring monthly, but subscription[pending_invoice_item_interval] is set to half-yearly. It fails with "When set, the pending_invoice_item_interval must be more frequent than the natural subscription interval."
You can add one-off invoice item onto the customers any time. pending_invoice_item_interval means how long you are going to pick up those one-off pending items and charge to the customers in the subscription invoices.
You may refer to this doc for more details: https://stripe.com/docs/billing/invoices/subscription#adding-upcoming-invoice-items
If you don't have one-off invoice item, pending_invoice_item_interval doesn't need to be used
Got it. pending_invoice_item_interval sounds like the range/window of duration it combines all existing one-off invoice items. I assume the default for this is just upcoming invoice