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

# List all transactions

> Retrieve a list of transactions for the authenticated team.



## OpenAPI

````yaml get /transactions
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:
  /transactions:
    get:
      tags:
        - Transactions
      summary: List all transactions
      description: Retrieve a list of transactions for the authenticated team.
      operationId: listTransactions
      parameters:
        - schema:
            type: string
            nullable: true
            description: >-
              Cursor for pagination, representing the last item from the
              previous page
            example: eyJpZCI6IjEyMyJ9
          required: false
          description: >-
            Cursor for pagination, representing the last item from the previous
            page
          in: query
          name: cursor
        - schema:
            type: array
            nullable: true
            items:
              type: string
              minLength: 1
            minItems: 2
            maxItems: 2
            description: >-
              Sorting order as a tuple: [field, direction]. Example: ['date',
              'desc'] or ['amount', 'asc']
            example:
              - date
              - desc
          required: false
          description: >-
            Sorting order as a tuple: [field, direction]. Example: ['date',
            'desc'] or ['amount', 'asc']
          in: query
          name: sort
        - schema:
            type: number
            minimum: 1
            maximum: 10000
            description: Number of transactions to return per page (1-10000)
            example: 50
          required: false
          description: Number of transactions to return per page (1-10000)
          in: query
          name: pageSize
        - schema:
            type: string
            nullable: true
            description: >-
              Search query string to filter transactions by name, description,
              or other text fields
            example: office supplies
          required: false
          description: >-
            Search query string to filter transactions by name, description, or
            other text fields
          in: query
          name: q
        - schema:
            type: array
            nullable: true
            items:
              type: string
            description: >-
              Array of category slugs to filter transactions by specific
              categories
            example:
              - office-supplies
              - travel
          required: false
          description: >-
            Array of category slugs to filter transactions by specific
            categories
          in: query
          name: categories
        - schema:
            type: array
            nullable: true
            items:
              type: string
            description: Array of tag IDs to filter transactions by specific tags
            example:
              - tag-1
              - tag-2
          required: false
          description: Array of tag IDs to filter transactions by specific tags
          in: query
          name: tags
        - schema:
            type: string
            nullable: true
            description: >-
              Start date (inclusive) for filtering transactions in ISO 8601
              format
            example: '2024-04-01T00:00:00.000Z'
          required: false
          description: Start date (inclusive) for filtering transactions in ISO 8601 format
          in: query
          name: start
        - schema:
            type: string
            nullable: true
            description: End date (inclusive) for filtering transactions in ISO 8601 format
            example: '2024-04-30T23:59:59.999Z'
          required: false
          description: End date (inclusive) for filtering transactions in ISO 8601 format
          in: query
          name: end
        - schema:
            type: array
            nullable: true
            items:
              type: string
            description: >-
              Array of bank account IDs to filter transactions by specific
              accounts
            example:
              - account-1
              - account-2
          required: false
          description: >-
            Array of bank account IDs to filter transactions by specific
            accounts
          in: query
          name: accounts
        - schema:
            type: array
            nullable: true
            items:
              type: string
            description: Array of user IDs to filter transactions by assigned users
            example:
              - user-1
              - user-2
          required: false
          description: Array of user IDs to filter transactions by assigned users
          in: query
          name: assignees
        - schema:
            type: array
            nullable: true
            items:
              type: string
            description: >-
              Array of transaction statuses to filter by. Available statuses:
              'pending', 'posted', 'failed', 'refund', 'funding', 'excluded'
            example:
              - pending
              - posted
          required: false
          description: >-
            Array of transaction statuses to filter by. Available statuses:
            'pending', 'posted', 'failed', 'refund', 'funding', 'excluded'
          in: query
          name: statuses
        - schema:
            type: array
            nullable: true
            items:
              type: string
            description: >-
              Array of recurring frequency values to filter by. Available
              frequencies: 'weekly', 'monthly', 'annually', 'irregular'
            example:
              - monthly
              - annually
          required: false
          description: >-
            Array of recurring frequency values to filter by. Available
            frequencies: 'weekly', 'monthly', 'annually', 'irregular'
          in: query
          name: recurring
        - schema:
            type: string
            nullable: true
            enum:
              - include
              - exclude
              - null
            description: >-
              Filter transactions based on attachment presence. 'include'
              returns only transactions with attachments, 'exclude' returns only
              transactions without attachments
            example: include
          required: false
          description: >-
            Filter transactions based on attachment presence. 'include' returns
            only transactions with attachments, 'exclude' returns only
            transactions without attachments
          in: query
          name: attachments
        - schema:
            type: array
            nullable: true
            items:
              type: number
              nullable: true
            description: >-
              Amount range as [min, max] to filter transactions by monetary
              value
            example:
              - 100
              - 1000
          required: false
          description: Amount range as [min, max] to filter transactions by monetary value
          in: query
          name: amountRange
        - schema:
            type: array
            nullable: true
            items:
              type: string
            description: >-
              Array of specific amounts (as strings) to filter transactions by
              exact values
            example:
              - '150.75'
              - '299.99'
          required: false
          description: >-
            Array of specific amounts (as strings) to filter transactions by
            exact values
          in: query
          name: amount
        - schema:
            type: string
            nullable: true
            enum:
              - income
              - expense
              - credit
              - debit
              - null
            description: >-
              Transaction type to filter by. 'credit' for inbound funds, 'debit'
              for outbound. Legacy: 'income'/'expense'
            example: credit
          required: false
          description: >-
            Transaction type to filter by. 'credit' for inbound funds, 'debit'
            for outbound. Legacy: 'income'/'expense'
          in: query
          name: type
        - schema:
            type: string
            nullable: true
            enum:
              - include
              - exclude
              - null
            description: >-
              Filter transactions based on whether they were manually imported.
              'include' returns only manual transactions, 'exclude' returns only
              non-manual transactions
            example: include
          required: false
          description: >-
            Filter transactions based on whether they were manually imported.
            'include' returns only manual transactions, 'exclude' returns only
            non-manual transactions
          in: query
          name: manual
        - schema:
            type: boolean
            nullable: true
            description: >-
              Filter by export status. true = only exported transactions, false
              = only NOT exported transactions, undefined = no filter
            example: false
          required: false
          description: >-
            Filter by export status. true = only exported transactions, false =
            only NOT exported transactions, undefined = no filter
          in: query
          name: exported
        - schema:
            type: boolean
            nullable: true
            description: >-
              Filter by fulfillment status. true = transactions ready for review
              (has attachments OR status=completed), false = not ready,
              undefined = no filter
            example: true
          required: false
          description: >-
            Filter by fulfillment status. true = transactions ready for review
            (has attachments OR status=completed), false = not ready, undefined
            = no filter
          in: query
          name: fulfilled
        - schema:
            type: array
            nullable: true
            items:
              type: string
              enum:
                - merchant
                - syndicator
                - vendor
                - bank
                - internal
                - broker
            description: >-
              Array of entity types to filter transactions by. Available types:
              'merchant', 'syndicator', 'vendor', 'bank', 'internal', 'broker'
            example:
              - merchant
              - syndicator
          required: false
          description: >-
            Array of entity types to filter transactions by. Available types:
            'merchant', 'syndicator', 'vendor', 'bank', 'internal', 'broker'
          in: query
          name: entityTypes
        - schema:
            type: array
            nullable: true
            items:
              type: string
              enum:
                - bank_import
                - manual
                - syndication
            description: >-
              Array of transaction sources to filter by. Available sources:
              'bank_import', 'manual', 'syndication'
            example:
              - bank_import
          required: false
          description: >-
            Array of transaction sources to filter by. Available sources:
            'bank_import', 'manual', 'syndication'
          in: query
          name: sources
        - schema:
            type: array
            nullable: true
            items:
              type: string
              enum:
                - unmatched
                - auto_matched
                - suggested
                - manual_matched
                - flagged
                - excluded
            description: >-
              Array of match statuses to filter transactions by reconciliation
              state
            example:
              - unmatched
              - flagged
          required: false
          description: >-
            Array of match statuses to filter transactions by reconciliation
            state
          in: query
          name: matchStatuses
        - schema:
            type: array
            nullable: true
            items:
              type: string
              enum:
                - nsf
                - short_pay
                - partial_payment
                - stacking_suspected
                - revenue_decline
                - contact_merchant
                - duplicate
                - overpayment
                - unrecognized
                - bank_fee
                - split_payment
            description: Array of discrepancy types to filter transactions by flag type
            example:
              - nsf
              - short_pay
          required: false
          description: Array of discrepancy types to filter transactions by flag type
          in: query
          name: discrepancyTypes
        - schema:
            type: array
            nullable: true
            items:
              type: string
            description: Array of merchant IDs to filter transactions by specific merchants
            example:
              - merchant-uuid-1
          required: false
          description: Array of merchant IDs to filter transactions by specific merchants
          in: query
          name: merchants
        - schema:
            type: array
            nullable: true
            items:
              type: string
              enum:
                - credit
                - debit
            description: >-
              Array of transaction types to filter by. Available types:
              'credit', 'debit'
            example:
              - credit
              - debit
          required: false
          description: >-
            Array of transaction types to filter by. Available types: 'credit',
            'debit'
          in: query
          name: transactionTypes
        - schema:
            type: array
            nullable: true
            items:
              type: string
            description: >-
              Array of transaction methods to filter by. Available methods:
              'ach', 'same_day_ach', 'wire', 'check', 'manual', 'zelle',
              'card_purchase', 'transfer', 'deposit', 'fee'
            example:
              - ach
              - wire
          required: false
          description: >-
            Array of transaction methods to filter by. Available methods: 'ach',
            'same_day_ach', 'wire', 'check', 'manual', 'zelle', 'card_purchase',
            'transfer', 'deposit', 'fee'
          in: query
          name: methods
        - schema:
            type: boolean
            nullable: true
            description: >-
              Filter by review status. true = only reviewed transactions, false
              = only unreviewed, undefined = no filter
            example: false
          required: false
          description: >-
            Filter by review status. true = only reviewed transactions, false =
            only unreviewed, undefined = no filter
          in: query
          name: reviewed
      responses:
        '200':
          description: Retrieve a list of transactions for the authenticated team.
          content:
            application/json:
              schema:
                type: object
                properties:
                  meta:
                    type: object
                    properties:
                      cursor:
                        type: string
                        description: >-
                          Cursor for the next page of results, undefined if no
                          more pages
                        example: eyJpZCI6IjQ1NiJ9
                      hasPreviousPage:
                        type: boolean
                        description: >-
                          Whether there are more transactions available on the
                          previous page
                        example: false
                      hasNextPage:
                        type: boolean
                        description: >-
                          Whether there are more transactions available on the
                          next page
                        example: true
                    required:
                      - hasPreviousPage
                      - hasNextPage
                    description: Pagination metadata for the transactions response
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/TransactionResponse'
                    description: Array of transactions matching the query criteria
                required:
                  - meta
                  - data
