dispute-management workflow contains a dispute block in details.paymentComposition. The event is executionActionCompleted, and the action is dispute. Refer to Notifications for the notification structure.
Dispute fields
The table lists thedispute fields in a dispute-management notification and when Payrails omits them.
Lifecycle values
The spelling of
IssuerReponseTimeframeExpired matches the API value.
Dispute statuses
dispute.status summarizes the dispute lifecycle. The portal and the Get dispute API show the raw stage, defenseStatus, and chargebackStatus. Payrails derives the notification’s status from them with the mapping tables.
Status mapping
Use the table for the dispute’sstage. Within each table, the first matching row determines dispute.status.
Fraud reports
Forstage: FraudReport, dispute.status is FraudAlert, regardless of the other statuses.
Retrievals
Forstage: Retrieval, defenseStatus determines the result:
For example, the portal value
underReview corresponds to API defenseStatus: UnderReview. At stage: Retrieval, the webhook status is RetrievalChallenged.
Chargebacks
Forstage: Chargeback, check chargebackStatus first:
When the chargeback status requires the defense status, use this table:
Arbitration stages
Forstage: PreArbitration or stage: Arbitration, defenseStatus determines the result:
Other stages
For any other stage,dispute.status is DisputeOpened.
Supported PSPs
Supported PSPs are Adyen, Braintree, Checkout.com, dLocal, Klarna, Nuvei, PayPal, Revolut, Stripe, and Unlimit.Notification example
Thisdispute-management example shows a new chargeback. It omits fields unrelated to the dispute.
Dispute notification
Legacy payment-acceptance notifications
Whenexecution.workflowCode is payment-acceptance, dispute.id is the PSP’s dispute reference, the same as providerReference. These notifications omit stage, defenseStatus, chargebackStatus, previous, psp, liabilityShifted, and paymentStatus from the dispute block.