#ThisIsJustin

1 messages · Page 1 of 1 (latest)

safe acornBOT
foggy mirage
#

This depends on whether you plan to scale or not.

If you are going to scale up then you'll likely want to listen to webhooks and update local data. You would then check against your local data to validate your users subscription status.

But if you don't think this is going to scale up much so API rate limits won't be an issue then you can query the API each time a user logs in

clear tiger
#

Are there docs to show what the API call looks like. That is the part I couldn't find.

#

Also, what event should the webhook be watching for?

#

Im guessing there are a few events I would have to listen for.

foggy mirage
#

You would listen to customer.subscription.updated to get notified of any change to a customer subscription

clear tiger
#

Awesome. Thank you!

#

Thanks for the quick response too.