> ## 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 card-route command

> One command Lerian SLC issued, the message it produced, and — for an answered position query — every entry the câmara returned, verbatim.



## OpenAPI

````yaml /pt/openapi/v3-current/siloc.yaml get /api/v1/siloc/outbound/card-commands/{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/card-commands/{id}:
    get:
      tags:
        - Card route
      summary: Read one card-route command
      description: >-
        One command Lerian SLC issued, the message it produced, and — for an
        answered position query — every entry the câmara returned, verbatim.
      operationId: getCardCommand
      parameters:
        - description: Command id.
          in: path
          name: id
          required: true
          schema:
            description: Command id.
            format: uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardCommandResponse'
          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:
    CardCommandResponse:
      additionalProperties: false
      properties:
        acceptedAt:
          description: When the message reached the send leg.
          format: date-time
          type: string
        answer:
          $ref: '#/components/schemas/CardAnswerResponse'
          description: The câmara's answer body, verbatim. Absent until the R1 arrives.
        commandId:
          description: >-
            Lerian SLC's own command id, which is also the CloudEvents ce-id the
            command arrived under.
          format: uuid
          type: string
        messageType:
          description: Which card message was asked for.
          enum:
            - LTR0002
            - LTR0008
            - LTR0009
          type: string
        numCtrlIF:
          description: The control number this rail minted for the command.
          type: string
        numCtrlLTR:
          description: >-
            The câmara's own control number on the result being decided; absent
            on a position query.
          type: string
        outboundMessageId:
          description: The message this command produced; omitted until it has one.
          format: uuid
          type: string
        payload:
          description: The business tuple Lerian SLC sent, projected verbatim.
        receivedAt:
          description: When the command arrived.
          format: date-time
          type: string
        refusalReason:
          description: >-
            The câmara's own error codes on a refusal, or this rail's diagnosis
            on a failure. Never interpreted here.
          type: string
        status:
          description: >-
            Lifecycle state. REFUSED means the câmara rejected the decision;
            FAILED means it never reached the wire.
          enum:
            - RECEIVED
            - ACCEPTED
            - ANSWERED
            - REFUSED
            - FAILED
          type: string
        tenantId:
          description: >-
            The tenant the command arrived for. Empty means the single-tenant
            deployment.
          type: string
        terminalAt:
          description: When the command ended.
          format: date-time
          type: string
      required:
        - commandId
        - tenantId
        - messageType
        - payload
        - status
        - receivedAt
      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

````