---
updatedAt: 2026-04-22T15:15:32.000Z
agentTools:
  siteIndex: https://developers.pismo.io/llms.txt
  projectIndex: https://developers.pismo.io/pismo-docs/llms.txt
---

# Upload evidence file

Upload a file for the dispute process.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Card issuing - Disputes",
    "version": "1.0.0",
    "description": "Disputes API endpoints",
    "contact": {
      "name": "API Support",
      "url": "https://developers.pismo.io/support/"
    },
    "license": {
      "name": "Copyright Pismo"
    }
  },
  "servers": [
    {
      "url": "https://sandbox.pismolabs.io/disputes",
      "description": "Sandbox API server for testing"
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Evidence files",
      "description": "Endpoints to handle dispute evidence files"
    }
  ],
  "components": {
    "parameters": {
      "disputeId": {
        "name": "disputeId",
        "in": "path",
        "description": "Dispute ID",
        "required": true,
        "schema": {
          "type": "number"
        }
      }
    },
    "schemas": {
      "DisputeID": {
        "type": "number",
        "description": "Dispute ID",
        "example": 48670
      },
      "OrgID": {
        "type": "string",
        "description": "Organization/tenant ID.",
        "example": "TN-34778262-f4f0-464d-b4c6-a14exxxxxxxx"
      },
      "DisputeFileCategory": {
        "type": "string",
        "description": "File category: \n  `OTHERS` - Use to upload file on chargeback creation\n  `PRE_ARBITRATION` - Use to upload files for pre-arbitration\n",
        "enum": [
          "OTHERS",
          "PRE_ARBITRATION"
        ],
        "example": "PRE_ARBITRATION"
      },
      "DisputeFileCategory2": {
        "type": "string",
        "description": "File category\n",
        "enum": [
          "CARD",
          "OTHERS",
          "PRE_ARBITRATION"
        ],
        "example": "PRE_ARBITRATION"
      },
      "DisputeFileResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number",
            "example": 1,
            "description": "Dispute file ID"
          },
          "org_id": {
            "$ref": "#/components/schemas/OrgID"
          },
          "dispute_id": {
            "$ref": "#/components/schemas/DisputeID"
          },
          "dispute_installment_id": {
            "$ref": "#/components/schemas/DisputeInstallmentId"
          },
          "installment": {
            "type": "number",
            "description": "Installment number"
          },
          "path": {
            "type": "string",
            "example": "/path/of/directory/",
            "description": "Organization file path"
          },
          "file_name": {
            "type": "string",
            "description": "File name",
            "example": "doc.pdf"
          },
          "category": {
            "$ref": "#/components/schemas/DisputeFileCategory2"
          }
        }
      },
      "DisputeInstallmentId": {
        "type": "integer",
        "description": "Dispute installment ID.",
        "example": 8675309
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Account access token. Tokens can expire quickly, which can result in an \"Unauthorized\" error.",
        "bearerFormat": "JWT"
      }
    },
    "responses": {
      "400BadRequest": {
        "description": "Bad Request"
      },
      "401Unauthorized": {
        "description": "Unauthorized. Invalid or missing access token."
      },
      "404NotFound": {
        "description": "Not found"
      },
      "500InternalServerError": {
        "description": "Internal server error"
      }
    }
  },
  "paths": {
    "/v1/disputes/{disputeId}/file": {
      "post": {
        "summary": "Upload evidence file",
        "description": "Upload a file for the dispute process.",
        "operationId": "post-v1-disputes-disputeId-file",
        "tags": [
          "Evidence files"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/disputeId"
          }
        ],
        "requestBody": {
          "description": "File data.",
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 20,
                    "description": "File name.\nVISA - Anything alphanumeric, no special characters, 20 chars maximum.\nMastercard - At least a number and a letter and no special characters. 9 chars maximum.\n",
                    "example": "MyFile"
                  },
                  "category": {
                    "$ref": "#/components/schemas/DisputeFileCategory"
                  },
                  "file": {
                    "type": "string",
                    "format": "binary",
                    "description": "Uploaded file. Max size = 14Mb. Must have one of these extensions: .jpg, .jpeg, .tif, .tiff and .pdf."
                  },
                  "dispute_installment_id": {
                    "type": "number",
                    "format": "int64",
                    "description": "Dispute installment ID. If not passed, the first Installment is used."
                  }
                },
                "required": [
                  "name",
                  "category",
                  "file"
                ]
              },
              "examples": {
                "Dispute file sample data fields": {
                  "value": {
                    "name": "A personal file",
                    "category": "OTHERS",
                    "file": "doc.pdf",
                    "dispute_installment_id": 1
                  }
                },
                "Pre arbitration allocation / collaboration Visa": {
                  "value": {
                    "name": "MyFile",
                    "category": "PRE_ARBITRATION",
                    "file": "doc.pdf",
                    "dispute_installment_id": 1
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DisputeFileResponse"
                },
                "examples": {
                  "File Uploaded": {
                    "value": {
                      "id": 1,
                      "org_id": "TN:123...456789",
                      "dispute_id": 1,
                      "path": "/path/of/directory/",
                      "file_name": "doc.pdf",
                      "category": "OTHERS"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/401Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/404NotFound"
          },
          "500": {
            "$ref": "#/components/responses/500InternalServerError"
          }
        }
      }
    }
  }
}
```