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

# Consultar detalhes do Titular



## OpenAPI

````yaml pt/openapi/v3-current/ledger.yaml get /v2/organizations/{organization_id}/holders/{id}
openapi: 3.1.0
info:
  title: API Midaz Ledger
  version: 4.0.0
servers:
  - url: /
security: []
tags:
  - name: Tipos de conta (v1)
  - name: Tipos de conta (v2)
  - name: Contas (v1)
  - name: Contas (v2)
  - name: Taxas de ativos (v1)
  - name: Ativos (v1)
  - name: Ativos (v2)
  - name: Saldos (v1)
  - name: Saldos (v2)
  - name: Cálculo de cobrança (v2)
  - name: Pacotes de cobrança (v2)
  - name: Composição (v2)
  - name: Criptografia (v2)
  - name: Taxas (v2)
  - name: Titulares (v2)
  - name: Instrumentos (v2)
  - name: Ledgers (v1)
  - name: Ledgers (v2)
  - name: Índices de metadados (v1)
  - name: Índices de metadados (v2)
  - name: Rotas de operação (v1)
  - name: Rotas de operação (v2)
  - name: Operações (v1)
  - name: Operações (v2)
  - name: Organizações (v1)
  - name: Organizações (v2)
  - name: Pacotes (v2)
  - name: Portfólios (v1)
  - name: Portfólios (v2)
  - name: Proteção (v2)
  - name: Segmentos (v1)
  - name: Segmentos (v2)
  - name: Rotas de transação (v1)
  - name: Rotas de transação (v2)
  - name: Transações (v1)
  - name: Transações (v2)
paths:
  /v2/organizations/{organization_id}/holders/{id}:
    get:
      tags:
        - Titulares (v2)
      summary: Consultar detalhes do Titular
      operationId: getHolderByIDV2
      parameters:
        - description: Organization ID (UUID)
          in: path
          name: organization_id
          required: true
          schema:
            description: Organization ID (UUID)
            type: string
        - description: Holder ID (UUID)
          in: path
          name: id
          required: true
          schema:
            description: Holder ID (UUID)
            type: string
        - description: Returns the holder even if it was logically deleted (true,false)
          explode: false
          in: query
          name: include_deleted
          schema:
            description: Returns the holder even if it was logically deleted (true,false)
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Holder'
          description: OK
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Error
      security:
        - BearerAuth: []
