#H Panseriya
1 messages · Page 1 of 1 (latest)
Hi there!
If the information is still available, then yes it should work. Which information are you talking about?
At present, we do not want to store the data in our system via webhook when some action happens like (payment succeeded).
After some months, we want to store old webhooks data in our system. Can we do it?
If yes how?
You can list past webhook events with this endpoint, but it only works for the last 30 days: https://stripe.com/docs/api/events/list
Another option is to directly list all PaymentIntent with https://stripe.com/docs/api/payment_intents/list
What about for failed events?
The best way is to listen to webhook events.
OK. Is there any another way?
The other way would be to periodically look at all the subscriptions objects and see which ones are not active. https://stripe.com/docs/api/subscriptions/list
But I would really recommend to use webhook for this.