Fetch Dispute


To fetch dispute using disputeId

EnvironmentHttp MethodAPI
SandboxGEThttps://api-preprod.phonepe.com/apis/pg-sandbox/v1/disputes/{disputeId}
ProductionGEThttps://api.phonepe.com/apis/pg/v1/disputes/{disputeId}
Request Headers
Header NameHeader Value
Content-Typeapplication/json
AuthorizationO-Bearer <access_token>
{
    "merchantId": "merchantId",
    "disputeId": "D1234",
    "merchantOrderId": "MO2329",
    "orderId": "OMO241",
    "transactionId": "OM4564",
    "transactionCompletedAt": <epoch-timestamp>,
    "transactionAmount": 1000,
    "disputeAmount": 1000,
    "refundAmount": 1000,
    "contestAmount": 0,
    "status": "LOST",   
    "stage": "CHARGEBACK",
    "dueDate": <epoch-timestamp>,
    "createdAt": <epoch-timestamp>,
    "updatedAt": <epoch-timestamp>,   
    "evidences": {
        "explanationLetter": [{
            "evidenceId": "D1",
            "label" : "dummmy"
        }],
        "customerRecallLetter": [],
        "serviceConfirmation":[],
        "refundConfirmation": [],
        "serviceCancellation": [],
        "deliveryProof": [],
        "shippingProof": [],
        "accessActivityLog":[]
    }
}
Response Parameters
Parameter NameTypeDescription
merchantIdStringUnique MerchantID assigned to the merchant by PhonePe
Note: merchantId length will be less than 38 characters.
disputeIdStringUnique DisputeId assigned to a dispute
merchantOrderIdStringUnique merchant order id generated by merchant
orderIdStringPhonePe generated order Id
transactionIdStringUnique transaction id generated by phonepe
transactionCompletedAtLongEpoch timestamp of the transaction completion time
(in milliseconds)
transactionAmountLongAmount of the transaction
disputeAmountLongAmount for which dispute is raised, will be lesser than or equal to transactionAmount
refundAmountLongAfter the status of dispute moved to LOST or WON, The amount that is given back to the customer
contestAmountLongAmount for which merchant does the contest
statusEnumStatus of the dispute
Note: The value could be
“ACTION_REQUIRED”, “UNDER_REVIEW”, “WON” or “LOST”
stageEnumStage of the dispute 

Note: The value could be
“CHARGEBACK” or “PRE_ARBITRATION”
dueDateLongEpoch timestamp the last date to respond for a dispute for merchant
(in milliseconds)
createdAtLongEpoch timestamp, Creation date of the dispute
(in milliseconds)
updatedAtLongEpoch timestamp, Last updated date of a dispute
(in milliseconds)
evidencesObjectMap of String and List containing the type as key and List of evidence object as value that merchant uploaded by upload evidence api
Error Scenarios
Error ScenarioResponse CodeResponse
Dispute not found404{
   “message”: “Dispute Not Found”,
   “code”: “DISPUTE_NOT_FOUND”
}
When you are contesting again or you have accepted the dispute than contesting it409{
   “message”: “Transition not allowed”,
   “code”: “INVALID_TRANSITION”
}
Any issue at PhonePe end500{
   “message”: “Something went wrong, please try again”,
   “code”: “SOMETHING_WENT_WRONG”
}
Is this article helpful?