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

# Criar ação de conciliação

> Registra uma ação de recuperação do operador sobre um caso de conciliação. As ações válidas são ACKNOWLEDGE, RESOLVE, DISMISS, INVESTIGATE. Casos terminais (RESOLVED / DISMISSED) rejeitam ações adicionais com SPB-3007 / HTTP 409.



## OpenAPI

````yaml pt/openapi/v3-current/spb.yaml post /v1/str/reconciliations/{reconciliationId}/actions
openapi: 3.1.0
info:
  contact:
    email: contact@lerian.studio
    name: Lerian Studio
    url: https://lerian.studio
  description: >-
    Interface OpenAPI 3.1 do Lerian SPB, a integração direta entre a instituição
    e o Sistema de Pagamentos Brasileiro (SPB) sobre a Rede do Sistema
    Financeiro Nacional (RSFN). Abrange o Sistema de Transferência de Reservas
    (STR): registro de mensagens e catálogo de capacidades, ciclo de vida das
    operações (transferências bancárias, repasses IBS, transferências de
    liquidez, devoluções e cancelamentos), consultas de conta de reservas e de
    horários, governança de alçada, conciliação e entrega de eventos.
  license:
    name: Lerian Studio General License
  title: Lerian SPB API
  version: 1.0.0
servers:
  - url: https://spb.sandbox.lerian.net
security: []
tags:
  - description: >-
      Trilhas imutáveis de registros de auditoria para operações STR e eventos
      de ciclo de vida.
    name: Audit
  - description: >-
      Catálogo de capacidades STR que descreve os tipos de mensagem suportados e
      suas restrições.
    name: Capabilities
  - description: >-
      Inventário de certificados ICP-Brasil com rotação e ativação recarregáveis
      a quente.
    name: Certificates
  - description: >-
      Fila de aprovação maker-checker para emissões retidas acima de sua banda
      de alçada: listar pendentes, assinar (aprovar) e negar.
    name: EmissionApprovals
  - description: >-
      Registros de entrega de eventos por webhook com controle de retentativas
      para despachos falhos.
    name: EventDeliveries
  - description: >-
      Catálogo de eventos de operação que enumera os tipos de evento de domínio
      emitidos.
    name: Events
  - description: >-
      Registro de avisos recebidos da família GEN (GEN0001 eco de conectividade,
      GEN0004 erro de transmissão, GEN0005 aviso administrativo).
    name: GenNotices
  - description: >-
      Governança de alçada do SPB: a tabela de bandas de valor e os requisitos
      de assinatura por tipo de mensagem, recarregados a quente em tempo de
      execução.
    name: Governance
  - description: >-
      Estado bruto das mensagens STR: listar as mensagens e ler uma mensagem
      individual por NUOp.
    name: Messages
  - description: Resumos e métricas operacionais agregados das operações STR.
    name: OperationalIntelligence
  - description: >-
      Ciclo de vida das operações STR para transferências bancárias e repasses
      IBS, incluindo devoluções e cancelamentos.
    name: Operations
  - description: >-
      Estado de prontidão do serviço que abrange as autoverificações de
      inicialização e a saúde das dependências.
    name: Readiness
  - description: Casos de conciliação e as ações que resolvem as divergências de operação.
    name: Reconciliation
  - description: >-
      Suíte de relatórios STR: relatórios agregados síncronos por intervalo de
      datas (movimento financeiro, transações rejeitadas, volumetria) sobre o
      próprio registro de transmissão do Lerian SPB.
    name: Reports
  - description: >-
      Consultas de saldo de conta de reservas STR0013 e de extrato STR0014 (modo
      mensagem) e seus resultados assíncronos.
    name: ReserveQueries
  - description: >-
      Lista de responsáveis do participante GEN0019: atualizações de
      substituição total anunciadas ao BACEN.
    name: Responsibles
  - description: >-
      Programação de janelas de operação do STR que rege quando as operações
      podem ser enviadas.
    name: Schedule
  - description: >-
      Consultas de horários STR0001 de parte única (consulta de horários do STR)
      e seus resultados de grade STR0001R1 assíncronos.
    name: ScheduleQueries
  - description: Configurações de tempo de execução do SPB para a integração STR.
    name: Settings
  - description: >-
      Registro e gerenciamento de endpoints de webhook para a entrega de
      eventos.
    name: Webhooks
  - description: >-
      Fluxo (ordem obrigatória): certificado → prontidão →
      teste-de-conectividade → envio. Ative um certificado, confirme que o rail
      reporta prontidão, passe em um teste de conectividade e então envie uma
      operação. Cada etapa é seu próprio recurso; um envio não deve ser tentado
      antes de a prontidão passar.
    name: onboarding
  - description: >-
      Fluxo (ordem obrigatória): operação pai SETTLED → devolução/cancelamento.
      Uma devolução ou cancelamento é um sub-recurso de uma operação pai
      liquidada; o segmento de rota {operationId}/{endToEndID} impõe o pai
      estruturalmente.
    name: lifecycle
