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

# Deal summary

> Get summary of deals for the authenticated team.



## OpenAPI

````yaml get /deals/summary
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:
  /deals/summary:
    get:
      tags:
        - Deals
      summary: Deal summary
      description: Get summary of deals for the authenticated team.
      operationId: getDealSummary
      parameters:
        - schema:
            type: array
            items:
              type: string
              enum:
                - draft
                - overdue
                - paid
                - unpaid
                - canceled
                - scheduled
            description: Filter summary by deal statuses
            example:
              - draft
              - unpaid
          required: false
          description: Filter summary by deal statuses
          in: query
          name: statuses
      responses:
        '200':
          description: Summary of deals for the authenticated team.
          content:
            application/json:
              schema:
                type: object
                properties:
                  currency:
                    type: string
                    description: Base currency of the team
                    example: USD
                  totalAmount:
                    type: number
                    description: Total amount of all deals converted to base currency
                    example: 224171.25
                  dealCount:
                    type: number
                    description: Total number of deals
                    example: 15
                  breakdown:
                    type: array
                    items:
                      type: object
                      properties:
                        currency:
                          type: string
                          description: Original currency of the deals
                          example: EUR
                        originalAmount:
                          type: number
                          description: Total amount in original currency
                          example: 15000.5
                        convertedAmount:
                          type: number
                          description: Amount converted to base currency
                          example: 16250.75
                        count:
                          type: number
                          description: Number of deals in this currency
                          example: 5
                      required:
                        - currency
                        - originalAmount
                        - convertedAmount
                        - count
                    description: Currency breakdown when multiple currencies are involved
                    example:
                      - currency: EUR
                        originalAmount: 15000.5
                        convertedAmount: 16250.75
                        count: 5
                      - currency: GBP
                        originalAmount: 8000.25
                        convertedAmount: 9200.5
                        count: 3
                required:
                  - currency
                  - totalAmount
                  - dealCount
                description: >-
                  Deal summary object containing total amount converted to
                  team's base currency and total deal count.
                example:
                  currency: USD
                  totalAmount: 224171.25
                  dealCount: 15
                  breakdown:
                    - currency: EUR
                      originalAmount: 15000.5
                      convertedAmount: 16250.75
                      count: 5
                    - currency: GBP
                      originalAmount: 8000.25
                      convertedAmount: 9200.5
                      count: 3
components:
  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.