#lucas9886

1 messages ยท Page 1 of 1 (latest)

outer sorrelBOT
digital junco
#

is there any way i can automatically sidestep that 0 dollar invoice in this call
Can you describe what you'd want to happen instead?

#

The latest invoice is a single invoice, you can't have it return some other invoice

limpid current
#

yeah - "the latest invoice that isnt a trial invoice"

we put subscriptions into and take them out of trial as that is the only way to move the next recurrence date, so what we've seen is when a subscription that isnt in trial moves into trial, stripe spits out a 0 dollar invoice - probably an artifact of trying to draw a line in the sand for proration, but no proration is needed/intended here

digital junco
#

Gotcha, so, no you can't do what you're asking

#

I will point out there's a more elegant way to shift billing cycle dates to avoid these trial invoices you should test out:

#

YOu can use subscription schedules to set a future phase that resets the billing cycle at start

limpid current
#

i went very deep down the subscription schedule rabbit hole and it ultimately did not work for our use case ๐Ÿ˜ข happy to explain further

digital junco
#

Ah, gotcha, sorry to hear that

limpid current
#

no worries, ill go with a filtering method instead. thank you

#

see you back in neo tokyo

digital junco
#

๐Ÿค˜

outer sorrelBOT
limpid current
#

i actually didnt quite remember why they didnt work but i left these notes. just in case its helpful ๐Ÿ™‚

Specifically, they do not successfully push out the next upcoming invoice, its basically
min(first_phase_end, natural_recurrence)```

so yeah i think - moving the next FORWARD was fine, but pushing the next OUT would still invoice on the subscriptions natural recurrence with the phase strategy we had set up. 

anywho, im all set, no need to reply
digital junco
#

NP -- hope that helps or at least confirms no easier way to achieve this currently ๐Ÿ‘