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

# List

> Lists the expense reports, the most recent `status.since` first. A report that has not been sent yet is only visible to its author; once sent, it is also visible to its validators and to whoever may export or take over the expense reports of its author's teams.

> [!WARNING]
>
> This endpoint is in preview: it may change without notice until it becomes part of a stable version.


## OpenAPI

````yaml preview post /api/expenses/reports.list
openapi: 3.1.0
info:
  title: tipee
  version: preview
servers: []
security:
  - basicAuth: []
tags:
  - name: Activity
    description: Activity
  - name: Balances
    description: Balances
  - name: Directory
    description: Directory
  - name: Expenses
    description: Expenses
  - name: Schedule
    description: Schedule
  - name: Security
    description: Security
  - name: Timeclock
    description: Timeclock
paths:
  /api/expenses/reports.list:
    post:
      tags:
        - Expenses
      summary: List
      description: >-
        Lists the expense reports, the most recent `status.since` first. A
        report that has not been sent yet is only visible to its author; once
        sent, it is also visible to its validators and to whoever may export or
        take over the expense reports of its author's teams.
      operationId: post_app_ui_api_expenses_expensereportquery_getlist
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ListExpenseReportsQuery'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExpenseReportListView'
components:
  schemas:
    ListExpenseReportsQuery:
      properties:
        filters:
          type: array
          items:
            $ref: '#/components/schemas/ListExpenseReportsQueryFilter'
        pagination:
          $ref: '#/components/schemas/Pagination'
      type: object
      additionalProperties: false
    ExpenseReportListView:
      required:
        - next_token
        - data
      properties:
        next_token:
          type:
            - string
            - 'null'
        data:
          type: array
          items:
            $ref: '#/components/schemas/ExpenseReportView'
      type: object
    ListExpenseReportsQueryFilter:
      discriminator:
        propertyName: key
      oneOf:
        - required:
            - key
            - value
          properties:
            key:
              type: string
              example: expense_report.ids
              enum:
                - expense_report.ids
            value:
              type: array
              items:
                $ref: '#/components/schemas/Snowflake'
          type: object
          additionalProperties: false
        - description: The authors of the expense reports.
          required:
            - key
            - value
          properties:
            key:
              type: string
              example: expense_report.resource_ids
              enum:
                - expense_report.resource_ids
            value:
              type: array
              items:
                $ref: '#/components/schemas/Snowflake'
          type: object
          additionalProperties: false
        - description: >-
            The validators of the expense reports. With `current`, the reports
            awaiting them or last approved or refused by them; with `past`, the
            reports in their validation chain except those awaiting them; with
            `both`, all the reports in their validation chain; with `not`, the
            reports never in it.
          required:
            - key
            - value
          properties:
            key:
              type: string
              example: expense_report.validator
              enum:
                - expense_report.validator
            value:
              $ref: '#/components/schemas/ExpenseReportValidatorFilterData'
          type: object
          additionalProperties: false
        - required:
            - key
            - value
          properties:
            key:
              type: string
              example: expense_report.status
              enum:
                - expense_report.status
            value:
              type: array
              items:
                $ref: '#/components/schemas/ExpenseReportStatus'
          type: object
          additionalProperties: false
        - description: >-
            When the status of the expense reports was last set
            (`status.since`).
          required:
            - key
            - value
          properties:
            key:
              type: string
              example: expense_report.date_range
              enum:
                - expense_report.date_range
            value:
              $ref: '#/components/schemas/LocalDateTimeInterval'
          type: object
          additionalProperties: false
        - required:
            - key
            - value
          properties:
            key:
              type: string
              example: or
              enum:
                - or
            value:
              type: array
              items:
                $ref: '#/components/schemas/ListExpenseReportsQueryFilter'
          type: object
          additionalProperties: false
        - required:
            - key
            - value
          properties:
            key:
              type: string
              example: and
              enum:
                - and
            value:
              type: array
              items:
                $ref: '#/components/schemas/ListExpenseReportsQueryFilter'
          type: object
          additionalProperties: false
    Pagination:
      required:
        - limit
        - next_token
      properties:
        limit:
          type:
            - integer
            - 'null'
        next_token:
          type:
            - string
            - 'null'
      type: object
      additionalProperties: false
    ExpenseReportView:
      required:
        - id
        - resource_id
        - label
        - created_at
        - totals
        - expense_ids
        - status
        - attachment_count
      properties:
        id:
          $ref: '#/components/schemas/Snowflake'
        resource_id:
          $ref: '#/components/schemas/Snowflake'
        label:
          type: string
        created_at:
          $ref: '#/components/schemas/Instant'
        totals:
          type: array
          items:
            $ref: '#/components/schemas/ExpenseReportTotalView'
        expense_ids:
          type: array
          items:
            $ref: '#/components/schemas/Snowflake'
        status:
          $ref: '#/components/schemas/ExpenseReportStatusView'
        attachment_count:
          type: integer
      type: object
    Snowflake:
      type: string
      format: snowflake
      example: '872815618512410358'
    ExpenseReportValidatorFilterData:
      required:
        - ids
      properties:
        ids:
          type: array
          items:
            $ref: '#/components/schemas/Snowflake'
        operator:
          $ref: '#/components/schemas/ExpenseReportValidatorOperator'
          default: current
      type: object
      additionalProperties: false
    ExpenseReportStatus:
      type: string
      example: draft
      enum:
        - draft
        - ready
        - pending-approval
        - approved
        - refused
    LocalDateTimeInterval:
      type: string
      format: local-date-time-interval
      example: 2019-11-11T12:34:56/2019-12-12T23:59:59
    Instant:
      type: string
      format: zoned-date-time
      example: '2025-10-30T10:40:22.01367Z'
    ExpenseReportTotalView:
      required:
        - currency_id
        - amount
      properties:
        currency_id:
          $ref: '#/components/schemas/Snowflake'
        amount:
          type: number
          format: float
      type: object
    ExpenseReportStatusView:
      required:
        - current
        - since
      properties:
        current:
          $ref: '#/components/schemas/ExpenseReportStatus'
        since:
          description: >-
            When the status was last set. Forwarding or taking over a pending
            report sets it again, though the status stays the same.
          type: string
          format: date-time
      type: object
    ExpenseReportValidatorOperator:
      type: string
      example: current
      enum:
        - current
        - past
        - both
        - not

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.