#glenlivette - subscription updates

1 messages · Page 1 of 1 (latest)

rancid osprey
#

Do you currently have a webhook endpoint set up?

hearty bear
#

No I do not

rancid osprey
hearty bear
#

ah ok so this is a use case

rancid osprey
#

Exactly. If you set up an endpoint, we will send you events when things happen on your account

#

In this case you are interested in the subscription based webhook events. I think we have a doc specifically on those

hearty bear
#

so the webhook url will just be my server endpoint

rancid osprey
#

Yes

hearty bear
#

oh this is lovely

#

thankyou

rancid osprey
hearty bear
#

I will look into that

#

But I am wondering. What is the event for "this customer has paid the invoice, theyre good again keep their services running"

#

because i see "subscription_schedule.canceled", "customer.subscription.deleted" which are enough for me to know that I should not provide them access to services im charging for

#

but I cant find an event for "they paid all invoices for this subscription, theyre good now"

#

And how do I set "cancel subscription after x days" programmatically with node.js?

storm sail
#

invoice.paid is the event

#

As for "cancel after X days" it depends a bit what you mean by that

hearty bear
#

yes sorry

#

I mean in regards to after retries

#

like how do I set the amount of retries after failed credit card charges and days

#

days to cancel after no successful CC charges for last invoice

#

just want to really control when Im updating my database as to when I shouldnt honor a users usage of my app

#

dunning -> cancellation

storm sail
hearty bear
#

incredible

#

And this applies to all subscriptions created on my account?

storm sail
#

yes!