#GiovanniV - invoice without changing cycle

1 messages · Page 1 of 1 (latest)

magic ivy
#

Hello, I think this should be possible some way by just making the create an invoice call. By default it should be able to pick up any existing invoice items without affecting their original subscription https://stripe.com/docs/api/invoices/create

#

Wait I may be misunderstanding your question. You are talking about doing a standard update to a subscription that would not change the billing cycle and you want to invoice for that immediately for that?

quick crow
#

yes correct

magic ivy
#

Gotcha. Have you already tested passing in a proration_behavior of always_invoice ? I don't think that that should change the billing cycle by itself. If you have already tested that, would you mind sending me the request ID from when an update like that changed the billing cycle?

quick crow
#

That’s another good idea.
I’m more just thinking through options right now.
In the particular use case I’m thinking through, it probably makes more sense to change the billing cycle anchor — example: customer wants to trigger annual renewal before end of year, but invoice isn’t upcoming until, say, 1/3. In that case, just changing the billing cycle makes most sense.
The other scenarios I’m thinking through largely involve refunds. I might actually start another thread for that q.

magic ivy
#

We can keep that discussion here as well. So you essentially want to let the user pay for another year before their first year is actually up?

quick crow
#

yes thats one scenario

magic ivy
#

Gotcha. Can you tell me a bit about your refund scenarios too?

#

Trying to think of whether there is a good way to do this.

quick crow
#

In that particular use case yes. Seems billing_cycle_anchor: ‘now’ will work well for that, correct?

storm belfry
#

no it wouldn't

#

if you pass that parameter you change the billing cycle completely and you said earlier you don't want that

storm belfry
#

@quick crow did that make sense? Do you have more questions?

quick crow
#

Yes , in this particular use-case i think it’s ok to do
there could potentially be other use cases where we want to trigger a one-off invoice. in that case i think your suggestion to do invoices create should work. Thank you very much

storm belfry
#

awesome glad you got the help you needed!