Development
  • Guides
  • API Reference
  • API Explorer
  • SDKs
  • Sample apps
  • System status
Support
  • Developer forums
  • Developer blog
  • YouTube
  • X
More
  • Square Home
  • Square Developer
  • App Marketplace
  • Partner with Square
  • Solutions Partner Program
  • Pricing
  • Sales

© 2026 Square, Inc.

  • Developer terms of service
  • Developer Integration and Marketing Agreement
  • Privacy policy
  • Partnerships
  • Sign In
  • Sign In

    Disputes

  • List disputes

  • Retrieve dispute

  • Accept dispute

  • List dispute evidence

  • Create dispute evidence file

  • Create dispute evidence text

  • Delete dispute evidence

  • Retrieve dispute evidence

  • Submit evidence

  • Webhooks

  • dispute.created

  • dispute.evidence.created

  • dispute.evidence.deleted

  • dispute.state.updated

<- Disputes API

Disputes API

All versions ->

Create dispute evidence file

POST

 /v2/disputes/{dispute_id}/evidence-files

Uploads a file to use as evidence in a dispute challenge.

The endpoint accepts HTTP multipart/form-data file uploads in HEIC, HEIF, JPEG, PDF, PNG, and TIFF formats.

Permissions:DISPUTES_WRITE

Guide

Challenge a dispute

Try in API Explorer
Link to section

Path parameters

Example code

Link to section

dispute_id

string

Required

The ID of the dispute for which you want to upload evidence.

Link to section

Request body

Link to section

idempotency_key

string

Required

A unique key identifying the request. For more information, see Idempotency.

Min Length
1
Max Length
45
Link to section

evidence_type

string

The type of evidence you are uploading.

Link to section

content_type

string

The MIME type of the uploaded file. The type can be image/heic, image/heif, image/jpeg, application/pdf, image/png, or image/tiff.

Min Length
1
Max Length
40
Link to section

Response fields

Link to section

errors

Any errors that occurred during the request.

Link to section

evidence

The metadata of the newly uploaded dispute evidence.

Link to section

Examples

All versions ->

POST /v2/disputes/{dispute_id}/evidence-files
curl https://connect.squareup.com/v2/disputes/bVTprrwk0gygTLZ96VX1oB/evidence-files \ -X POST \ -H 'Square-Version: 2026-11-18' \ -H 'Authorization: Bearer ACCESS_TOKEN' \ -H 'Accept: application/json' \ -F 'file=@/local/path/to/file.jpg' \ -F 'request={}'

Response JSON

{ "evidence": { "dispute_id": "bVTprrwk0gygTLZ96VX1oB", "evidence_file": { "filename": "customer-interaction.jpg", "filetype": "image/jpeg" }, "uploaded_at": "2022-05-18T16:01:10.000Z", "id": "TOomLInj6iWmP3N8qfCXrB" } }