---
updatedAt: 2026-09-13T21:39:53.000Z
agentTools:
  projectIndex: https://developers.marosavat.com/llms.txt
---

# Download document file

Returns a presignedUrl pointing to a file (fileId) associated to a document (documentId)

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "e-Invoicing API",
    "description": "API to send documents for e-Invoicing e e-Reporting. These documents can be also used to prepare VAT returns under certain conditions",
    "version": "1.1.0"
  },
  "servers": [
    {
      "url": "https://gw.mvsandbox.com/api/invoicing"
    }
  ],
  "paths": {
    "/v1.1/document/files/{fileId}": {
      "get": {
        "tags": [
          "Documents"
        ],
        "summary": "Download document file",
        "description": "Returns a presignedUrl pointing to a file (fileId) associated to a document (documentId)",
        "operationId": "getSpecificFile",
        "parameters": [
          {
            "name": "fileId",
            "in": "path",
            "description": "File unique id",
            "required": true,
            "schema": {
              "type": "string",
              "example": "f10d0b67-f10d-ce16-0d0b-ce16f10d0b67"
            }
          },
          {
            "name": "documentId",
            "in": "query",
            "description": "Document unique id",
            "required": true,
            "schema": {
              "type": "string",
              "example": "6a61ddc7c9f0ca56a38c39b9"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Presigned URL generated and returned",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PresignedUrlResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request DocumentId not reachable or does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "File not found for that Document",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ApiError": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "Error code"
          },
          "exceptionCode": {
            "type": "string",
            "description": "Exception code"
          },
          "message": {
            "type": "string",
            "description": "Error message"
          },
          "information": {
            "type": "object",
            "description": "Additional information related to the error"
          }
        },
        "description": "Error response details"
      },
      "PresignedUrlResponse": {
        "type": "object",
        "properties": {
          "presignedUrl": {
            "type": "string"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  }
}
```