#yesmeno

1 messages · Page 1 of 1 (latest)

half capeBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

feral sedge
#

Hello

#

Yes customer.subscription.updated is reliable for this.

#

Ordering of webhooks is not guaranteed, so when you create a Subscription it is possible that you might receive the customer.subscription.updated Event prior to the customer.subscription.created

#

But yeah, if the status is active within customer.subscription.updated then you should provision

native hedge
#

Thanks @feral sedge ! I think it would help if this was added to the docs.

So I would need to check if the status is trialing, active or past_due to see if the subscription is active, right?

feral sedge
#

If what was added to the docs?

#

This is all in the docs already 🙂

native hedge
#

The fact that customer.subscription.updated fires every time. It isn't clear to me (from the docs) that this event also fires when a subscription is created for example.

feral sedge
#

Yes those are the statuses you would want.

#

It doesn't fire when it is created

#

It fires when anything changes

#

Which oftentimes happens immediately upon creation -- that depends on your integration flow

native hedge
#

Ah ok... because I think I also didn't get an update event when the subscription was cancelled just now when testing this. Is this possible?

feral sedge
#

Depends really

#

If you provide specific example Subscription IDs then I can take a look

#

But otherwise there are a lot of variables at play

native hedge
#

evt_1OgUdLJc1k5apP36SatddnnK

#

So this was the deleted event for example

#

And it wasn't accompanied by an update event

#

Ok. so I should still listen to all these events to be safe then