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

# Expense reports

> Expense reports for the authenticated team.



## OpenAPI

````yaml get /reports/expenses
openapi: 3.1.0
info:
  version: 0.0.1
  title: Abacus API
  description: Abacus is the operating system for Merchant Cash Advance businesses.
  contact:
    name: Abacus Support
    email: support@abacuslabs.co
    url: https://abacuslabs.co
  license:
    name: AGPL-3.0 license
    url: https://github.com/Suphian/abacus/blob/main/LICENSE
servers:
  - url: https://api.abacuslabs.co
    description: Production API
security:
  - oauth2: []
  - token: []
paths:
  /reports/expenses:
    get:
      tags:
        - Reports
      summary: Expense reports
      description: Expense reports for the authenticated team.
      operationId: getExpensesReports
      parameters:
        - schema:
            type: string
            description: Start date (ISO 8601 format)
            example: '2023-01-01'
          required: true
          description: Start date (ISO 8601 format)
          name: from
          in: query
        - schema:
            type: string
            description: End date (ISO 8601 format)
            example: '2023-12-31'
          required: true
          description: End date (ISO 8601 format)
          name: to
          in: query
        - schema:
            type: string
            description: Currency code (ISO 4217)
            example: USD
          required: false
          description: Currency code (ISO 4217)
          name: currency
          in: query
      responses:
        '200':
          description: Expense reports for the authenticated team.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetExpensesResponseSchema'
components:
  schemas:
    GetExpensesResponseSchema:
      type: object
      properties:
        summary:
          type: object
          properties:
            averageExpense:
              type: number
              description: Average expense over the period
              example: 121054.86
            currency:
              type: string
              description: Currency code (ISO 4217)
              example: SEK
          required:
            - averageExpense
            - currency
        meta:
          type: object
          properties:
            type:
              type: string
              description: Type of metric
              example: expense
            currency:
              type: string
              description: Currency code (ISO 4217)
              example: SEK
          required:
            - type
            - currency
        result:
          $ref: '#/components/schemas/ExpensesResultArray'
      required:
        - summary
        - meta
        - result
    ExpensesResultArray:
      type: array
      items:
        type: object
        properties:
          date:
            type: string
            description: Date for the expense value
            example: '2024-01-01 00:00:00'
          value:
            type: number
            description: Expense value for the given date
            example: 637898.68
          currency:
            type: string
            description: Currency code (ISO 4217)
            example: SEK
          recurring:
            type: number
            description: Recurring expense value for the given date
            example: 9467.76
          total:
            type: number
            description: Total expense for the given date
            example: 647366.44
        required:
          - date
          - value
          - currency
          - recurring
          - total
  securitySchemes:
    token:
      type: http
      scheme: bearer
      description: Default authentication mechanism
      x-speakeasy-example: ABACUS_API_KEY

````

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