> ## Documentation Index
> Fetch the complete documentation index at: https://developer.findity.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Download an expense report export

> Returns the raw export content (e.g. CSV, ISO-20022 XML) for the requested
export. The response body is the binary/text content of the export file.




## OpenAPI

````yaml openapi/findity-admin-api.json GET /organizations/{id}/expensereportsexports/{expenseReportExportId}
openapi: 3.1.0
info:
  title: Findity Admin API
  description: Findity Admin API
  version: 1.0.0
servers:
  - url: https://stage-api.findity.com/api/v1/admin
  - url: https://api.findity.com/api/v1/admin
security:
  - bearerAuth: []
paths:
  /organizations/{id}/expensereportsexports/{expenseReportExportId}:
    get:
      tags:
        - Expense Reports
      summary: Download an expense report export
      description: >
        Returns the raw export content (e.g. CSV, ISO-20022 XML) for the
        requested

        export. The response body is the binary/text content of the export file.
      operationId: getExpenseReportsExport
      parameters:
        - $ref: '#/components/parameters/organizationIdPath'
        - name: expenseReportExportId
          in: path
          required: true
          description: >-
            External identifier of the export file, as returned in the `id`
            field of the list endpoint response.
          schema:
            type: string
          example: testfile123
        - name: outputType
          in: query
          required: false
          description: >-
            When set to vouchers, returns the voucher JSON instead of the raw
            export file
          schema:
            type: string
            enum:
              - vouchers
      responses:
        '200':
          description: >-
            Export contents. Content-Type varies depending on the export (e.g.
            text/csv, application/xml) or is application/json when
            outputType=vouchers.
          headers:
            Content-Disposition:
              description: Attachment filename derived from the export name
              schema:
                type: string
              example: attachment; filename=2024-02-export.csv
            Access-Control-Expose-Headers:
              schema:
                type: string
              example: Content-Disposition
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
            text/csv:
              schema:
                type: string
            application/xml:
              schema:
                type: string
            application/json:
              schema:
                $ref: '#/components/schemas/VoucherExportResponse'
        '400':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/400Error'
              examples:
                missingOrganizationId:
                  summary: Missing organizationId
                  value:
                    result: error
                    code: MISSING_PARAMETER
                    description: 'Missing parameter: organizationId'
                missingFileId:
                  summary: Missing fileId
                  value:
                    result: error
                    code: MISSING_PARAMETER
                    description: 'Missing parameter: fileId'
        '404':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/404Error'
              examples:
                organizationNotFound:
                  summary: Organization not found
                  value:
                    result: error
                    code: ORGANIZATION_NOT_FOUND
                    description: Organization not found
                exportNotFound:
                  summary: Export not found
                  value:
                    result: error
                    code: EXPORT_NOT_FOUND
                    description: Export not found
components:
  parameters:
    organizationIdPath:
      in: path
      name: id
      required: true
      description: The unique identifier of the organization
      schema:
        $ref: '#/components/schemas/Uuid'
        example: 05b8daba9ba14a49846fe77883248cf0
  schemas:
    VoucherExportResponse:
      type: object
      description: |
        Voucher JSON for an export when outputType=vouchers is requested.
      properties:
        vouchers:
          type: array
          items:
            type: object
            additionalProperties: true
      additionalProperties: true
      example:
        vouchers:
          - id: voucher-001
            bookingDate: '2024-02-10'
            amount: 1500
            currency: SEK
    400Error:
      type: object
      properties:
        result:
          type: string
        code:
          type: string
        description:
          type: string
    404Error:
      type: object
      properties:
        result:
          type: string
        code:
          type: string
        description:
          type: string
      example:
        result: error
        code: ORGANIZATION_NOT_FOUND
        description: 'Failed to get organization for id: {orgId}'
    Uuid:
      type: string
      pattern: ^[0-9a-fA-F]{32}$
      description: UUID without dashes (32-character hex string)
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````