> ## 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.

# List expense report exports for an organization

> Returns a paginated list of expense report exports for the given organization.




## OpenAPI

````yaml openapi/findity-admin-api.json GET /organizations/{id}/expensereportsexports
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:
    get:
      tags:
        - Expense Reports
      summary: List expense report exports for an organization
      description: >
        Returns a paginated list of expense report exports for the given
        organization.
      operationId: listExpenseReportsExports
      parameters:
        - $ref: '#/components/parameters/organizationIdPath'
        - $ref: '#/components/parameters/max-2'
        - $ref: '#/components/parameters/offset-2'
        - $ref: '#/components/parameters/expenseReportExportsSort'
        - $ref: '#/components/parameters/search'
        - $ref: '#/components/parameters/fromDate'
        - $ref: '#/components/parameters/toDate'
        - $ref: '#/components/parameters/integrationPluginName'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExpenseReportsExports'
        '400':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/400Error'
              example:
                result: error
                code: MISSING_PARAMETER
                description: 'Missing parameter: organizationId'
        '404':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/404Error'
              example:
                result: error
                code: ORGANIZATION_NOT_FOUND
                description: Organization 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
    max-2:
      name: max
      in: query
      description: Max records to return
      required: false
      schema:
        type: integer
        format: int
        minimum: 1
        maximum: 1000
        default: 10
    offset-2:
      name: offset
      in: query
      description: Offset to be used in list
      required: false
      schema:
        type: integer
        format: int
        minimum: 0
        default: 0
    expenseReportExportsSort:
      name: sort
      in: query
      description: |
        Comma-separated list of sort properties and directions.
        Accepted property names: `dateCreated`, `lastDownloaded`, `exportedBy`.
        Accepted directions: `asc`, `desc`.
        When omitted, results are sorted by `dateCreated:desc` by default.
      required: false
      schema:
        type: string
      example: dateCreated:desc
    search:
      name: q
      in: query
      description: Parameter used in the search
      required: false
      schema:
        type: string
      example: name
    fromDate:
      in: query
      name: fromDate
      required: false
      description: Used for filtering
      schema:
        type: string
        format: date
      example: '2020-01-20'
    toDate:
      in: query
      name: toDate
      required: false
      description: Used for filtering
      schema:
        type: string
        format: date
      example: '2018-01-23'
    integrationPluginName:
      name: integrationPluginName
      in: query
      description: >-
        Filter exports by integration plugin name. String, case-sensitive.
        Optional.
      required: false
      schema:
        type: string
      example: test-integration
  schemas:
    ExpenseReportsExports:
      type: object
      properties:
        meta:
          type: object
          properties:
            count:
              type: integer
              description: Number of items returned in this page
            total:
              type: integer
              description: Total number of items matching the filter
            integrationPluginNames:
              type: array
              items:
                type: string
              description: >-
                All integration plugin names for the organization's exports,
                used by the Files tab filter dropdown.
        data:
          type: array
          items:
            $ref: '#/components/schemas/ExpenseReportsExport'
      example:
        meta:
          count: 2
          total: 12
        data:
          - id: test123
            dateCreated: '2024-02-10T08:15:00Z'
            lastDownloaded: '2024-02-11T09:00:00Z'
            recipientId: recipient-001
            integrationPluginName: test-integration
            exportedBy:
              id: person-001
              email: user1@example.com
              firstName: User
              lastName: One
            hasContent: true
            numberOfReports: 5
            accountingBasisUrl: >-
              https://api.findity.com/api/admin/expensereports/accountingbasis/test123
          - id: 111113d4e5f6a7b8c9d0e1f2a3b41111
            dateCreated: '2024-01-15T10:30:00Z'
            lastDownloaded: null
            recipientId: recipient-002
            integrationPluginName: test-integration-1
            exportedBy:
              firstName: user2@example.com
              lastName: ''
            hasContent: false
            numberOfReports: 0
            accountingBasisUrl: null
    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)
    ExpenseReportsExport:
      type: object
      properties:
        id:
          type: string
          description: External id of the export. Used as fileId on the download endpoint.
        dateCreated:
          type: string
          format: date-time
          description: Date when the export was created
        lastDownloaded:
          type: string
          format: date-time
          nullable: true
          description: >-
            Date when the export content was last downloaded. Updated when the
            raw export file is fetched via the download endpoint.
        recipientId:
          type: string
          nullable: true
          description: Recipient id
        integrationPluginName:
          type: string
          nullable: true
          description: Name of the integration plugin that produced the export
          example: test-integration
        exportedBy:
          type: object
          nullable: true
          description: >
            Information about the user that requested the export. Populated when
            the export has a known

            requester. When a matching `Person` record exists, the object
            contains `id`, `email`,

            `firstName` and `lastName`. When no matching `Person` is found, only
            `firstName` (set to the

            requester's email address) and `lastName` (empty string) are
            present, `id` and `email` are

            omitted in that case. Null when the export has no known requester.
          properties:
            id:
              type: string
              description: >-
                Internal person id. Only present when a matching `Person` record
                was found.
            email:
              type: string
              format: email
              description: >-
                Person email. Only present when a matching `Person` record was
                found.
            firstName:
              type: string
              description: >-
                First name of the person, or the email address when no matching
                `Person` was found.
            lastName:
              type: string
              description: >-
                Last name of the person, or an empty string when no matching
                `Person` was found.
        hasContent:
          type: boolean
          description: True when the export has downloadable content
        numberOfReports:
          type: integer
          default: 0
          description: Number of expense reports contained in the export
        accountingBasisUrl:
          type: string
          nullable: true
          description: URL to the related accounting basis or payment basis resource
      example:
        id: test123
        dateCreated: '2024-02-10T08:15:00Z'
        lastDownloaded: '2024-02-11T09:00:00Z'
        recipientId: recipient-001
        integrationPluginName: test-integration
        exportedBy:
          id: person-001
          email: user1@example.com
          firstName: User
          lastName: One
        hasContent: true
        numberOfReports: 5
        accountingBasisUrl: >-
          https://api.findity.com/api/admin/expensereports/accountingbasis/test123
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````