#Matty
1 messages ยท Page 1 of 1 (latest)
Hi ๐
Do you have an example Subscription that you can share the ID for? That will let me take a look.
Hi @narrow sail ! Thanks:
sub_1KaOOWBBamLIIR3ZqsRFChuH
I am getting the sub information back via the Sub List call.
What do you mean by "charges that will occur in the future"? All subscriptions are ongoing unless explicitly canceled
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
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.
Beautiful!!! That's super easy. Thank you!
I just tested that logic and it works. Love it. Have a great day.
Happy to help ๐
If I am calling the sub update and I want to not have any further charges, should I just set cancel_at_period_end?
That will do exactly what you are looking for, yes.
It will cancel the sub at the current_period_end time
Sweet. Again... thank you for your time.