paths:
  /v1/str/reconciliations/{reconciliationId}/actions:
    post:
      tags:
        - Reconciliation
      summary: Criar ação de conciliação
      description: >-
        Registra uma ação de recuperação do operador sobre um caso de
        conciliação. As ações válidas são ACKNOWLEDGE, RESOLVE, DISMISS,
        INVESTIGATE. Casos terminais (RESOLVED / DISMISSED) rejeitam ações
        adicionais com SPB-3007 / HTTP 409.
      operationId: createReconciliationAction
      parameters:
        - description: Reconciliation case UUID.
          in: path
          name: reconciliationId
          required: true
          schema:
            description: Reconciliation case UUID.
            type: string
        - description: Idempotency key (canonical).
          in: header
          name: X-Idempotency
          schema:
            description: Idempotency key (canonical).
            type: string
        - description: Idempotency key (legacy alias).
          in: header
          name: X-Idempotency-Key
          schema:
            description: Idempotency key (legacy alias).
            type: string
        - description: Idempotency key TTL in seconds (overrides the configured default).
          in: header
          name: X-TTL
          schema:
            description: Idempotency key TTL in seconds (overrides the configured default).
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateReconciliationActionRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReconciliationActionResponse'
          description: OK
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
          description: Error
      security:
        - BearerAuth: []
components:
  schemas:
    CreateReconciliationActionRequest:
      additionalProperties: false
      properties:
        action:
          description: >-
            Recovery action to record: ACKNOWLEDGE, RESOLVE, DISMISS, or
            INVESTIGATE.
          examples:
            - ACKNOWLEDGE
          type: string
        metadata:
          additionalProperties: {}
          description: >-
            Optional sanitized JSON object with additional action context (no
            PII).
          type: object
        reason:
          description: >-
            Operator-supplied human-readable rationale for the action (max 512
            chars).
          examples:
            - investigating with bank
          type: string
      required:
        - action
        - reason
      type: object
    ReconciliationActionResponse:
      additionalProperties: false
      properties:
        actionId:
          description: UUID of the newly recorded reconciliation action.
          examples:
            - b4e8f1a2-6c3d-4f57-9a10-1e1234567893
          type: string
        auditId:
          description: >-
            UUID of the audit record linked to the action; empty when audit
            emission was disabled or failed (best-effort).
          examples:
            - c5f9a2b3-7d4e-4068-ab21-1e1234567894
          type: string
        case:
          $ref: '#/components/schemas/ReconciliationCaseResponse'
          description: The reconciliation case after the action transition was applied.
        correlationId:
          description: >-
            Request-scoped correlation identifier echoing X-Request-ID, for
            pivoting from response to trace.
          type: string
        status:
          description: >-
            Resulting case status after the action: OPEN, IN_PROGRESS, RESOLVED,
            or DISMISSED.
          examples:
            - IN_PROGRESS
          type: string
      required:
        - case
        - actionId
        - status
        - auditId
        - correlationId
      type: object
    Detail:
      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
      type: object
    ReconciliationCaseResponse:
      additionalProperties: false
      properties:
        createdAt:
          description: RFC3339 UTC row insertion timestamp.
          examples:
            - '2026-06-14T12:00:00Z'
          type: string
        nuOp:
          description: >-
            BACEN protocol identifier (NUOp) when no operation aggregate is
            known; null otherwise.
          examples:
            - NUOP1234567890
          type: string
        openedAt:
          description: RFC3339 UTC timestamp when the case was first detected.
          examples:
            - '2026-06-14T12:00:00Z'
          type: string
        operationFamily:
          description: >-
            Operation family the case belongs to (denormalized from
            str_operation for filter reads).
          examples:
            - bankTransfer
          type: string
        operationId:
          description: >-
            UUID of the str_operation this case is bound to; omitted for
            protocol-only anomalies discovered before an operation bridge
            exists.
          examples:
            - 7c8b3a2e-9f1d-4a55-9b8e-1e1234567890
          type: string
        protocolControlNumber:
          description: IF control number involved in the anomaly; null when not applicable.
          examples:
            - CTRL00012345
          type: string
        protocolMessageType:
          description: STR message code involved in the anomaly; null when not applicable.
          examples:
            - STR0004
          type: string
        reasonCode:
          description: >-
            Candidate reason the case was opened (operator-facing string, not a
            fixed enum).
          type: string
        recommendedAction:
          description: >-
            Optional suggested next step (e.g. INVESTIGATE, DISMISS, RESUBMIT);
            a hint, not a contract; null when absent.
          examples:
            - INVESTIGATE
          type: string
        reconciliationId:
          description: Reconciliation case row UUID.
          examples:
            - 9a2b7c1d-3e4f-4a90-8b21-1e1234567892
          type: string
        resolvedAt:
          description: >-
            RFC3339 UTC timestamp when the case transitioned to RESOLVED or
            DISMISSED; null while still open/in-progress.
          examples:
            - '2026-06-14T12:30:00Z'
          type: string
        status:
          description: 'Case lifecycle state: OPEN, IN_PROGRESS, RESOLVED, or DISMISSED.'
          examples:
            - OPEN
          type: string
        summary:
          description: >-
            Short safe operator-facing description of the case (no raw protocol
            payloads or PII).
          type: string
        updatedAt:
          description: >-
            RFC3339 UTC timestamp of the last mutation; updated on every state
            transition.
          examples:
            - '2026-06-14T12:30:00Z'
          type: string
      required:
        - reconciliationId
        - operationFamily
        - status
        - reasonCode
        - summary
        - openedAt
        - createdAt
        - updatedAt
      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
  securitySchemes:
    BearerAuth:
      bearerFormat: JWT
      description: JWT bearer token issued by the identity provider.
      scheme: bearer
      type: http

````