---
api: 'Merchant API'
---

# Upload evidence for a dispute

Allows uploading a single evidence file for a specific dispute.

Use these evidences to provide proof for claims when challenging a dispute.

:::warning
**Limitations:**
  - Maximum `100` uploaded files are allowed per dispute.
  - Maximum file size: `10MB`.
  - Allowed file types: `PDF`, `PNG`, `JPEG`.
:::

:::note
This endpoint is only available in **Production** environment.
:::

## Endpoint

POST `/api/disputes/{dispute_id}/evidences`

## Request body

### Attributes

- `file` (string)
    The single evidence file to upload, sent as a multipart form part named `file`.
    
    The part must include a `Content-Type` header specifying the media type of the file. Allowed types: `application/pdf`, `image/png`, `image/jpeg`.
    
    Maximum file size: `10MB`.

## Returns

### 200

Evidence uploaded successfully

#### Response attributes

- `id` (string)
    The ID of the uploaded evidence.

## Error responses

| HTTP status code | Description |
| --- | --- |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 413 | Request Entity Too Large |
| 415 | Unsupported Media Type |
| 422 | Unprocessable entity |
| 500 | Internal Server Error |
