Skip to Content
Docs
Disputes

Update a dispute evidence

PATCH/disputes/{dispute_id}/evidences/{evidence_id}

Updates an existing piece of evidence for a dispute. At least one of document or text is required.

The dispute must be in status open or pre_arbitration; otherwise the request returns 400. After evidence is submitted the dispute moves to evidence_under_review within seconds, so evidence can usually no longer be updated.

Headers

AuthorizationstringRequired
HTTP Basic auth: your API key as the password, with an empty username. See Authentication.

Path parameters

dispute_idstringRequired

Unique identifier for the dispute.

evidence_idstringRequired

Unique identifier for the evidence.

Parameters

documentstring

Unique identifier for an uploaded document. Replaces all files on the evidence with this one document, which must be a dispute evidence document in status active.

textstring

Updated text explanation for this evidence. An empty string is accepted.

Returns

Returns the updated evidence object.

idstring

Unique identifier for the evidence.

resourcestring

String representing the object's type.

typestring

The type of evidence. Evidence submitted while the dispute is in pre_arbitration has type pre_arbitration_evidence.

One of proof_of_delivery_or_service, invoice_or_receipt, invoice_showing_distinct_transactions, customer_communication, refund_or_cancellation_policy, recurring_transaction_agreement, additional_evidence, proof_of_delivery_or_service_date, cardholder_evidence, issuer_winning_evidence or pre_arbitration_evidence.

filesarray of strings

Unique identifiers for the documents attached to the evidence.

textstring

Text description of the evidence.

test_modeboolean

Whether the evidence was created in the sandbox.

Errors

400
Invalid request parameters, the dispute is not in status open or pre_arbitration, or the document is not an accepted evidence document.
401
The API key or access token is missing, unknown or no longer works (invalid_key, invalid_token, legacy_keys_ended, legacy_keys_off or permission_denied).
403
The request was refused: the API key may not make it (for example resource_not_allowed, key_disabled, network_not_allowed, pci_required or merchant_required), or this resource isn't enabled for your account (permission_denied). code says why.
404
Dispute, evidence or document not found.
500
Internal server error.
503
Service unavailable. Retry after the number of seconds in Retry-After, or after a few seconds when there's none.
Was this page helpful?