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

# Retrieve a merchant

> Retrieve a merchant by ID for the authenticated team.



## OpenAPI

````yaml get /merchants/{id}
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/{id}:
    get:
      tags:
        - Merchants
      summary: Retrieve a merchant
      description: Retrieve a merchant by ID for the authenticated team.
      operationId: getMerchantById
      parameters:
        - schema:
            type: string
            description: Unique identifier of the merchant to retrieve
            example: b3b7c1e2-4c2a-4e7a-9c1a-2b7c1e24c2a4
          required: true
          description: Unique identifier of the merchant to retrieve
          in: path
          name: id
      responses:
        '200':
          description: Retrieve a merchant by ID for the authenticated team.
          content:
            application/json:
              schema:
                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
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.