Upload evidence file

Uploads a file as evidence for a dispute. Read our disputes guide to learn more.

To use this endpoint from the browser, you’ll need to specify the /accounts/{your-account-id}/transfers.write scope when generating a token.
POST
/disputes/{disputeID}/evidence-file
cURL Go
1
2
3
4
5
curl -X POST "https://api.moov.io/disputes/{disputeID}/evidence-file" \
  -H "Authorization: Bearer {token}" \
  --form \
  -F "file=@/path/to/your/file.txt" \
  -F "evidenceType=proof-of-delivery"
1
2
3
4
5
6
mc, _ := moov.NewClient()

var disputeID string
file, _ := os.Open("path/to/test.pdf")

mc.UploadEvidenceFile(ctx, disputeID, moov.EvidenceType_CoverLetter, "test.pdf", file, "application/pdf")
204 403 404 422 429 500
Successful empty response for unauthorized or any other returned http status code.
The user is not authorized to make the request.
Request received, but resource was not found.
The parameters provided are not processable.
Request was refused due to rate limiting.

Retry-After

number
Invalid request, an error message will be available in the response body.
Response for http requests that failed

Path parameters

disputeID

string <uuid> required
ID of dispute

Body

multipart/form-data
The file to upload as evidence.

evidenceType

string<enum> required
The type of evidence being uploaded.
Possible values: receipt, proof-of-delivery, cancelation-policy, terms-of-service, customer-communication, generic-evidence, cover-letter, other

file

string<binary> required
The file to upload as evidence. Valid types are [jpeg, tiff, pdf].