> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nomi.tools/llms.txt
> Use this file to discover all available pages before exploring further.

# Get counterparty by ID

> Retrieve details of a specific counterparty.



## OpenAPI

````yaml get /v1/counterparties/{id}
openapi: 3.0.0
info:
  title: Counterparties API
  version: 1.0.0
servers:
  - url: https://api.nomi.tools
    description: Main API server
security:
  - basicAuth: []
paths:
  /v1/counterparties/{id}:
    get:
      tags:
        - Counterparties
      summary: Get counterparty by ID
      description: Retrieve details of a specific counterparty.
      operationId: getCounterparty
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: Accept
          in: header
          required: true
          schema:
            type: string
            enum:
              - application/json
            default: application/json
      responses:
        '200':
          description: Counterparty details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Counterparty'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    Counterparty:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the counterparty.
        name:
          type: string
          description: Name of the counterparty.
        externalId:
          type: string
          nullable: true
          description: External identifier for the counterparty.
        balance:
          type: number
          format: float
          description: Current balance of the counterparty.
        notes:
          type: string
          nullable: true
          description: Additional notes about the counterparty.
        isArchived:
          type: boolean
          description: Indicates if the counterparty is archived.
        types:
          type: array
          items:
            type: string
            enum:
              - client
              - supplier
              - partner
              - contractor
              - other
          description: Types associated with the counterparty.
  responses:
    Unauthorized:
      description: Unauthorized access
    Forbidden:
      description: Forbidden access
    NotFound:
      description: Resource not found
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: >
        Use HTTP Basic Authentication.  Provide your email as login and PPT
        token as the password.

````