components:
  schemas:
    TransactionResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier of the transaction
          example: b3b7c8e2-1f2a-4c3d-9e4f-5a6b7c8d9e0f
        name:
          type: string
          description: Name or description of the transaction
          example: Office Supplies Purchase
        amount:
          type: number
          description: Monetary amount of the transaction
          example: 150.75
        currency:
          type: string
          description: Currency code of the transaction in ISO 4217 format
          example: USD
        counterpartyName:
          type: string
          nullable: true
          description: Name of the counterparty
          example: Spotify AB
        date:
          type: string
          description: Date and time of the transaction in ISO 8601 format
          example: '2024-05-01T12:00:00.000Z'
        category:
          type: object
          nullable: true
          properties:
            id:
              type: string
              description: Unique identifier of the category
              example: office-supplies
            name:
              type: string
              description: Display name of the category
              example: Office Supplies
            color:
              type: string
              description: Hex color code associated with the category for UI display
              example: '#FF5733'
            slug:
              type: string
              description: URL-friendly slug of the category
              example: office-supplies
          required:
            - id
            - name
            - color
            - slug
          description: Category information assigned to the transaction for organization
          example:
            id: office-supplies
            name: Office Supplies
            color: '#FF5733'
            slug: office-supplies
        transactionType:
          type: string
          nullable: true
          enum:
            - credit
            - debit
            - null
          description: Transaction type classification
          example: credit
        status:
          type: string
          description: Current status of the transaction
          example: posted
        internal:
          type: boolean
          nullable: true
          description: Whether the transaction is internal (between own accounts)
          example: false
        recurring:
          type: boolean
          nullable: true
          description: Whether the transaction is part of a recurring series
          example: false
        manual:
          type: boolean
          nullable: true
          description: >-
            Whether the transaction was created manually (via API/form) rather
            than imported from bank connections
          example: false
        frequency:
          type: string
          nullable: true
          description: >-
            Frequency of the recurring transaction if applicable (weekly,
            monthly, annually, irregular)
          example: monthly
        parentTransactionId:
          type: string
          nullable: true
          format: uuid
          description: >-
            ID of the parent transaction if this is a child (e.g., NSF fee
            linked to original attempt)
          example: null
        isFulfilled:
          type: boolean
          description: Whether the transaction has been fulfilled or processed
          example: true
        note:
          type: string
          nullable: true
          description: Optional note or memo attached to the transaction
          example: Paid with company credit card for office renovation
        entityId:
          type: string
          nullable: true
          description: ID of the linked entity (merchant, broker, etc.)
        entityType:
          type: string
          nullable: true
          description: Type of the linked entity
        entityName:
          type: string
          nullable: true
          description: Display name of the linked entity
        entityCompanyName:
          type: string
          nullable: true
          description: Company name of the linked entity
        dealCode:
          type: string
          nullable: true
          description: Code of the matched MCA deal
        matchStatus:
          type: string
          nullable: true
          description: Status of the deal match
        matchedDealId:
          type: string
          nullable: true
          description: ID of the matched MCA deal
        dealMerchantName:
          type: string
          nullable: true
          description: Merchant name from the matched deal
        discrepancyType:
          type: string
          nullable: true
          enum:
            - nsf
            - short_pay
            - partial_payment
            - stacking_suspected
            - revenue_decline
            - contact_merchant
            - duplicate
            - overpayment
            - unrecognized
            - bank_fee
            - split_payment
            - null
          description: Flag type for review
        assigned:
          type: object
          nullable: true
          properties:
            id:
              type: string
              nullable: true
            fullName:
              type: string
              nullable: true
            avatarUrl:
              type: string
              nullable: true
          required:
            - id
            - fullName
            - avatarUrl
          description: User assigned to review this transaction
        account:
          type: object
          properties:
            id:
              type: string
              description: Unique identifier of the bank account
              example: a43dc3a5-6925-4d91-ac9c-4c1a34bdb388
            name:
              type: string
              description: Display name of the bank account
              example: Company Credit Card
            currency:
              type: string
              description: Currency of the bank account in ISO 4217 format
              example: USD
            connection:
              type: object
              properties:
                id:
                  type: string
                  description: Unique identifier of the bank connection
                  example: a43dc3a5-6925-4d91-ac9c-4c1a34bdb388
                name:
                  type: string
                  description: Name of the bank institution
                  example: Chase Bank
                logoUrl:
                  type: string
                  nullable: true
                  description: URL to the bank institution's logo image
                  example: https://logo.clearbit.com/chase.com
              required:
                - id
                - name
                - logoUrl
              description: Bank connection information associated with the account
              example:
                id: a43dc3a5-6925-4d91-ac9c-4c1a34bdb388
                name: Chase Bank
                logoUrl: https://logo.clearbit.com/chase.com
          required:
            - id
            - name
            - currency
            - connection
          description: Bank account information associated with the transaction
          example:
            id: a43dc3a5-6925-4d91-ac9c-4c1a34bdb388
            name: Company Credit Card
            currency: USD
            connection:
              id: a43dc3a5-6925-4d91-ac9c-4c1a34bdb388
              name: Chase Bank
              logoUrl: https://logo.clearbit.com/chase.com
        tags:
          type: array
          nullable: true
          items:
            type: object
            properties:
              id:
                type: string
                description: Unique identifier of the tag
                example: b7e2f8c1-3d4a-4e2b-9f1a-2c3d4e5f6a7b
              name:
                type: string
                nullable: true
                description: Display name of the tag
                example: invoice
            required:
              - id
              - name
          description: >-
            Array of tags associated with the transaction for categorization and
            filtering
          example:
            - id: b7e2f8c1-3d4a-4e2b-9f1a-2c3d4e5f6a7b
              name: invoice
            - id: c8e2f8c1-3d4a-4e2b-9f1a-2c3d4e5f6a7c
              name: travel
        attachments:
          type: array
          nullable: true
          items:
            type: object
            properties:
              id:
                type: string
                description: Unique identifier of the attachment
                example: a43dc3a5-6925-4d91-ac9c-4c1a34bdb388
              path:
                type: array
                items:
                  type: string
                description: >-
                  Array of path segments for the attachment file storage
                  location
                example:
                  - dd6a039e-d071-423a-9a4d-9ba71325d890
                  - transactions
                  - 1d2c3753-79d7-45b0-9c40-60f482bac8e8
                  - receipt.pdf
              size:
                type: number
                description: Size of the attachment file in bytes
                example: 1928716
              type:
                type: string
                description: MIME type of the attachment file
                example: application/pdf
              filename:
                type: string
                nullable: true
                description: Original filename of the attachment when uploaded
                example: receipt.pdf
            required:
              - id
              - path
              - size
              - type
              - filename
          description: >-
            Array of file attachments associated with the transaction (receipts,
            invoices, etc.)
          example:
            - id: b7e2f8c1-3d4a-4e2b-9f1a-2c3d4e5f6a7b
              path:
                - e1f2d3c4-b5a6-7d8e-9f0a-1b2c3d4e5f6a
                - transactions
                - 9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
                - receipt.pdf
              size: 1928716
              type: application/pdf
              filename: receipt.pdf
      required:
        - id
        - name
        - amount
        - currency
        - counterpartyName
        - date
        - category
        - transactionType
        - status
        - internal
        - recurring
        - manual
        - frequency
        - isFulfilled
        - note
        - entityId
        - entityType
        - entityName
        - entityCompanyName
        - dealCode
        - matchStatus
        - matchedDealId
        - dealMerchantName
        - discrepancyType
        - assigned
        - account
        - tags
        - attachments
  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.