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

# Revenue reports

> Revenue reports for the authenticated team.



## OpenAPI

````yaml get /reports/revenue
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/revenue:
    get:
      tags:
        - Reports
      summary: Revenue reports
      description: Revenue reports for the authenticated team.
      operationId: getRevenueReports
      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: Revenue reports for the authenticated team.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetRevenueResponseSchema'
components:
  schemas:
    GetRevenueResponseSchema:
      type: object
      properties:
        summary:
          $ref: '#/components/schemas/RevenueSummary'
        meta:
          $ref: '#/components/schemas/RevenueMeta'
        result:
          $ref: '#/components/schemas/RevenueResultArray'
      required:
        - summary
        - meta
        - result
    RevenueSummary:
      type: object
      properties:
        currentTotal:
          type: number
          description: Total revenue for the current period
          example: 10000
        prevTotal:
          type: number
          description: Total revenue for the previous period
          example: 8000
        currency:
          type: string
          description: Currency code (ISO 4217)
          example: USD
      required:
        - currentTotal
        - prevTotal
        - currency
    RevenueMeta:
      type: object
      properties:
        type:
          type: string
          enum:
            - revenue
          description: Type of metric
          example: revenue
        currency:
          type: string
          description: Currency code (ISO 4217)
          example: USD
      required:
        - type
        - currency
    RevenueResultArray:
      type: array
      items:
        $ref: '#/components/schemas/RevenueResultItem'
    RevenueResultItem:
      type: object
      properties:
        date:
          type: string
          description: Date for the metric (ISO 8601)
          example: '2023-01-31'
        percentage:
          $ref: '#/components/schemas/RevenuePercentage'
        current:
          $ref: '#/components/schemas/RevenueCurrent'
        previous:
          $ref: '#/components/schemas/RevenuePrevious'
      required:
        - date
        - percentage
        - current
        - previous
    RevenuePercentage:
      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
    RevenueCurrent:
      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
    RevenuePrevious:
      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.