POST
/
files
/
upload
curl --request POST \
  --url https://app.disputeninja.io/api/v1/files/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'stripe_dispute_id=<string>'
{
  "message": "<string>",
  "dispute_id": "<string>",
  "stripe_dispute_id": "<string>",
  "file": {
    "id": "<string>",
    "url": "<string>",
    "name": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
file
file
required

The evidence file to upload. Must be in PDF, PNG, or JPG format. Maximum file size is 5MB.

stripe_dispute_id
string
required

The Stripe dispute ID to which the evidence data will be attached

Response

200
application/json
File uploaded successfully
message
string

A message indicating the success of the file upload

dispute_id
string

The ID of the dispute associated with the uploaded file

stripe_dispute_id
string

The Stripe dispute ID associated with the uploaded file

file
object

Details of the uploaded file