#VxM
1 messages · Page 1 of 1 (latest)
Hi there
Hello!
You want to use Webhooks for this and listen for customer.subscription.updated
Are you familiar with Webhooks?
Push notifs right?
You create a Webhook endpoint either in the Dashboard or via the API.
Then you set up that endpoint on your Server to receive webhooks
You can see code examples for your Server here: https://stripe.com/docs/webhooks/quickstart
Ok, and how can I simulate an event ?
And for subscription that already expired before implementing the webhook, how can I check their status?
You can list Subs via the API to see their status: https://stripe.com/docs/api/subscriptions/list
Or you can look in your Dashboard
And you can test webhooks using the CLI (see: https://stripe.com/docs/webhooks/test)
Oh you can do by ID via: https://stripe.com/docs/api/subscriptions/retrieve
I just thought you wanted to view in bulk
Ok and which part of the response tell me if the subscription is still active ?
tells*
status?
Yep status
This may also be helpful: https://stripe.com/docs/billing/subscriptions/overview#subscription-statuses