#Matty

1 messages ยท Page 1 of 1 (latest)

fluid mulchBOT
narrow sail
#

Hi ๐Ÿ‘‹

Do you have an example Subscription that you can share the ID for? That will let me take a look.

mental yoke
#

Hi @narrow sail ! Thanks:
sub_1KaOOWBBamLIIR3ZqsRFChuH

#

I am getting the sub information back via the Sub List call.

narrow sail
#

What do you mean by "charges that will occur in the future"? All subscriptions are ongoing unless explicitly canceled

mental yoke
#

We use the "cancel_at" date for setting up subs. This causes them to stop charging after a certain period of time. Here is one that ends on Mar 5 so it has no further invoices:
sub_1MS7YfBBamLIIR3Z4VY6GsWy

narrow sail
#

In that case the best way to determine if there will be future charges would be to compare the current_period_end and cancel_on_date values. If they are the same then there will be no future charges but if the Sub cancels after the current period end there will be charges in the future.

mental yoke
#

Beautiful!!! That's super easy. Thank you!

#

I just tested that logic and it works. Love it. Have a great day.

narrow sail
#

Happy to help ๐Ÿ™‚

mental yoke
#

If I am calling the sub update and I want to not have any further charges, should I just set cancel_at_period_end?

narrow sail
#

That will do exactly what you are looking for, yes.

#

It will cancel the sub at the current_period_end time

mental yoke
#

Sweet. Again... thank you for your time.