Delete Evidence
To delete evidence for a dispute using evidenceId and disputeId
Environment
| Environment | Http Method | API Host URL |
|---|---|---|
Sandbox | DELETE | https://api-preprod.phonepe.com/apis/pg-sandbox/v1/disputes/{disputeId}/evidences/{evidenceId} |
Production | DELETE | https://api.phonepe.com/apis/pg/v1/disputes/{disputeId}/evidences/{evidenceId} |
Path Parameters
| Path Parameter Name | Type | Description |
|---|---|---|
disputeId | String | Unique disputeId generated at PhonePe |
evidenceId | String | Unique evidenceId generated at PhonePe |
Response
Sample Response
{
"success" = true
}⚠️ Dispute Status Action Rules!
A dispute can be accepted only when its status is ACTION_REQUIRED. If the status is different, the API will return a 409 error.
Error Scenarios
| Error Scenario | Response Code | Response |
| Dispute not found | 404 | { “message”: “Dispute Not Found”, “code”: “DISPUTE_NOT_FOUND” } |
| Evidence not found | 404 | { “message”: “Evidence Not Found”, “code”: “EVIDENCE_NOT_FOUND” } |
| delete can also happen when the status of the dispute is in ACTION_REQUIRED | 409 | { “message”: “Transition not allowed”, “code”: “INVALID_TRANSITION” } |
| Any issue at PhonePe end | 500 | { “message”: “Something went wrong, please try again”, “code”: “SOMETHING_WENT_WRONG” } |