Disputes
API ReferenceDisputesDelete Evidence
Delete Evidence
Removes a single piece of evidence already attached to a dispute. Useful if you submitted the wrong file id and need to swap it for another. Operates per evidence_type — call multiple times to remove several entries.
DELETE /disputes/evidence
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
dispute_id | string | Yes | The ID of the dispute the evidence belongs to. |
evidence_type | string | Yes | The category of evidence to remove. One of cancellation_policy, customer_communication, customer_signature, receipt, refund_policy, service_documentation, shipping_documentation, invoice_showing_distinct_transactions, recurring_transaction_agreement, uncategorized_file. |
Request Example
curl -X DELETE 'https://api.v2.paychtec.com/disputes/evidence' \ -H "Content-Type: application/json" \ -H "api-key: snd_YOUR_API_KEY" \ -d '{ "dispute_id": "dp_1234567890abcdef", "evidence_type": "receipt"}'Response
{
"dispute_id": "dp_1234567890abcdef",
"evidence_type": "receipt",
"deleted": true
}Errors
| Status | When |
|---|---|
400 | The dispute is past its evidence submission deadline, or evidence_type is not a valid value. |
404 | Dispute id does not exist, or no evidence of that type is attached. |