Skip to end of banner
Go to start of banner

Resolved Disputes - Summary

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Description:Summary count, total dispute amount, total recovery amount, and total loss amount for disputes resolved within a specified date range. 
Sources:Dispute, Claim
SELECT
count(*) as "Count",
sum(d.disputeamount) as "Total Dispute Amount",
sum(d.losstotal * -1) as "Total Loss Amount",
sum(d.merchanttotal * -1) as "Total Recovered Amount"
FROM
dispute AS d
JOIN
claim AS c ON c.tenantid = d.tenantid AND c.claimid = d.claimid
WHERE
d.resolveddatetime =:daterange
AND d.status in ('Resolved-Paid', 'Resolved-Denied') -- exclude open disputes and temporary authorizations that posted as these will have a new dispute record
  • No labels