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

# Read one LTR0009 query and its state

> The stored LTR0009 request, its dispatch state and, once ANSWERED, the câmara's LTR0009R1 body — all projected verbatim. An ANSWERED query whose body this rail does not hold says so in answerAbsent; it never renders as an empty answer.



## OpenAPI

````yaml /es/openapi/v3-current/siloc.yaml get /api/v1/siloc/outbound/ltr-position-queries/{id}
openapi: 3.1.0
info:
  description: >-
    OpenAPI 3.1 surface for Lerian SILOC, the participant-side rail connecting
    the institution to Núclea's SILOC deferred-net interbank settlement.
  title: Lerian SILOC API
  version: 1.0.0
servers:
  - url: https://siloc.sandbox.lerian.net
security: []
paths:
  /api/v1/siloc/outbound/ltr-position-queries/{id}:
    get:
      tags:
        - Card route
      summary: Read one LTR0009 query and its state
      description: >-
        The stored LTR0009 request, its dispatch state and, once ANSWERED, the
        câmara's LTR0009R1 body — all projected verbatim. An ANSWERED query
        whose body this rail does not hold says so in answerAbsent; it never
        renders as an empty answer.
      operationId: getLTRPositionQuery
      parameters:
        - description: Message id.
          in: path
          name: id
          required: true
          schema:
            description: Message id.
            format: uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardMessageResponse'
          description: OK
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
          description: Unprocessable Entity
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
          description: Internal Server Error
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
          description: Error
      security:
        - BearerAuth: []
components:
  schemas:
    CardMessageResponse:
      additionalProperties: false
      properties:
        answer:
          $ref: '#/components/schemas/CardAnswerResponse'
          description: >-
            The câmara's answer body, verbatim. Omitted until the message is
            ANSWERED, and on an ANSWERED message whose body this rail does not
            hold — which answerAbsent then states.
        answerAbsent:
          description: >-
            True only on an ANSWERED message whose answer body this rail does
            not hold (answered before bodies were stored). The câmara did
            answer; what it wrote is not here. Omitted otherwise.
          type: boolean
        answeredAt:
          description: When the câmara's answer was applied; omitted until it is.
          format: date-time
          type: string
        attempts:
          description: Queue-put attempts made so far.
          format: int64
          type: integer
        dispatchedAt:
          description: When the frame reached the send queue; omitted until it has.
          format: date-time
          type: string
        id:
          description: Message id.
          format: uuid
          type: string
        lastError:
          description: Why the last queue put failed; omitted when none has.
          type: string
        numCtrlIF:
          description: >-
            The control number this institution issued (NumCtrlIF). The câmara
            echoes it on the answer, which is what correlates the two.
          type: string
        nuop:
          description: The BCMSG operation number of the frame.
          type: string
        request:
          description: The submitted request, projected verbatim.
        status:
          description: >-
            Lifecycle state. REFUSED means the câmara received the message and
            said no; FAILED means it never reached the wire.
          enum:
            - SUBMITTED
            - DISPATCHED
            - ANSWERED
            - REFUSED
            - FAILED
          type: string
        submittedAt:
          description: When the message was recorded.
          format: date-time
          type: string
      required:
        - id
        - numCtrlIF
        - nuop
        - request
        - status
        - attempts
        - submittedAt
      type: object
    Detail:
      additionalProperties: true
      properties:
        code:
          description: >-
            Stable, machine-readable domain error code scoped to the emitting
            service (format: <SERVICE>-NNNN).
          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
    CardAnswerResponse:
      additionalProperties: false
      properties:
        dtHrLTR:
          description: >-
            The câmara's clock on an acknowledgement leg, verbatim. Absent on a
            position answer.
          type: string
        dtMovto:
          description: Data Movimento the câmara answered with, verbatim (YYYY-MM-DD).
          type: string
        positions:
          description: >-
            The entries an LTR0009R1 returned, verbatim; never null. Populated
            only for LTR0009R1, where an empty array means the câmara matched
            nothing. Always empty on LTR0002R1 and LTR0008R1, whose layouts
            carry no position group.
          items:
            $ref: '#/components/schemas/CardPositionResponse'
          type: array
      required:
        - dtMovto
        - positions
      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
    CardPositionResponse:
      additionalProperties: false
      properties:
        cnpjNLiqdant:
          description: CNPJ of the non-settling member.
          type: string
        dtHrSit:
          description: The câmara's clock on the situation.
          type: string
        hist:
          description: Histórico, verbatim.
          type: string
        identdPartCamr:
          description: Câmara participant identifier.
          type: string
        ispbIFLiqdant:
          description: >-
            The COUNTERPARTY's settlement bank (rule RLTR0003), not this
            institution's.
          type: string
        numCtrlLTROr:
          description: The câmara's control number on the result.
          type: string
        numOpLTR:
          description: Gross-operation number.
          type: string
        sitLancLTR:
          description: >-
            Situação Lançamento LTR, verbatim; enumerated nowhere in the
            catalogue.
          type: string
        tpDebCred:
          description: Débito or crédito, verbatim; the official type enumerates nothing.
          type: string
        vlrCredNLiqdant:
          description: Valor Crédito Não Liquidante, verbatim.
          type: string
        vlrDebNLiqdant:
          description: Valor Débito Não Liquidante, verbatim.
          type: string
        vlrLanc:
          description: Valor Lançamento, exactly as the câmara sent it.
          type: string
      required:
        - numCtrlLTROr
        - cnpjNLiqdant
        - vlrLanc
        - tpDebCred
        - ispbIFLiqdant
        - sitLancLTR
        - dtHrSit
      type: object
  securitySchemes:
    BearerAuth:
      bearerFormat: JWT
      description: JWT bearer token issued by the identity provider.
      scheme: bearer
      type: http

````