Upload evidence file
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
/accounts/{accountID}/disputes/{disputeID}/evidence-file
|
|
|
|
File was uploaded successfully.
Details of a successfully uploaded evidence file.
{
"createdOn": "2019-08-24T14:15:22Z",
"disputeID": "ec7e1848-dc80-4ab0-8827-dd7fc0737b43",
"evidenceID": "ec7e1848-dc80-4ab0-8827-dd7fc0737b43",
"evidenceType": "receipt",
"filename": "string",
"mimeType": "string",
"size": 0
}
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.
Response headers
Retry-After
number
Invalid request, an error message will be available in the response body.
Response for http requests that failed
Path parameters
accountID
string
<uuid>
required
ID of the account.
disputeID
string
<uuid>
required
ID of dispute
Body
multipart/form-data
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].
The Content-Type
header for this form part must be one of the following:
image/jpeg
image/tiff
application/pdf
Response
application/json
createdOn
string<date-time>
<=24 characters
required
disputeID
string<uuid>
<=36 characters
required
UUID
evidenceID
string<uuid>
<=36 characters
required
UUID
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
filename
string
required
mimeType
string
required
size
integer<int64>
required