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

# Profit reports

> Profit reports for the authenticated team.



## OpenAPI

````yaml get /reports/profit
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/profit:
    get:
      tags:
        - Reports
      summary: Profit reports
      description: Profit reports for the authenticated team.
      operationId: getProfitReports
      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: Profit reports for the authenticated team.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetProfitResponseSchema'
components:
  schemas:
    GetProfitResponseSchema:
      type: object
      properties:
        summary:
          $ref: '#/components/schemas/ProfitSummary'
        meta:
          $ref: '#/components/schemas/ProfitMeta'
        result:
          $ref: '#/components/schemas/ProfitResultArray'
      required:
        - summary
        - meta
        - result
    ProfitSummary:
      type: object
      properties:
        currentTotal:
          type: number
          description: Total profit for the current period
          example: 10000
        prevTotal:
          type: number
          description: Total profit for the previous period
          example: 8000
        currency:
          type: string
          description: Currency code (ISO 4217)
          example: USD
      required:
        - currentTotal
        - prevTotal
        - currency
    ProfitMeta:
      type: object
      properties:
        type:
          type: string
          enum:
            - profit
          description: Type of metric
          example: profit
        currency:
          type: string
          description: Currency code (ISO 4217)
          example: USD
      required:
        - type
        - currency
    ProfitResultArray:
      type: array
      items:
        $ref: '#/components/schemas/ProfitResultItem'
    ProfitResultItem:
      type: object
      properties:
        date:
          type: string
          description: Date for the metric (ISO 8601)
          example: '2023-01-31'
        percentage:
          $ref: '#/components/schemas/ProfitPercentage'
        current:
          $ref: '#/components/schemas/ProfitCurrent'
        previous:
          $ref: '#/components/schemas/ProfitPrevious'
      required:
        - date
        - percentage
        - current
        - previous
    ProfitPercentage:
      type: object
      properties:
        value:
          type: number
          description: Percentage change compared to previous period
          example: 25
        status:
          type: string
          enum:
            - negative
            - positive
          description: Status of the change
          example: positive
      required:
        - value
        - status
    ProfitCurrent:
      type: object
      properties:
        date:
          type: string
          description: Date for the current value
          example: '2023-01-31'
        value:
          type: number
          description: Current value
          example: 1000
        currency:
          type: string
          description: Currency code (ISO 4217)
          example: USD
      required:
        - date
        - value
        - currency
    ProfitPrevious:
      type: object
      properties:
        date:
          type: string
          description: Date for the previous value
          example: '2022-01-31'
        value:
          type: number
          description: Previous value
          example: 800
        currency:
          type: string
          description: Currency code (ISO 4217)
          example: USD
      required:
        - date
        - value
        - currency
  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.