#Alex Rodriguez
1 messages · Page 1 of 1 (latest)
Hi there!
You could use this API endpoint to list the events you are interested in https://stripe.com/docs/api/events/list
But you cannot pass a PaymentIntent ID there
But limited to 30 days also right?
ok thanks, I don't think that really gives us a lot to work with
Hello, I think there is actually a way to do this with that endpoint
Try running it and pass the paramterer object_id=pi_123456..., that should list events related to that intent
Though I think that that might only be events directly related to the payment intent, ie payment_intent.* events. For other ones like charge.* I think you would need to make other list calls
ok thanks, I'll try that one. Is there any way to overcome 30 day limit? Even if it involves paying more..
Unfortunately not, the data is actually deleted beyond that point. For that you would have to save the relevant event data in your own DB and look it up there
cool thanks all 🙂
I just tried and it works like magic, please document this in your API reference
Will put in that feedback. Not sure why it isn't there already