components:
  schemas:
    Holder:
      additionalProperties: false
      properties:
        addresses:
          $ref: '#/components/schemas/Addresses'
        contact:
          $ref: '#/components/schemas/Contact'
        createdAt:
          examples:
            - '2025-01-01T00:00:00Z'
          format: date-time
          type: string
        deletedAt:
          examples:
            - '2025-01-01T00:00:00Z'
          format: date-time
          type:
            - string
            - 'null'
        document:
          examples:
            - '12345678900'
          maxLength: 100
          type: string
        externalId:
          examples:
            - G4K7N8M2
          maxLength: 256
          type: string
        id:
          examples:
            - 00000000-0000-0000-0000-000000000000
          format: uuid
          type: string
        legalPerson:
          $ref: '#/components/schemas/LegalPerson'
        metadata:
          additionalProperties: {}
          type: object
        name:
          examples:
            - John Doe
          maxLength: 256
          type: string
        naturalPerson:
          $ref: '#/components/schemas/NaturalPerson'
        type:
          examples:
            - NATURAL_PERSON
          maxLength: 100
          type: string
        updatedAt:
          examples:
            - '2025-01-01T00:00:00Z'
          format: date-time
          type: string
      required:
        - createdAt
        - updatedAt
        - deletedAt
      type: object
    Error:
      additionalProperties: false
      properties:
        code:
          description: >-
            Stable, machine-readable domain error code scoped to the emitting
            service (format: <SERVICE>-NNNN).
          examples:
            - ERR-0001
          type: string
        detail:
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          examples:
            - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem.
          examples:
            - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: >-
            A short, human-readable summary of the problem type. This value
            should not change between occurrences of the error.
          examples:
            - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
            - https://example.com/errors/example
          format: uri
          type: string
        upstream:
          $ref: '#/components/schemas/Upstream'
          description: >-
            RFC 9457 extension member: the error a proxied third-party provider
            reported. Absent unless the emitting service explicitly surfaced
            one.
      type: object
    Addresses:
      additionalProperties: false
      properties:
        additional1:
          $ref: '#/components/schemas/Address'
        additional2:
          $ref: '#/components/schemas/Address'
        primary:
          $ref: '#/components/schemas/Address'
      type: object
    Contact:
      additionalProperties: false
      properties:
        mobilePhone:
          examples:
            - '+1555555555'
          maxLength: 32
          type: string
        otherPhone:
          examples:
            - '+1555555555'
          maxLength: 32
          type: string
        primaryEmail:
          examples:
            - john.doe@example.com
          maxLength: 256
          type: string
        secondaryEmail:
          examples:
            - john.doe@example.com
          maxLength: 256
          type: string
      type: object
    LegalPerson:
      additionalProperties: false
      properties:
        activity:
          examples:
            - Electronic devices development
          maxLength: 256
          type: string
        foundingDate:
          examples:
            - '2025-01-01'
          format: date
          type: string
        representative:
          $ref: '#/components/schemas/Representative'
        size:
          examples:
            - Medium
          maxLength: 100
          type: string
        status:
          examples:
            - Active
          maxLength: 100
          type: string
        tradeName:
          examples:
            - Lerian Studio
          maxLength: 256
          type: string
        type:
          examples:
            - Limited Liability
          maxLength: 100
          type: string
      type: object
    NaturalPerson:
      additionalProperties: false
      properties:
        birthDate:
          examples:
            - '1990-01-01'
          format: date
          type: string
        civilStatus:
          examples:
            - Single
          maxLength: 100
          type: string
        fatherName:
          examples:
            - John Doe
          maxLength: 256
          type: string
        favoriteName:
          examples:
            - John
          maxLength: 256
          type: string
        gender:
          examples:
            - Male
          maxLength: 100
          type: string
        motherName:
          examples:
            - Jane Doe
          maxLength: 256
          type: string
        nationality:
          examples:
            - Brazilian
          maxLength: 100
          type: string
        socialName:
          examples:
            - John Doe
          maxLength: 256
          type: string
        status:
          examples:
            - Active
          maxLength: 100
          type: string
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
    Upstream:
      additionalProperties: false
      properties:
        code:
          description: The upstream provider's own error code, verbatim.
          examples:
            - E4001
          type: string
        message:
          description: >-
            The upstream provider's own error message, verbatim (bounded, never
            its raw response body).
          examples:
            - account not found at provider
          type: string
      type: object
    Address:
      additionalProperties: false
      properties:
        city:
          examples:
            - New York
          maxLength: 100
          type: string
        country:
          examples:
            - US
          maxLength: 2
          minLength: 2
          type: string
        description:
          examples:
            - Home
          maxLength: 100
          type: string
        line1:
          examples:
            - 123 Financial Avenue
          maxLength: 256
          type: string
        line2:
          examples:
            - Suite 1500
          maxLength: 256
          type:
            - string
            - 'null'
        state:
          examples:
            - NY
          maxLength: 100
          type: string
        zipCode:
          examples:
            - '10001'
          maxLength: 20
          type: string
      required:
        - line1
        - line2
        - zipCode
        - city
        - state
        - country
      type: object
    Representative:
      additionalProperties: false
      properties:
        document:
          examples:
            - '12345678900'
          maxLength: 100
          type: string
        email:
          examples:
            - john.doe@example.com
          maxLength: 256
          type: string
        name:
          examples:
            - John Doe
          maxLength: 256
          type: string
        role:
          examples:
            - CFO
          maxLength: 100
          type: string
      type: object
  securitySchemes:
    BearerAuth:
      bearerFormat: JWT
      description: JWT bearer token issued by the identity provider.
      scheme: bearer
      type: http

````