---
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.
    
    The client must ensure this part has its own `Content-Type` header specifying the media type of the file (e.g., `application/pdf`, `image/png`, `image/jpeg`).
    
    Must be one of the allowed types: `PDF`, `PNG`, `JPEG`.

## Returns

### 201

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 |
| 422 | Unprocessable entity |
