• Example searches: “transaction”, “CreateOrder”, “/v2/locations”, “inventory”, “delete customer”

You are viewing an old version of the API
Retrieve dispute evidence

GET /v2/disputes/{dispute_id}/evidence/{evidence_id}

Returns the metadata for the evidence specified in the request URL path.

You must maintain a copy of any evidence uploaded if you want to reference it later. Evidence cannot be downloaded after you upload it.


Permissions
DISPUTES_READ
Try in API Explorer
Name Description
dispute_id
string

Required

The ID of the dispute from which you want to retrieve evidence metadata.

evidence_id
string

Required

The ID of the evidence to retrieve.

Response Fields

Name Description
errors
Error [ ]

Any errors that occurred during the request.

evidence
DisputeEvidence

Metadata about the dispute evidence file.

Examples

You are viewing an old version of the API
GET /v2/disputes/{dispute_id}/evidence/{evidence_id}
cURL
  • cURL
  • Ruby
  • Python
  • C#
  • Java
  • PHP
  • Node.js
curl https://connect.squareup.com/v2/disputes/bVTprrwk0gygTLZ96VX1oB/evidence/TOomLInj6iWmP3N8qfCXrB \
  -H 'Square-Version: 2022-11-16' \
  -H 'Authorization: Bearer ACCESS_TOKEN' \
  -H 'Content-Type: application/json'
Response JSON
{
  "evidence": {
    "dispute_id": "bVTprrwk0gygTLZ96VX1oB",
    "evidence_file": {
      "filename": "customer-interaction.jpg",
      "filetype": "image/jpeg"
    },
    "uploaded_at": "2022-05-18T16:01:10.000Z",
    "evidence_type": "CARDHOLDER_COMMUNICATION",
    "id": "TOomLInj6iWmP3N8qfCXrB"
  }
}