#jarcher
1 messages · Page 1 of 1 (latest)
Hi, just to confirm that we are on the same page. Are you asking how you'd show automatic retries on your UI?
I'd like to show this whole timeline of events
created
finalized
failed
Failed again
Will try again
Or in the happy path case:
I see, you can look at the invoice and with retries, it would send the timeline for when the next attempt will be made: https://stripe.com/docs/api/invoices/object#invoice_object-next_payment_attempt
Is that what you're looking for?
what about this history of retries?
I think you could list, https://stripe.com/docs/api/events/list this https://stripe.com/docs/api/events/types#event_types-charge.failed event.
that api would give me all failed charges, is there a way to only filter for events for just one in_id ?
There is not I'm afraid, you'd need to swift through the response on your end to filter it by the invoice id
got it -- any insight into how Stripe is doing this efficiently?
What do you mean by this?
Like the Stripe dashboard does this really well, surely the engineers at stripe are building this timeline in an efficient way (not querying ALL events). How are they doing it?