#boehmi-dispute-dates
1 messages · Page 1 of 1 (latest)
hey there, you can get this by subscribing to the charge.dispute.closed event on your webhook endpoint:
https://stripe.com/docs/api/events/types?lang=curl#event_types-charge.dispute.closed
Occurs when a dispute is closed and the dispute status changes to lost, warning_closed, or won.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ah alright, so besides catching the event there's no way basically? We have a little statistics tool that works with only the data from the API
no as far as i know that date isn't on the object
if you added a webhook endpoint, you could set that date on the dispute object metadata to let your stats tool access that
set metadata[closed_event_date]={timestamp of event receipt}
then you could get that metadata back from the api
Oh yeah, that sounds like a good idea. That's gonna be all the help I needed, thanks!
excellent, glad i could help!
@modest vine depending on what you're really trying to do here, it may be worthwhile to point out that the charge.dispute.closed date is generally when Stripe closes the dispute, and may not reflect anything else concrete about the underlying dispute with the card network
This is because of the way disputes work with networks under the hood: a "loss" is when the network claws the funds back. A "win" is when the network returns them ... without eventually clawing them back again.