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

> Retrieve a list of merchants for the authenticated team.



## OpenAPI

````yaml get /merchants
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:
  /merchants:
    get:
      tags:
        - Merchants
      summary: List all merchants
      description: Retrieve a list of merchants for the authenticated team.
      operationId: listMerchants
      parameters:
        - schema:
            type: string
            nullable: true
            description: >-
              Search query string to filter merchants by name, email, or other
              text fields
            example: acme
          required: false
          description: >-
            Search query string to filter merchants by name, email, or other
            text fields
          in: query
          name: q
        - schema:
            type: array
            nullable: true
            items:
              type: string
              minLength: 1
            minItems: 2
            maxItems: 2
            description: >-
              Sorting order as a tuple: [field, direction]. Example: ['name',
              'asc'] or ['createdAt', 'desc']
            example:
              - name
              - asc
          required: false
          description: >-
            Sorting order as a tuple: [field, direction]. Example: ['name',
            'asc'] or ['createdAt', 'desc']
          in: query
          name: sort
        - schema:
            type: array
            nullable: true
            items:
              type: string
            description: >-
              Filter by merchant status. Possible values: active, inactive,
              prospect, churned
            example:
              - active
              - prospect
          required: false
          description: >-
            Filter by merchant status. Possible values: active, inactive,
            prospect, churned
          in: query
          name: statuses
        - schema:
            type: integer
            nullable: true
            minimum: 0
            description: Minimum number of deals for a merchant
            example: 1
          required: false
          description: Minimum number of deals for a merchant
          in: query
          name: minDeals
        - schema:
            type: integer
            nullable: true
            minimum: 0
            description: Maximum number of deals for a merchant
            example: 10
          required: false
          description: Maximum number of deals for a merchant
          in: query
          name: maxDeals
        - schema:
            type: number
            nullable: true
            minimum: 0
            description: Minimum total funded amount
            example: 10000
          required: false
          description: Minimum total funded amount
          in: query
          name: minFunded
        - schema:
            type: number
            nullable: true
            minimum: 0
            description: Maximum total funded amount
            example: 500000
          required: false
          description: Maximum total funded amount
          in: query
          name: maxFunded
        - schema:
            type: number
            nullable: true
            minimum: 0
            description: Minimum payback balance
            example: 0
          required: false
          description: Minimum payback balance
          in: query
          name: minBalance
        - schema:
            type: number
            nullable: true
            minimum: 0
            description: Maximum payback balance
            example: 100000
          required: false
          description: Maximum payback balance
          in: query
          name: maxBalance
        - schema:
            type: integer
            nullable: true
            minimum: 0
            description: Minimum NSF count threshold
            example: 1
          required: false
          description: Minimum NSF count threshold
          in: query
          name: minNsfCount
        - schema:
            type: array
            nullable: true
            items:
              type: string
            description: Filter by merchant industry
            example:
              - Retail
              - Restaurant
          required: false
          description: Filter by merchant industry
          in: query
          name: industries
        - schema:
            type: string
            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: number
            minimum: 1
            maximum: 100
            description: Number of merchants to return per page (1-100)
            example: 20
          required: false
          description: Number of merchants to return per page (1-100)
          in: query
          name: pageSize
      responses:
        '200':
          description: Retrieve a list of merchants for the authenticated team.
          content:
            application/json:
              schema:
                type: object
                properties:
                  meta:
                    type: object
                    properties:
                      cursor:
                        type: string
                        nullable: true
                        description: >-
                          Cursor for the next page of results, null if no more
                          pages
                        example: eyJpZCI6IjQ1NiJ9
                      hasPreviousPage:
                        type: boolean
                        description: >-
                          Whether there are more merchants available on the
                          previous page
                        example: false
                      hasNextPage:
                        type: boolean
                        description: >-
                          Whether there are more merchants available on the next
                          page
                        example: true
                    required:
                      - cursor
                      - hasPreviousPage
                      - hasNextPage
                    description: Pagination metadata for the merchants response
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                          description: Unique identifier of the merchant
                          example: b3b7c1e2-4c2a-4e7a-9c1a-2b7c1e24c2a4
                        name:
                          type: string
                          description: Name of the merchant or organization
                          example: Acme Corporation
                        email:
                          type: string
                          format: email
                          description: Primary email address of the merchant
                          example: contact@acme.com
                        billingEmail:
                          type: string
                          nullable: true
                          description: >-
                            Billing email addresses of the merchant
                            (comma-separated for multiple)
                          example: finance@acme.com, accounting@acme.com
                        phone:
                          type: string
                          nullable: true
                          description: Primary phone number of the merchant
                          example: +1-555-123-4567
                        website:
                          type: string
                          nullable: true
                          description: Website URL of the merchant
                          example: https://acme.com
                        createdAt:
                          type: string
                          description: >-
                            Date and time when the merchant was created in ISO
                            8601 format
                          example: '2024-05-01T12:34:56.789Z'
                        country:
                          type: string
                          nullable: true
                          description: Country name where the merchant is located
                          example: United States
                        addressLine1:
                          type: string
                          nullable: true
                          description: First line of the merchant's address
                          example: 123 Main Street
                        addressLine2:
                          type: string
                          nullable: true
                          description: >-
                            Second line of the merchant's address (suite,
                            apartment, etc.)
                          example: Suite 400
                        city:
                          type: string
                          nullable: true
                          description: City where the merchant is located
                          example: San Francisco
                        state:
                          type: string
                          nullable: true
                          description: State or province where the merchant is located
                          example: California
                        zip:
                          type: string
                          nullable: true
                          description: ZIP or postal code of the merchant's address
                          example: '94105'
                        note:
                          type: string
                          nullable: true
                          description: Internal notes about the merchant for team reference
                          example: >-
                            Preferred contact method is email. Large enterprise
                            client.
                        vatNumber:
                          type: string
                          nullable: true
                          description: VAT (Value Added Tax) number of the merchant
                          example: US123456789
                        countryCode:
                          type: string
                          nullable: true
                          description: Country code in ISO 3166-1 alpha-2 format
                          example: US
                        token:
                          type: string
                          description: >-
                            Unique token for the merchant (used for internal
                            identification)
                          example: cus_abc123xyz789
                        contact:
                          type: string
                          nullable: true
                          description: >-
                            Primary contact person's name at the merchant
                            organization
                          example: John Smith
                        dealCount:
                          type: number
                          description: Total number of deals created for this merchant
                          example: 12
                        projectCount:
                          type: number
                          description: >-
                            Total number of projects associated with this
                            merchant
                          example: 3
                        totalRevenue:
                          type: number
                          description: >-
                            Total revenue from paid deals for this merchant (in
                            deal currency). Only returned in list queries.
                          example: 15000.5
                        outstandingAmount:
                          type: number
                          description: >-
                            Total outstanding amount from unpaid/overdue deals
                            (in deal currency). Only returned in list queries.
                          example: 2500
                        lastDealDate:
                          type: string
                          nullable: true
                          description: >-
                            Date of the most recent deal in ISO 8601 format.
                            Only returned in list queries.
                          example: '2024-04-15'
                        dealCurrency:
                          type: string
                          nullable: true
                          description: >-
                            Primary currency used in deals for this merchant.
                            Only returned in list queries.
                          example: USD
                        tags:
                          type: array
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                                format: uuid
                                description: Unique identifier of the tag
                                example: e7a9c1a2-4c2a-4e7a-9c1a-2b7c1e24c2a4
                              name:
                                type: string
                                description: Display name of the tag
                                example: VIP
                            required:
                              - id
                              - name
                          description: >-
                            Array of tags associated with the merchant for
                            categorization
                          example:
                            - id: e7a9c1a2-4c2a-4e7a-9c1a-2b7c1e24c2a4
                              name: VIP
                            - id: f1b2c3d4-5678-4e7a-9c1a-2b7c1e24c2a4
                              name: Enterprise
                        description:
                          type: string
                          nullable: true
                          description: AI-generated description of what the company does
                          example: >-
                            A cloud-based project management platform for remote
                            teams.
                        industry:
                          type: string
                          nullable: true
                          description: Primary industry of the company
                          example: Software
                        companyType:
                          type: string
                          nullable: true
                          description: Business model type
                          example: SaaS
                        employeeCount:
                          type: string
                          nullable: true
                          description: Estimated number of employees
                          example: 51-200
                        foundedYear:
                          type: number
                          nullable: true
                          description: Year the company was founded
                          example: 2018
                        estimatedRevenue:
                          type: string
                          nullable: true
                          description: Estimated annual revenue range
                          example: $10M-$50M
                        fundingStage:
                          type: string
                          nullable: true
                          description: Current funding stage
                          example: Series A
                        totalFunding:
                          type: string
                          nullable: true
                          description: Total funding raised
                          example: $15M
                        headquartersLocation:
                          type: string
                          nullable: true
                          description: Company headquarters location
                          example: San Francisco, CA
                        timezone:
                          type: string
                          nullable: true
                          description: IANA timezone of the company headquarters
                          example: America/Los_Angeles
                        linkedinUrl:
                          type: string
                          nullable: true
                          description: LinkedIn company page URL
                          example: https://linkedin.com/company/acme
                        twitterUrl:
                          type: string
                          nullable: true
                          description: Twitter/X profile URL
                          example: https://twitter.com/acme
                        instagramUrl:
                          type: string
                          nullable: true
                          description: Instagram profile URL
                          example: https://instagram.com/acme
                        facebookUrl:
                          type: string
                          nullable: true
                          description: Facebook page URL
                          example: https://facebook.com/acme
                        logoUrl:
                          type: string
                          nullable: true
                          description: URL to the company logo
                          example: https://example.com/logo.png
                        ceoName:
                          type: string
                          nullable: true
                          description: Name of the CEO or founder
                          example: Jane Smith
                        financeContact:
                          type: string
                          nullable: true
                          description: Name of the finance/AP contact for invoicing
                          example: John Doe
                        financeContactEmail:
                          type: string
                          nullable: true
                          description: Email of the finance/AP contact
                          example: finance@acme.com
                        primaryLanguage:
                          type: string
                          nullable: true
                          description: Primary business language (ISO 639-1 code)
                          example: en
                        fiscalYearEnd:
                          type: string
                          nullable: true
                          description: Month when the fiscal year ends
                          example: December
                        enrichmentStatus:
                          type: string
                          nullable: true
                          description: Status of the enrichment process
                          example: completed
                        enrichedAt:
                          type: string
                          nullable: true
                          description: When the merchant was last enriched
                          example: '2024-05-01T12:34:56.789Z'
                      required:
                        - id
                        - name
                        - email
                        - billingEmail
                        - phone
                        - website
                        - createdAt
                        - country
                        - addressLine1
                        - addressLine2
                        - city
                        - state
                        - zip
                        - note
                        - vatNumber
                        - countryCode
                        - token
                        - contact
                        - dealCount
                        - projectCount
                        - tags
                        - description
                        - industry
                        - companyType
                        - employeeCount
                        - foundedYear
                        - estimatedRevenue
                        - fundingStage
                        - totalFunding
                        - headquartersLocation
                        - timezone
                        - linkedinUrl
                        - twitterUrl
                        - instagramUrl
                        - facebookUrl
                        - logoUrl
                        - ceoName
                        - financeContact
                        - financeContactEmail
                        - primaryLanguage
                        - fiscalYearEnd
                        - enrichmentStatus
                        - enrichedAt
                    description: Array of merchants matching the query criteria
                required:
                  - meta
                  - data
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.