Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Multiexcerpt include macro
macro_uuid40b8ba4c-84da-465a-bdb3-4a7373cfd13b
nameWhereClauseWarning
templateDataeJyLjgUAARUAuQ==
pageSQL Library
addpanelfalse

SQL

Code Block
languagesql
selectSELECT 
client.commonname asAS "Client",
c.claimtype asAS "Claim Type",
c.reasontype asAS "Claim Category",
c.reason asAS "Claim Reason",
d.claimid asAS "Claim ID",
d.disputeid asAS "Dispute ID",
c.customercontactdate asAS "Contact Date",
d.acquirernetwork asAS "Network",
d.status asAS "Dispute Status",
d.disputeamount asAS "Dispute Amount",
toTo_date(cb.performedondatetime) asAS "Chargeback Date",
cb.amount asAS "Chargeback Amount",
toTo_date(rp.performedondatetime) asAS "Representment Date",
rp.amountasamount AS "Representment Amount"
fromFROM dispute asAS d
joinJOIN claim asAS c
onON d.tenantid = c.tenantid
andAND d.claimid = c.claimid
joinJOIN client asAS client
onON d.tenantid = client.tenantid
andAND d.clientid = client.clientid
joinJOIN recoveryaction asAS cb
onON d.tenantid = cb.tenantid
andAND d.disputeid = cb.disputeid
andAND cb.actionname inIN ( 'Dispute Submitted',
'Rapid Dispute Resolution' )
andAND cb.cycle = '1'
joinJOIN recoveryaction asAS rp
onON d.tenantid = rp.tenantid
andAND d.disputeid = rp.disputeid
andAND rp.actionname inIN ( 'Inbound Pre-Compliance Received',
'Dispute Declined',
'Pre-Arbitration Received',
'Dispute Accepted - Partial' )
 
where 
cb.performedondatetime is not null -- only disputes with chargebacks 
where 
    WHERE d.tenantid = 'YOURTENANTIDHERE'
AND    AND chargebackdate=rp.performedondatetime = :daterange 

Field Glossary

FieldDefinition
Client
Multiexcerpt include macro
macro_uuid105b9e81-14d5-44ec-9511-2e0bd16a167e
nameglossary_description
templateDataeJyLjgUAARUAuQ==
pageCommon Name
addpanelfalse
Claim Type
Multiexcerpt include macro
macro_uuid105b9e81-14d5-44ec-9511-2e0bd16a167e
nameglossary_description
templateDataeJyLjgUAARUAuQ==
pageClaim Type
addpanelfalse
Claim Category
Multiexcerpt include macro
macro_uuid105b9e81-14d5-44ec-9511-2e0bd16a167e
nameglossary_description
templateDataeJyLjgUAARUAuQ==
pageClaim Category
addpanelfalse
Claim Reason
Multiexcerpt include macro
macro_uuid105b9e81-14d5-44ec-9511-2e0bd16a167e
nameglossary_description
templateDataeJyLjgUAARUAuQ==
pageClaim Reason
addpanelfalse
Network
Multiexcerpt include macro
macro_uuid105b9e81-14d5-44ec-9511-2e0bd16a167e
nameglossary_description
templateDataeJyLjgUAARUAuQ==
pageNetwork
addpanelfalse
Claim ID
Multiexcerpt include macro
macro_uuid105b9e81-14d5-44ec-9511-2e0bd16a167e
nameglossary_description
templateDataeJyLjgUAARUAuQ==
pageClaim ID
addpanelfalse
Dispute ID
Multiexcerpt include macro
macro_uuid105b9e81-14d5-44ec-9511-2e0bd16a167e
nameglossary_description
templateDataeJyLjgUAARUAuQ==
pageDispute ID
addpanelfalse
Contact Date
Multiexcerpt include macro
macro_uuid105b9e81-14d5-44ec-9511-2e0bd16a167e
nameglossary_description
templateDataeJyLjgUAARUAuQ==
pageCustomer Contact Date
addpanelfalse
Dispute Status
Multiexcerpt include macro
macro_uuid105b9e81-14d5-44ec-9511-2e0bd16a167e
nameglossary_description
templateDataeJyLjgUAARUAuQ==
pageDispute Status
addpanelfalse
Dispute Amount
Multiexcerpt include macro
macro_uuid105b9e81-14d5-44ec-9511-2e0bd16a167e
nameglossary_description
templateDataeJyLjgUAARUAuQ==
pageDispute Amount
addpanelfalse
Chargeback DateDate the chargeback was performed.
Chargeback AmountAmount of the chargeback.
Representment DateDate the representment was received.
Representment AmountAmount of the representment.

...