components:
  schemas:
    AdvanceRequest:
      additionalProperties: false
      properties:
        evidence:
          description: Audit evidence (mandatory; enforced by the domain). At most 4096 characters.
          examples:
            - ticket-4567
          maxLength: 4096
          type: string
        reason:
          description: Audit justification (mandatory; enforced by the domain). At most 1024 characters.
          examples:
            - Manual override after Núclea reconciliation
          maxLength: 1024
          type: string
        toState:
          description: The existing state-machine edge the override drives to.
          examples:
            - QUEUED
          type: string
      type: object
    AdvanceResponse:
      additionalProperties: false
      properties:
        advancedBy:
          description: Authenticated subject who authorized the override.
          examples:
            - ops@acquirer.com
          type: string
        fromState:
          description: State before the override.
          examples:
            - REJECTED
          type: string
        operationId:
          description: Operation id (UUID) that was advanced.
          examples:
            - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
          type: string
        toState:
          description: State after the override.
          examples:
            - QUEUED
          type: string
        trigger:
          description: Transition trigger (always MANUAL_OVERRIDE).
          examples:
            - MANUAL_OVERRIDE
          type: string
      required:
        - operationId
        - fromState
        - toState
        - trigger
      type: object
    AnnouncedNonSettlorOperationResponse:
      additionalProperties: false
      properties:
        agCredtd:
          description: The credited branch.
          type: string
        agDebtd:
          description: The debited branch.
          type: string
        announcedAt:
          description: When this rail absorbed the announcement (RFC3339).
          type: string
        closedAt:
          description: When the announcement reached a terminal state (RFC3339).
          type: string
        cnpjNLiqdantCredtd:
          description: The credited non-liquidante's CNPJ.
          type: string
        cnpjNLiqdantDebtd:
          description: The debited non-liquidante's CNPJ.
          type: string
        ctCredtd:
          description: The credited account.
          type: string
        ctDebtd:
          description: The debited account.
          type: string
        decidedAt:
          description: When the operator decided (RFC3339).
          type: string
        decision:
          description: What the operator chose, carried forward past ANSWERED/REFUSED. Absent before a decision.
          type: string
        descAtv:
          description: The asset description.
          type: string
        dtMovto:
          description: The settlement business day.
          type: string
        hist:
          description: The câmara's free-text history.
          type: string
        id:
          description: The announced operation's id.
          type: string
        identdPartCamrCredtd:
          description: The credited side's câmara participant identifier.
          type: string
        identdPartCamrDebtd:
          description: The debited side's câmara participant identifier.
          type: string
        indrConfc:
          description: Whether the câmara requires a confirmation at all, carried verbatim from the wire. Deciding an operation it did not ask about is refused with 422.
          type: string
        ispbIF:
          description: The ONE settlement bank both non-liquidantes sit under, i.e. this institution.
          type: string
        ispbLTR:
          description: The câmara's ISPB.
          type: string
        numCtrlLTR:
          description: The câmara-minted control number that identifies this operation.
          type: string
        numOpLTR:
          description: The LTR operation number; mutually exclusive with the two per-side numbers above.
          type: string
        numOpLTRCredtd:
          description: The credited side's LTR operation number.
          type: string
        numOpLTRDebtd:
          description: The debited side's LTR operation number.
          type: string
        sourceMessageId:
          description: The identifier of the inbound message that carried this announcement.
          type: string
        status:
          description: ANNOUNCED (awaiting a decision), CONFIRMED or REJECTED (decided, command in flight), ANSWERED or REFUSED (the câmara answered). A command that never reached the câmara, or one it refused before 16:45 on the movement date, reopens it to ANNOUNCED.
          type: string
        subTpAtv:
          description: The asset sub-type.
          type: string
        tpOpLTR:
          description: The LTR operation type.
          type: string
        version:
          description: The version a decision is authorised against.
          format: int64
          type: integer
        vlrLanc:
          description: The value the bank is asked to confirm or reject, verbatim, as a decimal string. This is the value a decision must state to be accepted.
          type: string
      required:
        - id
        - numCtrlLTR
        - ispbLTR
        - ispbIF
        - cnpjNLiqdantDebtd
        - cnpjNLiqdantCredtd
        - vlrLanc
        - subTpAtv
        - indrConfc
        - dtMovto
        - status
        - version
        - sourceMessageId
        - announcedAt
      type: object
    AnnouncedResultResponse:
      additionalProperties: false
      properties:
        agDebtd:
          description: The debited branch.
          type: string
        announcedAt:
          description: When this rail absorbed the announcement (RFC3339).
          type: string
        cancelledByNumCtrlLTR:
          description: The control number of the cancellation NOTICE that closed this result — the notice's own number, which is how the two are told apart.
          type: string
        closedAt:
          description: When the announcement reached a terminal state (RFC3339).
          type: string
        cnpjNLiqdant:
          description: The non-liquidante's CNPJ. It carries the settlement bank's own CNPJ whenever the result is that bank's own liability.
          type: string
        ctDebtd:
          description: The debited account.
          type: string
        decidedAt:
          description: When the operator decided (RFC3339).
          type: string
        decision:
          description: What the operator chose, carried forward past ANSWERED/REFUSED where the status no longer names it. Absent before a decision and after a cancellation.
          type: string
        descAtv:
          description: The asset description.
          type: string
        dtMovto:
          description: The settlement business day.
          type: string
        hist:
          description: The câmara's free-text history.
          type: string
        id:
          description: The announced result's id.
          type: string
        identdPartCamr:
          description: The câmara participant identifier.
          type: string
        ispbIFCredtd:
          description: The credited institution's ISPB. ABSENT means the câmara itself is the credited party — it is not missing data.
          type: string
        ispbIFDebtd:
          description: The debited institution's ISPB.
          type: string
        ispbLTR:
          description: The câmara's ISPB.
          type: string
        numCtrlLTR:
          description: The câmara-minted control number that identifies this result.
          type: string
        numOpLTR:
          description: The LTR operation number. Absent for a bilateral settlement — the câmara fills it only for a gross one, so its absence is a fact about the settlement mode.
          type: string
        payment:
          $ref: "#/components/schemas/ResultPaymentResponse"
          description: The STR's proof that this institution paid the result with LTR0004, whatever the status. Absent until the STR settles one; a result returned and paid again shows the later payment.
        settlementClass:
          description: "What subTpAtv means: CRC is CARD_CONTINGENCY, ANTE is ISSUER_ANTICIPATION, ANTR is ACQUIRER_ANTICIPATION, anything else is OTHER."
          enum:
            - CARD_CONTINGENCY
            - ISSUER_ANTICIPATION
            - ACQUIRER_ANTICIPATION
            - OTHER
          examples:
            - CARD_CONTINGENCY
          type: string
        sourceMessageId:
          description: The identifier of the inbound message that carried this announcement.
          type: string
        status:
          description: "ANNOUNCED (awaiting a decision), CONFIRMED or DIVERGED (decided, command in flight), ANSWERED or REFUSED (the câmara answered), CANCELLED (the câmara withdrew it). A CARD_CONTINGENCY result can stay ANNOUNCED with no decision: it is paid with LTR0004, not answered."
          type: string
        subTpAtv:
          description: The asset sub-type, verbatim.
          type: string
        tpOpLTR:
          description: The LTR operation type.
          type: string
        version:
          description: "The version a decision is authorised against. Two operators who both read the same announcement cannot both answer it: the first write wins."
          format: int64
          type: integer
        vlrLanc:
          description: The announced amount, verbatim, as a decimal string. This is the value a decision must state to be accepted.
          type: string
      required:
        - id
        - numCtrlLTR
        - ispbLTR
        - ispbIFDebtd
        - cnpjNLiqdant
        - vlrLanc
        - subTpAtv
        - settlementClass
        - dtMovto
        - status
        - version
        - sourceMessageId
        - announcedAt
      type: object
    AnswerItem:
      additionalProperties: false
      properties:
        decision:
          description: CONFIRM sends 01 before the payment date (credit pre-scheduling) and 00 on it; REFUSE sends reasonCode.
          enum:
            - CONFIRM
            - REFUSE
          type: string
        nuLiquid:
          description: The Núclea settlement number (NULiquid) of a received settlement.
          examples:
            - "202605280000000000001"
          maxLength: 21
          minLength: 21
          type: string
        reasonCode:
          description: "Required with REFUSE, absent with CONFIRM: one OP107 §11.3.3 refusal code (02-12, 30-33 or 99)."
          examples:
            - "11"
          pattern: ^[0-9]{2}$
          type: string
      required:
        - nuLiquid
        - decision
      type: object
    AnswerResponse:
      additionalProperties: false
      properties:
        controlNumberCip:
          description: NumCtrlCIPActo of an accepted answer.
          type: string
        createdAt:
          description: When the answer was given (RFC3339).
          type: string
        decision:
          description: The client's decision.
          enum:
            - CONFIRM
            - REFUSE
          type: string
        fileName:
          description: NomArq of the file carrying the answer, once named.
          type: string
        occurrenceCode:
          description: "CodOcorc sent: 01 (pre-scheduling confirmed), 00 (settlement confirmed), 34 (cancellation confirmed) or the refusal code."
          type: string
        phase:
          description: "SCHEDULING: a credit's pre-scheduling answer, up to D-1. SETTLEMENT: the answer on the payment date. CANCEL: the confirmation (34) of an ASLC061/065 cancellation, sent without an operator; after Núclea rejects it, POST /v1/domicile/responses with CONFIRM sends it again."
          enum:
            - SCHEDULING
            - SETTLEMENT
            - CANCEL
          type: string
        rejectionCodes:
          description: ESLC/EGEN codes of a rejected answer.
          items:
            type: string
          type:
            - array
            - "null"
        responseId:
          description: The answer's id.
          format: uuid
          type: string
        state:
          description: PENDING waits for its window; SENDING and SENT are with the transport; PARKED is a send that may have reached Núclea and waits for the operator; ACCEPTED and REJECTED are Núclea's verdict.
          enum:
            - PENDING
            - SENDING
            - SENT
            - PARKED
            - ACCEPTED
            - REJECTED
          type: string
        updatedAt:
          description: When its state last moved (RFC3339).
          type: string
      required:
        - responseId
        - phase
        - decision
        - occurrenceCode
        - state
        - createdAt
        - updatedAt
      type: object
    AnswerResult:
      additionalProperties: false
      properties:
        error:
          description: Why the item was not stored.
          type: string
        nuLiquid:
          description: The item's NULiquid.
          type: string
        responseId:
          description: The stored answer's id (201 only).
          format: uuid
          type: string
        status:
          description: 201 stored and sent in the phase's next window; 404 no notice carried this NULiquid; 409 the phase already has a live answer; 422 a code rule refuses it, the phase's last window of the day closed, or an ASLC061/065 cancelled the settlement.
          enum:
            - 201
            - 404
            - 409
            - 422
          format: int64
          type: integer
      required:
        - nuLiquid
        - status
      type: object
    AnswersRequest:
      additionalProperties: false
      properties:
        items:
          description: 1 to 1,000 answers, each decided on its own.
          items:
            $ref: "#/components/schemas/AnswerItem"
          maxItems: 1000
          minItems: 1
          type:
            - array
            - "null"
      required:
        - items
      type: object
    AnswersResponse:
      additionalProperties: false
      properties:
        items:
          items:
            $ref: "#/components/schemas/AnswerResult"
          type: array
      required:
        - items
      type: object
    AnticipationProductRequest:
      additionalProperties: false
      properties:
        codProdt:
          description: "CodProdt: a card arrangement code live in BACEN's Dicionário de Domínios; Lerian SILOC refuses any other."
          examples:
            - VCC
          maxLength: 3
          type: string
        vlrLanc:
          description: "VlrLanc: this arrangement's amount, a decimal string carried verbatim."
          examples:
            - "1000.00"
          pattern: ^-?[0-9]{1,17}(\.[0-9]{1,2})?$
          type: string
      required:
        - codProdt
        - vlrLanc
      type: object
    ArrangementResponse:
      additionalProperties: false
      properties:
        active:
          description: Whether the arrangement is active.
          examples:
            - true
          type: boolean
        code:
          description: Card-scheme arrangement code.
          examples:
            - VCC
          type: string
        createdAt:
          description: Creation timestamp (RFC3339 UTC).
          examples:
            - "2026-06-15T07:50:00Z"
          format: date-time
          type: string
        id:
          description: Arrangement id (UUID).
          examples:
            - 0190b5a0-0000-7000-8000-0000000000bb
          type: string
        participantId:
          description: Owning participant id (UUID).
          examples:
            - 0190b5a0-0000-7000-8000-0000000000aa
          type: string
        role:
          description: Participant role for this arrangement.
          examples:
            - ACQUIRER
          type: string
        updatedAt:
          description: Last-update timestamp (RFC3339 UTC).
          examples:
            - "2026-06-15T07:50:00Z"
          format: date-time
          type: string
      required:
        - id
        - participantId
        - code
        - role
        - active
        - createdAt
        - updatedAt
      type: object
    BatchError:
      additionalProperties: false
      properties:
        code:
          description: Coded error identifier for the rejection.
          examples:
            - SLC-0104
          type: string
        details:
          additionalProperties: {}
          description: Structured context for the rejection (e.g. the existing operationId of a duplicate).
          type: object
        externalId:
          description: Best-effort external id of the rejected line (empty when the line could not be parsed that far).
          examples:
            - acq-ext-2026-06-0002
          type: string
        line:
          description: 1-based source line number of the rejected NDJSON line.
          examples:
            - 42
          format: int64
          type: integer
        message:
          description: Static, controlled human-readable rejection message.
          examples:
            - external id already used by another operation
          type: string
      required:
        - line
        - externalId
        - code
        - message
      type: object
    BatchMeta:
      additionalProperties: false
      properties:
        requestId:
          description: Client request id echoed back from the X-Request-Id header.
          examples:
            - req-2026-06-15-abc123
          type: string
        timestamp:
          description: Response generation timestamp (RFC3339).
          examples:
            - "2026-06-15T10:50:00Z"
          type: string
      required:
        - requestId
        - timestamp
      type: object
    CancelledResponse:
      additionalProperties: false
      properties:
        cancelledAt:
          description: When this rail stored the notice (RFC3339).
          type: string
        fileName:
          description: NomArq of the ASLC061 (credit) or ASLC065 (debit).
          type: string
        maintainedAt:
          description: DtHrManut of the notice, verbatim.
          type: string
        reason:
          description: MotvCanc of the notice, verbatim (OP107 §11.3.16).
          type: string
      required:
        - cancelledAt
        - fileName
        - reason
        - maintainedAt
      type: object
    ChannelStatus:
      additionalProperties: false
      properties:
        latencyMs:
          description: Round-trip latency in milliseconds; omitted when the channel reports no round trip.
          examples:
            - 42
          format: int64
          type: integer
        status:
          description: "Transport channel status: OK, DEGRADED, PENDING, or NOT_CONFIGURED (a channel that is not available)."
          examples:
            - OK
          type: string
      required:
        - status
      type: object
    ClearingPaginationMeta:
      additionalProperties: false
      properties:
        hasNext:
          description: Whether another page likely exists (page-full heuristic; no total count).
          examples:
            - true
          type: boolean
        page:
          description: 1-based page number.
          examples:
            - 1
          format: int64
          type: integer
        perPage:
          description: Page size.
          examples:
            - 50
          format: int64
          type: integer
      required:
        - page
        - perPage
        - hasNext
      type: object
    ClearingPositionResponse:
      additionalProperties: false
      properties:
        counterparties:
          description: Pre-netting bilateral counterparties of this position.
          items:
            $ref: "#/components/schemas/CounterpartyResponse"
          type: array
        currency:
          description: ISO-4217 currency code.
          examples:
            - BRL
          type: string
        cycle:
          description: Settlement cycle.
          examples:
            - "07:50"
          type: string
        participantIspb:
          description: Participant ISPB (8-character identifier).
          examples:
            - "29011780"
          type: string
        positionCents:
          description: Net clearing position in centavos; negative means net debtor.
          examples:
            - 150000
          format: int64
          type: integer
        receivedAt:
          description: Timestamp the notice was stored (RFC3339 UTC); null until stored.
          examples:
            - "2026-06-15T07:50:00Z"
          type:
            - string
            - "null"
        referenceDate:
          description: Settlement reference date (YYYY-MM-DD).
          examples:
            - "2026-06-15"
          type: string
        sourceMessageId:
          description: Id of the source SLC0001 message that produced this position.
          examples:
            - SLC0001-20260615-0001
          type: string
        stage:
          description: Clearing stage (PREVIEW or FINAL).
          examples:
            - FINAL
          type: string
      required:
        - referenceDate
        - cycle
        - stage
        - participantIspb
        - positionCents
        - currency
        - receivedAt
        - counterparties
      type: object
    CommandAcceptedResponse:
      additionalProperties: false
      properties:
        commandId:
          description: The command's id (a UUID minted by this service). It is the key every later fact joins on and the id to read the command back by.
          examples:
            - 0199a2e8-7a1c-7c1a-9e5d-2f6a1b3c4d5e
          type: string
        messageType:
          description: "The outbound message this command originates: LTR0002 (result answer), LTR0008 (non-liquidante answer), LTR0009 (position query) or SLC0004 (anticipation request)."
          examples:
            - LTR0002
          type: string
        requestedAt:
          description: When the institution decided (RFC3339, UTC).
          examples:
            - "2026-09-22T13:04:11Z"
          type: string
        sourceAggregateId:
          description: The announcement this command answers. For a position query or an anticipation request it is the command's own id, because neither answers an announcement.
          examples:
            - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
          type: string
        sourceAggregateVersion:
          description: The version of the announcement this command was authorised against, kept so a later reader can see which view of it was answered.
          examples:
            - 1
          format: int64
          type: integer
        status:
          description: "Always REQUESTED here: the command row and its outbound event are committed and nothing has been sent yet. Poll the command to see it reach ACCEPTED, ANSWERED, REFUSED or FAILED."
          examples:
            - REQUESTED
          type: string
      required:
        - commandId
        - messageType
        - status
        - sourceAggregateId
        - sourceAggregateVersion
        - requestedAt
      type: object
    CommandResponse:
      additionalProperties: false
      properties:
        acceptedAt:
          description: When Lerian SILOC durably accepted this command and queued it for dispatch (RFC3339). It is not the moment the message reached the câmara — that is answeredAt.
          type: string
        actorSubject:
          description: The authenticated subject that authorised this command — the durable record of who answered the câmara.
          type: string
        actorType:
          description: Whether a person or a machine authorised this command.
          type: string
        answer:
          description: "The câmara's answer body, projected exactly as it arrived: dtMovto, an optional dtHrLTR, and for a position query an optional positions array whose entries carry the câmara's own numbers as strings. This rail never computes, nets or rounds one. An absent positions array on a position query means the câmara matched nothing; on the two acknowledgement legs it means that leg carries no positions at all."
        businessTuple:
          description: The fields sent to the câmara for this message type, as they were sent. Monetary values are decimal strings.
        closedAt:
          description: When the command reached a terminal state (RFC3339).
          type: string
        id:
          description: The command's id (a UUID). It is also the id of the outbound event and the key every fact about this command joins on.
          type: string
        messageType:
          description: LTR0002, LTR0008, LTR0009 or SLC0004.
          type: string
        numCtrlIF:
          description: "The identifier Lerian SILOC minted for this message. Opaque here: displayed and logged, never parsed."
          type: string
        numCtrlLTR:
          description: The câmara-minted control number, when the answering leg carried one.
          type: string
        reason:
          description: Why a REFUSED or FAILED command ended that way, plus the offending tag when the wire supplied one. Diagnostic, never a control value.
          type: string
        requestedAt:
          description: When the institution decided (RFC3339).
          type: string
        sourceAggregateId:
          description: The announcement this command was authorised against.
          type: string
        sourceAggregateKind:
          description: Which announcement this command answers. For a position query it names the command row itself, because a query answers no announcement.
          type: string
        sourceAggregateVersion:
          description: The version of that announcement at the moment it was answered.
          format: int64
          type: integer
        status:
          description: "REQUESTED (committed here, nothing has left this service), ACCEPTED (Lerian SILOC durably accepted the command and queued it for dispatch — it is NOT yet on the wire to the câmara and is NOT a settlement claim), ANSWERED (the câmara answered), REFUSED (the câmara said no) or FAILED (it never reached the câmara, and the announcement is open again). FAILED can follow ACCEPTED: Lerian SILOC may give up terminally on a queued message."
          type: string
      required:
        - id
        - messageType
        - actorType
        - actorSubject
        - sourceAggregateKind
        - sourceAggregateId
        - sourceAggregateVersion
        - businessTuple
        - status
        - requestedAt
      type: object
    ConnectivityTestResult:
      additionalProperties: false
      properties:
        answeredAt:
          description: When the answer was read (RFC3339 UTC); present once answered or refused.
          examples:
            - "2026-05-28T10:00:20Z"
          type: string
        echoMatches:
          description: Whether the answer echoed the token that was sent; present once answered.
          examples:
            - true
          type: boolean
        echoedMsgEco:
          description: Echo token the AGEN001RET carried; present once answered.
          examples:
            - SLC-ECO-0f8fad5bd9cb469fa16570867728950e
          type: string
        errorCode:
          description: CodErro of the ERR; present when refused.
          examples:
            - ESLC0118
          type: string
        latencyMs:
          description: Milliseconds from send to the answer being read; present once answered.
          examples:
            - 20000
          format: int64
          type: integer
        msgEco:
          description: Echo token sent in the AGEN001.
          examples:
            - SLC-ECO-0f8fad5bd9cb469fa16570867728950e
          type: string
        participantId:
          description: Participant id (8-character ISPB).
          examples:
            - "12345678"
          type: string
        sentAt:
          description: When the AGEN001 was sent (RFC3339 UTC).
          examples:
            - "2026-05-28T10:00:00Z"
          type: string
        status:
          description: "PENDING: sent, no answer yet. ANSWERED: Núclea returned the AGEN001RET. REFUSED: Núclea answered with an ERR. NO_ANSWER: no RET or ERR within the answer bound."
          enum:
            - PENDING
            - ANSWERED
            - REFUSED
            - NO_ANSWER
          examples:
            - ANSWERED
          type: string
        testId:
          description: Test id returned by the POST.
          examples:
            - 0f8fad5b-d9cb-469f-a165-70867728950e
          type: string
      required:
        - testId
        - participantId
        - status
        - msgEco
        - sentAt
      type: object
    CounterpartyResponse:
      additionalProperties: false
      properties:
        amountCents:
          description: Signed bilateral net amount in centavos toward this counterparty; positive means net creditor.
          examples:
            - 150000
          format: int64
          type: integer
        counterpartyIspb:
          description: Counterparty participant ISPB (8-character identifier).
          examples:
            - "60746948"
          type: string
        direction:
          description: Direction relative to the participant (mirrors the amount sign).
          examples:
            - CREDIT
          type: string
      required:
        - counterpartyIspb
        - amountCents
        - direction
      type: object
    CreateArrangementRequest:
      additionalProperties: false
      properties:
        active:
          description: Whether the arrangement is active; defaults to true when omitted.
          examples:
            - true
          type:
            - boolean
            - "null"
        code:
          description: Card-scheme arrangement code.
          examples:
            - VCC
          maxLength: 10
          minLength: 1
          type: string
        role:
          description: Participant role for this arrangement.
          examples:
            - ACQUIRER
          minLength: 1
          type: string
      required:
        - code
        - role
      type: object
    CreateOperationMeta:
      additionalProperties: false
      properties:
        requestId:
          description: Client request id echoed back from the X-Request-Id header.
          examples:
            - req-2026-06-15-abc123
          type: string
        timestamp:
          description: Response generation timestamp (RFC3339).
          examples:
            - "2026-06-15T10:50:00Z"
          type: string
      required:
        - requestId
        - timestamp
      type: object
    CreateOperationRequest:
      additionalProperties: false
      properties:
        arrangementCode:
          description: Payment arrangement (arranjo) code.
          examples:
            - "0245"
          type: string
        authorizationCode:
          description: Card authorization code.
          examples:
            - A1B2C3
          type: string
        brandCode:
          description: "Card brand code (catalog: Visa/Master/Elo)."
          examples:
            - VISA
          type: string
        correctsOperationId:
          description: Id (UUID) of the REJECTED operation this new operation corrects; the rail records the link and shows it on both operations. The correction is still a new operation with its own externalId. A second correction of the same rejected operation answers 409 CORRECTION_ALREADY_EXISTS; a correction of an operation whose retry chain holds a live retry or another live correction answers 409 CORRECTION_RETRY_CONFLICT, and one whose chain already settled answers 409 RETRY_AFTER_SETTLEMENT; cancelling the correcting operation frees the rejected one to be corrected again; a correction that is itself rejected is corrected by referencing it; correctsOperationId on a CANCELLATION answers 422.
          examples:
            - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
          type: string
        creditorIspb:
          description: Creditor (acquirer) ISPB, 8 characters.
          examples:
            - "29011780"
          minLength: 1
          type: string
        currency:
          description: ISO 4217 currency code.
          examples:
            - BRL
          type: string
        domicileIfIspb:
          description: Domicile FI ISPB (bank where the merchant receives funds), 8 characters.
          examples:
            - "60701190"
          minLength: 1
          type: string
        dueDate:
          description: Settlement due date, date-only (YYYY-MM-DD).
          examples:
            - "2026-06-15"
          minLength: 1
          type: string
        establishmentCode:
          description: Merchant establishment (EC) code.
          examples:
            - EC-000123
          type: string
        externalId:
          description: Client-side unique identifier for the operation (idempotent external reference).
          examples:
            - acq-ext-2026-06-0001
          minLength: 1
          type: string
        installmentNumber:
          description: This installment's sequence number.
          examples:
            - 1
          format: int32
          type: integer
        installments:
          description: Total number of installments; at least 1. The ceiling of 99 applies only to an enabled operation type and is enforced by the use case.
          examples:
            - 3
          format: int32
          minimum: 1
          type: integer
        intakeMode:
          description: Intake mode; defaults to api_jsonl when omitted.
          examples:
            - api_jsonl
          type: string
        metadata:
          additionalProperties: {}
          description: Free-form client metadata attached to the operation.
          type: object
        operationType:
          description: Operation type driving the settlement flow.
          examples:
            - CREDIT
          minLength: 1
          type: string
        originalOperationId:
          description: Id (UUID) of the operation a CANCELLATION targets.
          examples:
            - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
          type: string
        participantId:
          description: Participant id (UUID) that owns this operation.
          examples:
            - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
          minLength: 1
          type: string
        participantRole:
          description: Participant role in the settlement.
          examples:
            - ACQUIRER
          minLength: 1
          type: string
        pvCode:
          description: Merchant (PontoVenda) code.
          examples:
            - PV-000123
          type: string
        pvDocument:
          description: Merchant CPF/CNPJ document (regulated PII; never logged in the clear).
          examples:
            - "12345678000195"
          type: string
        pvName:
          description: Merchant (PontoVenda) legal/trade name.
          examples:
            - Loja Exemplo LTDA
          type: string
        pvPersonType:
          description: Merchant person type (natural or legal).
          examples:
            - J
          type: string
        reasonCategory:
          description: Numeric MotvCanc cancellation reason ('1'..'4'); required for operationType=CANCELLATION.
          examples:
            - "4"
          type: string
        settlementIfIspb:
          description: Settlement FI ISPB (moves reserves at the STR), 8 characters; optional.
          examples:
            - "60746948"
          type: string
        transactionDate:
          description: Business transaction date, date-only (YYYY-MM-DD).
          examples:
            - "2026-06-15"
          minLength: 1
          type: string
        value:
          description: Operation amount in minor units (centavos); strictly positive.
          examples:
            - 150000
          format: int64
          minimum: 1
          type: integer
      required:
        - externalId
        - operationType
        - creditorIspb
        - domicileIfIspb
        - value
        - installments
        - dueDate
        - transactionDate
        - participantId
        - participantRole
      type: object
    CreateOperationResponse:
      additionalProperties: false
      properties:
        externalId:
          description: Echoed client-side external identifier.
          examples:
            - acq-ext-2026-06-0001
          type: string
        id:
          description: Created operation id (UUID).
          examples:
            - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
          type: string
        meta:
          $ref: "#/components/schemas/CreateOperationMeta"
          description: Response envelope metadata (requestId + timestamp).
        state:
          description: Initial lifecycle state of the created operation.
          examples:
            - CREATED
          type: string
      required:
        - id
        - state
        - externalId
        - meta
      type: object
    CreateParticipantRequest:
      additionalProperties: false
      properties:
        active:
          description: Whether the participant is active; defaults to true when omitted.
          examples:
            - true
          type:
            - boolean
            - "null"
        bcbCode:
          description: Participant code at the Banco Central.
          examples:
            - "0001"
          maxLength: 10
          type: string
        document:
          description: "Participant CNPJ: absent, empty, or exactly 14 unformatted positions (digits or letters)."
          examples:
            - "12345678000199"
          pattern: ^$|^.{14}$
          type: string
        ispb:
          description: Participant ISPB (8-character identifier in the Brazilian payment system).
          examples:
            - "29011780"
          type: string
        metadata:
          additionalProperties: {}
          description: Free-form metadata key/value pairs.
          type: object
        name:
          description: Participant legal name.
          examples:
            - Acquirer Example S.A.
          maxLength: 255
          minLength: 1
          type: string
        nucleaCode:
          description: Participant code assigned by Núclea.
          examples:
            - NU12345
          maxLength: 20
          type: string
        type:
          description: Participant role/type in the card-settlement flow.
          examples:
            - ACQUIRER
          minLength: 1
          type: string
      required:
        - type
        - name
      type: object
    CreateWebhookRequest:
      additionalProperties: false
      properties:
        active:
          description: Whether the subscription is active and eligible for delivery. Omit the field to create an active subscription; send false to register one that is not delivered to until it is activated.
          examples:
            - true
          type:
            - boolean
            - "null"
        description:
          description: Optional human-readable label for the subscription.
          examples:
            - Primary settlement consumer
          type: string
        events:
          description: Business event types this subscription is delivered.
          examples:
            -   - operation.settled
                - operation.rejected
          items:
            type: string
          type:
            - array
            - "null"
        headers:
          additionalProperties:
            type: string
          description: Optional static HTTP headers added to every delivery request to this endpoint.
          type: object
        secret:
          description: Raw signing secret used only to derive the SHA-256 HMAC signing key; never persisted or echoed in cleartext. In BYOC the real signing secret comes from the client's Kubernetes Secret.
          type: string
        timeoutSeconds:
          description: Optional per-delivery HTTP timeout in seconds; omitted or zero applies the service default (10s).
          examples:
            - 10
          format: int32
          minimum: 0
          type: integer
        url:
          description: HTTPS endpoint that receives webhook deliveries.
          examples:
            - https://client.example.com/webhooks/slc
          format: uri
          type: string
      required:
        - url
        - events
      type: object
    DecideNonSettlorRequest:
      additionalProperties: false
      properties:
        announcedAmount:
          description: The announced amount you are answering for, as a decimal string. It must EQUAL the amount the câmara announced or the command is refused with 422. Compared as a decimal, so "100.1" and "100.10" are the same money.
          examples:
            - "1234.56"
          type: string
        decision:
          description: CONFIRM or REJECT (case-insensitive). The câmara titles this event "confirmação ou rejeição", which is why REJECT is the word here and DIVERGE is the word on a result.
          examples:
            - CONFIRM
          type: string
      required:
        - decision
        - announcedAmount
      type: object
    DecideResultRequest:
      additionalProperties: false
      properties:
        announcedAmount:
          description: "The announced amount you are answering for, as a decimal string (e.g. \"1234.56\"). It must EQUAL the amount the câmara announced or the command is refused with 422: a confirmation that does not say what it confirms is not auditable. Compared as a decimal, so \"100.1\" and \"100.10\" are the same money."
          examples:
            - "1234.56"
          type: string
        decision:
          description: CONFIRM or DIVERGE (case-insensitive). CONFIRM accepts the announced result; DIVERGE disputes it. Both ride the same wire tag; the product words differ because the câmara's own event titles them differently.
          examples:
            - CONFIRM
          type: string
      required:
        - decision
        - announcedAmount
      type: object
    DeliveryResponse:
      additionalProperties: false
      properties:
        attemptNumber:
          description: 1-based attempt number, incremented on each retry.
          examples:
            - 2
          format: int32
          type: integer
        createdAt:
          description: Delivery creation timestamp and partition key (RFC3339, UTC); a replay addresses the row by this value.
          examples:
            - "2026-06-15T07:50:00Z"
          format: date-time
          type: string
        deliveredAt:
          description: Timestamp the delivery succeeded (RFC3339, UTC); null until delivered.
          examples:
            - "2026-06-15T07:50:00Z"
          format: date-time
          type:
            - string
            - "null"
        eventId:
          description: Source business-event id (UUID).
          examples:
            - 018f8a3e-7d1b-7a2c-8b6e-9f0a1c2d3e4f
          type: string
        eventType:
          description: Business event type that triggered this delivery.
          examples:
            - operation.settled
          type: string
        httpStatus:
          description: HTTP status code returned by the consumer endpoint; null when no response was received.
          examples:
            - 200
          format: int32
          type:
            - integer
            - "null"
        id:
          description: Delivery id (UUID).
          examples:
            - 0190b5a0-0000-7000-8000-0000000000dd
          type: string
        nextRetryAt:
          description: Scheduled time of the next retry (RFC3339, UTC); null when no retry is pending.
          examples:
            - "2026-06-15T08:00:00Z"
          format: date-time
          type:
            - string
            - "null"
        responseTimeMs:
          description: Consumer response time in milliseconds; null when no response was received.
          examples:
            - 142
          format: int32
          type:
            - integer
            - "null"
        state:
          description: Delivery lifecycle state (e.g. DELIVERED, FAILED, RETRYING, PENDING).
          examples:
            - DELIVERED
          type: string
        subscriptionId:
          description: Owning subscription id (UUID).
          examples:
            - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
          type: string
      required:
        - id
        - subscriptionId
        - eventId
        - eventType
        - state
        - attemptNumber
        - httpStatus
        - responseTimeMs
        - nextRetryAt
        - deliveredAt
        - createdAt
      type: object
    DepositConfirmationRequest:
      additionalProperties: false
      properties:
        amount:
          description: VlrLanc of the LDL0022 the client sent (Valor; a sign is refused, the LDL0022 always pays the câmara). It must equal the value of the round.
          examples:
            - "1500.00"
          type: string
        codProdt:
          description: CodProdt of the LDL0022 the client sent; it must be SLC.
          examples:
            - SLC
          type: string
        dtHrSit:
          description: DtHrSit of the LDL0022R1 (Data Hora, YYYY-MM-DDTHH:MM:SS, Brasília time).
          examples:
            - "2026-06-28T07:41:12"
          type: string
        dtMovto:
          description: DtMovto of the LDL0022R1 (YYYY-MM-DD).
          examples:
            - "2026-06-28"
          type: string
        numCtrlIF:
          description: NumCtrlIF of the client's LDL0022 (ControleIF, 1 to 20 characters).
          examples:
            - IF20260628000123
          type: string
        numCtrlSTR:
          description: NumCtrlSTR of the LDL0022R1 (Controle, 20 characters).
          examples:
            - STR20260628000000123
          type: string
        round:
          description: Round of the settlement instruction the deposit answers; it must be the current round.
          examples:
            - 1
          format: int64
          type: integer
        sitLancLDL:
          description: "SitLancLDL of the LDL0022R1, as received. A pending situation (17, 19) is refused: declare the terminal answer."
          examples:
            - "1"
          type: string
      required:
        - round
        - numCtrlIF
        - numCtrlSTR
        - sitLancLDL
        - dtHrSit
        - dtMovto
        - amount
        - codProdt
      type: object
    DepositConfirmationResponse:
      additionalProperties: false
      properties:
        instructionId:
          description: The settlement instruction the declaration was recorded against.
          type: string
        numCtrlSTR:
          description: The STR launch recorded as proof.
          type: string
        round:
          description: The round the deposit answers.
          format: int64
          type: integer
        sitLancCategory:
          description: "EFFECTED, CANCELLED or REJECTED: the category of the declared SitLancLDL."
          type: string
        state:
          description: "The instruction's state after the declaration: DEPOSITED once an effected deposit of the current round is recorded."
          type: string
      required:
        - instructionId
        - round
        - numCtrlSTR
        - sitLancCategory
        - state
      type: object
    DepositRequestResponse:
      additionalProperties: false
      properties:
        codProdt:
          description: CodProdt, from the LDL0021.
          type: string
        dtMovto:
          description: "DtMovto: the settlement business day."
          type: string
        ispbIF:
          description: "ISPBIF: the IF that deposits."
          type: string
        ispbLDL:
          description: "ISPBLDL: the câmara, from the LDL0021. Omitted for an instruction recorded before the rail kept it."
          type: string
        round:
          description: The round the deposit answers.
          format: int64
          type: integer
        vlrLanc:
          description: "VlrLanc: the value of the round (Valor)."
          type: string
      required:
        - round
        - vlrLanc
        - dtMovto
      type: object
    Detail:
      additionalProperties: false
      properties:
        code:
          description: "Stable, machine-readable domain error code scoped to the emitting service (format: <SERVICE>-NNNN)."
          type: string
        correlationId:
          description: Request-scoped correlation identifier echoing X-Request-ID.
          examples:
            - req-7a3f9c2e
          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."
      required:
        - correlationId
      type: object
    DlqEntryResponse:
      additionalProperties: false
      properties:
        id:
          description: Dead-letter entry id.
          examples:
            - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
          type: string
        messageType:
          description: Business message type of the parked message.
          examples:
            - operation.created
          type: string
        queue:
          description: Dead-letter queue the entry is parked on.
          examples:
            - operations.intake.dlq
          type: string
        reason:
          description: Reason the message was dead-lettered.
          examples:
            - handler returned error after max retries
          type: string
        sourceQueue:
          description: Original queue the message was consumed from before parking.
          examples:
            - operations.intake
          type: string
      required:
        - id
        - queue
      type: object
    DlqListResponse:
      additionalProperties: false
      properties:
        items:
          description: Parked dead-letter entries on the given queue.
          items:
            $ref: "#/components/schemas/DlqEntryResponse"
          type: array
      required:
        - items
      type: object
    DlqReplayResponse:
      additionalProperties: false
      properties:
        id:
          description: Id of the replayed dead-letter entry.
          examples:
            - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
          type: string
        queue:
          description: Dead-letter queue the replayed entry was parked on.
          examples:
            - operations.intake.dlq
          type: string
        status:
          description: Replay acknowledgement status.
          examples:
            - REPLAYED
          type: string
      required:
        - queue
        - id
        - status
      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
    FileIntakeRequest:
      additionalProperties: false
      properties:
        content:
          description: Received file bytes, base64-encoded (standard encoding).
          examples:
            - PEFTTENET0M+PC9BU0xDRE9DPg==
          minLength: 1
          type: string
        intakeMode:
          description: "Intake mode: aslc_passthrough (opaque already-signed artifact) or aslc_xml (not implemented, 501)."
          enum:
            - aslc_xml
            - aslc_passthrough
          examples:
            - aslc_passthrough
          type: string
        numCtrlEmis:
          description: Optional client correlation/reference value; written verbatim to files.control_number (max 100 chars). Not an idempotency key.
          examples:
            - CTRL-20260615-0001
          maxLength: 100
          type: string
        participantId:
          description: Uploading participant id (UUID); validated to exist.
          examples:
            - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
          format: uuid
          type: string
        reasonForPassthrough:
          description: Optional free-text reason the artifact took the opaque passthrough path.
          examples:
            - client pre-signed artifact
          type: string
        receivedFilename:
          description: Optional original filename the participant sent; recorded for audit (max 255 chars).
          examples:
            - ASLC027.xml
          maxLength: 255
          type: string
      required:
        - intakeMode
        - content
        - participantId
      type: object
    FileResponse:
      additionalProperties: false
      properties:
        createdAt:
          description: Timestamp the file row was created (RFC3339).
          examples:
            - "2026-06-15T07:50:00Z"
          type: string
        id:
          description: File id (UUID).
          examples:
            - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
          type: string
        intakeMode:
          description: Intake mode the file was received under.
          examples:
            - aslc_passthrough
          type: string
        operationIds:
          description: Operation ids (UUIDs) linked to this file; always a non-nil array (empty when none).
          items:
            type: string
          type: array
        status:
          description: File lifecycle status.
          examples:
            - RECEIVED
          type: string
      required:
        - id
        - intakeMode
        - status
        - operationIds
        - createdAt
      type: object
    InstructionPagination:
      additionalProperties: false
      properties:
        hasNext:
          description: True when the page filled the requested limit.
          examples:
            - false
          type: boolean
        page:
          description: 1-based page number derived from the offset.
          examples:
            - 1
          format: int64
          type: integer
        perPage:
          description: Requested page size.
          examples:
            - 50
          format: int64
          type: integer
      required:
        - page
        - perPage
        - hasNext
      type: object
    InstructionRoundResponse:
      additionalProperties: false
      properties:
        depositDeadline:
          description: The round's deposit deadline (RFC3339).
          type: string
        evidence:
          description: The STR launches recorded for this round, oldest first.
          items:
            $ref: "#/components/schemas/RoundEvidenceResponse"
          type: array
        ldlAt:
          description: DtHrLDL of the round's newest LDL0021 (RFC3339).
          type: string
        netAmountCents:
          description: Value this round's LDL0021 carried, in cents (negative = the IF deposits).
          format: int64
          type: integer
        openedAt:
          description: When the rail opened the round (RFC3339).
          type: string
        previousNetAmountCents:
          description: Value of the round this one replaced, as received.
          format: int64
          type: integer
        round:
          description: Round number, 1 for the first LDL0021.
          format: int64
          type: integer
        sourceMessageId:
          description: NUOp of the LDL0021 that opened the round.
          type: string
      required:
        - round
        - netAmountCents
        - openedAt
        - evidence
      type: object
    LBTRPaginationMeta:
      additionalProperties: false
      properties:
        hasNext:
          description: True when the returned page filled the requested limit.
          examples:
            - false
          type: boolean
        page:
          description: 1-based page number derived from the offset.
          examples:
            - 1
          format: int64
          type: integer
        perPage:
          description: Requested page size.
          examples:
            - 50
          format: int64
          type: integer
      required:
        - page
        - perPage
        - hasNext
      type: object
    ListArrangementsResponse:
      additionalProperties: false
      properties:
        items:
          description: Arrangements in this page, newest first.
          items:
            $ref: "#/components/schemas/ArrangementResponse"
          type: array
      required:
        - items
      type: object
    ListClearingPositionsResponse:
      additionalProperties: false
      properties:
        items:
          description: Clearing positions in this page.
          items:
            $ref: "#/components/schemas/ClearingPositionResponse"
          type: array
        pagination:
          $ref: "#/components/schemas/ClearingPaginationMeta"
          description: Pagination metadata for this page.
      required:
        - items
        - pagination
      type: object
    ListCommandsResponse:
      additionalProperties: false
      properties:
        items:
          description: This page of commands, newest first.
          items:
            $ref: "#/components/schemas/CommandResponse"
          type: array
        pagination:
          $ref: "#/components/schemas/LBTRPaginationMeta"
          description: Pagination metadata for this page.
      required:
        - items
        - pagination
      type: object
    ListDeliveriesResponse:
      additionalProperties: false
      properties:
        items:
          description: The subscription's delivery attempts (including retries), newest first.
          items:
            $ref: "#/components/schemas/DeliveryResponse"
          type: array
        nextCursor:
          description: Opaque cursor of the next older page; pass it as cursor. Absent on the last page.
          examples:
            - eyJ0IjoiMjAyNi0wNi0xNVQwNzo1MDowMFoiLCJpIjoiMDE5MGI1YTAtMDAwMC03MDAwLTgwMDAtMDAwMDAwMDAwMGRkIn0=
          type: string
      required:
        - items
      type: object
    ListInstructionsResponse:
      additionalProperties: false
      properties:
        items:
          description: This page of instructions.
          items:
            $ref: "#/components/schemas/SettlementInstructionResponse"
          type: array
        pagination:
          $ref: "#/components/schemas/InstructionPagination"
          description: Pagination metadata.
      required:
        - items
        - pagination
      type: object
    ListNonSettlorOperationsResponse:
      additionalProperties: false
      properties:
        items:
          description: This page of announced operations, newest movement date first.
          items:
            $ref: "#/components/schemas/AnnouncedNonSettlorOperationResponse"
          type: array
        pagination:
          $ref: "#/components/schemas/LBTRPaginationMeta"
          description: Pagination metadata for this page.
      required:
        - items
        - pagination
      type: object
    ListOperationsResponse:
      additionalProperties: false
      properties:
        items:
          description: Page of operation summaries.
          items:
            $ref: "#/components/schemas/OperationSummary"
          type: array
        pagination:
          $ref: "#/components/schemas/PaginationMeta"
          description: Pagination envelope for the returned page.
      required:
        - items
        - pagination
      type: object
    ListParticipantsResponse:
      additionalProperties: false
      properties:
        items:
          description: Participants in this page, newest first.
          items:
            $ref: "#/components/schemas/ParticipantResponse"
          type: array
      required:
        - items
      type: object
    ListReportsResponse:
      additionalProperties: false
      properties:
        items:
          description: Generated/available reports, newest first (empty array when none).
          items:
            $ref: "#/components/schemas/ReportResponse"
          type: array
        nextCursor:
          description: Opaque cursor of the next older page; pass it as cursor. Absent on the last page.
          examples:
            - eyJ0IjoiMjAyNi0wNi0xNVQwNzo1MDowMFoiLCJpIjoiMDE4ZjhhM2UtNGIyYy03YzFhLTllNWQtMmY2YTFiM2M0ZDVlIn0=
          type: string
      required:
        - items
      type: object
    ListResultsResponse:
      additionalProperties: false
      properties:
        items:
          description: This page of announced results, newest movement date first.
          items:
            $ref: "#/components/schemas/AnnouncedResultResponse"
          type: array
        pagination:
          $ref: "#/components/schemas/LBTRPaginationMeta"
          description: Pagination metadata for this page.
      required:
        - items
        - pagination
      type: object
    ListWebhooksResponse:
      additionalProperties: false
      properties:
        items:
          description: The installation's webhook subscriptions.
          items:
            $ref: "#/components/schemas/WebhookResponse"
          type: array
      required:
        - items
      type: object
    NUliquidOnlineResponse:
      additionalProperties: false
      properties:
        controlNumber:
          type: string
        nuliquid:
          type: string
        source:
          type: string
        status:
          type: string
        value:
          format: int64
          type: integer
      required:
        - source
        - nuliquid
        - status
        - value
        - controlNumber
      type: object
    OperationDetailResponse:
      additionalProperties: false
      properties:
        arrangementCode:
          description: Payment arrangement (arranjo) code.
          examples:
            - "0245"
          type: string
        aslcType:
          description: ASLC message type materialized for this operation.
          examples:
            - ASLC027
          type: string
        batchId:
          description: Batch id when created via the NDJSON batch endpoint.
          examples:
            - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
          type: string
        cancellationTargetOperationId:
          description: Id (UUID) of the operation a CANCELLATION targets; null for every other type.
          examples:
            - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
          type:
            - string
            - "null"
        correctedByOperationId:
          description: Id (UUID) of the operation that corrected this rejected operation; null when none did.
          examples:
            - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
          type:
            - string
            - "null"
        correctsOperationId:
          description: Id (UUID) of the rejected operation this operation corrects; null when it corrects none.
          examples:
            - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
          type:
            - string
            - "null"
        createdAt:
          description: Creation timestamp (RFC3339).
          examples:
            - "2026-06-15T10:50:00Z"
          type: string
        creditorIspb:
          description: Creditor (acquirer) ISPB, 8 characters.
          examples:
            - "29011780"
          type: string
        currency:
          description: ISO 4217 currency code.
          examples:
            - BRL
          type: string
        domicileIfIspb:
          description: Domicile FI ISPB (bank where the merchant receives funds), 8 characters.
          examples:
            - "60701190"
          type: string
        dueDate:
          description: Settlement due date (RFC3339); null when not set.
          examples:
            - "2026-06-15T00:00:00Z"
          type:
            - string
            - "null"
        eslcErrors:
          description: Recorded Núclea business error codes (empty array when none).
          items:
            type: string
          type: array
        externalId:
          description: Client-side external identifier.
          examples:
            - acq-ext-2026-06-0001
          type: string
        id:
          description: Operation id (UUID).
          examples:
            - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
          type: string
        installmentNumber:
          description: This installment's sequence number.
          examples:
            - 1
          format: int32
          type: integer
        installments:
          description: Total number of installments.
          examples:
            - 3
          format: int32
          type: integer
        intakeMode:
          description: Intake mode the operation was received through.
          examples:
            - api_jsonl
          type: string
        lastError:
          description: All recorded Núclea business error codes for the operation, joined into one comma-separated string; null when none. Read eslcErrors on this body for the codes as an array.
          examples:
            - ESLC0029, ESLC0097
          type:
            - string
            - "null"
        nuliquid:
          description: Núclea-assigned NUliquid (21 positions); null until assigned.
          examples:
            - "202606150000000000001"
          type:
            - string
            - "null"
        operationType:
          description: Operation type.
          examples:
            - CREDIT
          type: string
        participantId:
          description: Owning participant id (UUID).
          examples:
            - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
          type: string
        participantRole:
          description: Participant role in the settlement.
          examples:
            - ACQUIRER
          type: string
        reasonCategory:
          description: Numeric MotvCanc cancellation reason ('1'..'4'); null unless a CANCELLATION.
          examples:
            - "4"
          type:
            - string
            - "null"
        settlementIfIspb:
          description: Settlement FI ISPB, 8 characters; null when not set.
          examples:
            - "60746948"
          type:
            - string
            - "null"
        state:
          description: Lifecycle state.
          examples:
            - SETTLED
          type: string
        stuckSince:
          description: Timestamp since the operation has been internally stuck (RFC3339); null when not stuck.
          examples:
            - "2026-06-15T11:00:00Z"
          type:
            - string
            - "null"
        transactionDate:
          description: Business transaction date (RFC3339).
          examples:
            - "2026-06-15T00:00:00Z"
          type: string
        updatedAt:
          description: Last-update timestamp (RFC3339).
          examples:
            - "2026-06-15T13:10:00Z"
          type: string
        value:
          description: Operation amount in minor units (centavos).
          examples:
            - 150000
          format: int64
          type: integer
        waitingFor:
          description: "What the operation is waiting on, and therefore which recovery verb applies. transport/nuclea_ack/if_confirmation are external waits (reconcile or wait). parked means an outbound transmit claim is held because the attempt budget was exhausted and nothing reached Núclea: recover with POST /v1/connectivity/unpark. in_flight means the file may be at Núclea and the local transition failed: reconcile with Núclea, then POST /v1/operations/{operationId}/advance if Núclea holds the file, or POST /v1/connectivity/unpark with confirmedNotAtNuclea=true and a reason only if Núclea confirms it did not receive it. null names NO verb: it means no external dependency is named for this state — the operation is terminal, or the wait is internal (CREATED/ACCEPTED, where advance/requeue applies), or it awaits a counterpart this vocabulary does not name yet (CONFIRMED awaits the settlement Núclea reports per record; SETTLED awaits the domicile D+1 answer in the SLC0908 record). Pair a null with state before choosing an action."
          enum:
            - transport
            - nuclea_ack
            - if_confirmation
            - parked
            - in_flight
            - null
          examples:
            - nuclea_ack
          type:
            - string
            - "null"
      required:
        - id
        - externalId
        - operationType
        - state
        - participantId
        - participantRole
        - settlementIfIspb
        - value
        - currency
        - installments
        - installmentNumber
        - dueDate
        - transactionDate
        - nuliquid
        - intakeMode
        - eslcErrors
        - reasonCategory
        - cancellationTargetOperationId
        - createdAt
        - updatedAt
        - correctsOperationId
        - correctedByOperationId
        - waitingFor
        - stuckSince
        - lastError
      type: object
    OperationHistoryResponse:
      additionalProperties: false
      properties:
        items:
          description: State-transition entries ordered oldest first.
          items:
            $ref: "#/components/schemas/StateHistoryEntry"
          type: array
      required:
        - items
      type: object
    OperationSummary:
      additionalProperties: false
      properties:
        arrangementCode:
          description: Payment arrangement (arranjo) code.
          examples:
            - "0245"
          type: string
        batchId:
          description: Batch id when created via the NDJSON batch endpoint.
          examples:
            - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
          type: string
        createdAt:
          description: Creation timestamp (RFC3339).
          examples:
            - "2026-06-15T10:50:00Z"
          type: string
        currency:
          description: ISO 4217 currency code.
          examples:
            - BRL
          type: string
        externalId:
          description: Client-side external identifier.
          examples:
            - acq-ext-2026-06-0001
          type: string
        id:
          description: Operation id (UUID).
          examples:
            - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
          type: string
        intakeMode:
          description: Intake mode the operation was received through.
          examples:
            - api_jsonl
          type: string
        nuliquid:
          description: Núclea-assigned NUliquid (21 positions); null until assigned.
          examples:
            - "202606150000000000001"
          type:
            - string
            - "null"
        operationType:
          description: Operation type.
          examples:
            - CREDIT
          type: string
        participantRole:
          description: Participant role in the settlement.
          examples:
            - ACQUIRER
          type: string
        state:
          description: Lifecycle state.
          examples:
            - SETTLED
          type: string
        transactionDate:
          description: Business transaction date (RFC3339).
          examples:
            - "2026-06-15T00:00:00Z"
          type: string
        value:
          description: Operation amount in minor units (centavos).
          examples:
            - 150000
          format: int64
          type: integer
      required:
        - id
        - externalId
        - operationType
        - state
        - nuliquid
        - value
        - currency
        - intakeMode
        - participantRole
        - transactionDate
        - createdAt
      type: object
    PaginationMeta:
      additionalProperties: false
      properties:
        hasNext:
          description: True when the returned page filled the requested limit (page-full heuristic).
          examples:
            - true
          type: boolean
        page:
          description: 1-based page number derived from the offset.
          examples:
            - 1
          format: int64
          type: integer
        perPage:
          description: Requested page size.
          examples:
            - 50
          format: int64
          type: integer
      required:
        - page
        - perPage
        - hasNext
      type: object
    ParticipantOperationalStatusResponse:
      additionalProperties: false
      properties:
        ispb:
          description: The participant's ISPB (8 characters) — the key the PAG0101 notice arrived under and the key the submission gate evaluates. Null when the participant has no ISPB registered, in which case it can never receive a notice.
          examples:
            - "12345678"
          type:
            - string
            - "null"
        nonOperating:
          description: Whether the submission gate blocks this participant. Read with the SAME key (the participant's ISPB) and the SAME predicate the gate uses, so it cannot disagree with it. NO_NOTICE is false — no notice does not block.
          examples:
            - true
          type: boolean
        previousStatus:
          description: "What the PREVIOUS row for this ISPB carried — a REWRITE marker, not a transition. PAG0101 is a recurring full-roster snapshot (at least 2 per business day) and there is no insert-only-on-change guard, so for a stable institution this equals status on essentially every read; a differing value is the exception. Diagnostic only: the submission gate reads status. Null on a first-ever notice or a NO_NOTICE answer."
          enum:
            - ACTIVE
            - SUSPENDED
            - SPECIAL_REGIME
            - null
          examples:
            - ACTIVE
          type:
            - string
            - "null"
        receivedAt:
          description: When the notice was recorded (RFC3339 UTC); null on a NO_NOTICE answer.
          examples:
            - "2026-08-11T05:50:00Z"
          format: date-time
          type:
            - string
            - "null"
        source:
          description: Message type the status came from; null on a NO_NOTICE answer.
          examples:
            - PAG0101
          type:
            - string
            - "null"
        sourceMessageId:
          description: Originating RSFN message id — the value to grep for in the logs to find the notice that caused this status. Null on a NO_NOTICE answer.
          examples:
            - "29011780202606280000050"
          type:
            - string
            - "null"
        status:
          description: "Latest operational status: ACTIVE, SUSPENDED, SPECIAL_REGIME, or NO_NOTICE when the participant exists but no PAG0101 has ever been recorded for it."
          enum:
            - ACTIVE
            - SUSPENDED
            - SPECIAL_REGIME
            - NO_NOTICE
          examples:
            - SUSPENDED
          type: string
      required:
        - ispb
        - status
        - previousStatus
        - nonOperating
        - source
        - sourceMessageId
        - receivedAt
      type: object
    ParticipantResponse:
      additionalProperties: false
      properties:
        active:
          description: Whether the participant is active.
          examples:
            - true
          type: boolean
        bcbCode:
          description: Participant code at the Banco Central.
          examples:
            - "0001"
          type: string
        connectivityOk:
          description: Last connectivity-probe result; null until a probe runs.
          examples:
            - true
          type:
            - boolean
            - "null"
        createdAt:
          description: Creation timestamp (RFC3339 UTC).
          examples:
            - "2026-06-15T07:50:00Z"
          format: date-time
          type: string
        document:
          description: Participant CNPJ (exactly 14 unformatted positions; accepts digits or letters).
          examples:
            - "12345678000199"
          type: string
        id:
          description: Participant id (UUID).
          examples:
            - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
          type: string
        ispb:
          description: Participant ISPB (8-character identifier).
          examples:
            - "29011780"
          type: string
        lastConnectivityAt:
          description: Timestamp of the last connectivity probe (RFC3339 UTC); null until a probe runs.
          examples:
            - "2026-06-15T07:50:00Z"
          format: date-time
          type:
            - string
            - "null"
        metadata:
          additionalProperties: {}
          description: Free-form metadata key/value pairs.
          type: object
        name:
          description: Participant legal name.
          examples:
            - Acquirer Example S.A.
          type: string
        nucleaCode:
          description: Participant code assigned by Núclea.
          examples:
            - NU12345
          type: string
        type:
          description: Participant role/type in the card-settlement flow.
          examples:
            - ACQUIRER
          type: string
        updatedAt:
          description: Last-update timestamp (RFC3339 UTC).
          examples:
            - "2026-06-15T07:50:00Z"
          format: date-time
          type: string
      required:
        - id
        - type
        - name
        - active
        - connectivityOk
        - lastConnectivityAt
        - createdAt
        - updatedAt
      type: object
    ReconcileRequest:
      additionalProperties: false
      properties:
        participantIspb:
          description: ISPB (8 characters) the SLC0908 consulta is run on behalf of. A resource selector for the counterpart node, not an identity claim.
          examples:
            - "12345678"
          type: string
        reason:
          description: Audit justification (mandatory; enforced by the domain). At most 1024 characters. This verb takes no evidence — the counterpart's answer is the evidence.
          examples:
            - operation stuck at ACCEPTED after the credit window closed
          maxLength: 1024
          type: string
      type: object
    ReconcileResponse:
      additionalProperties: false
      properties:
        action:
          description: "Outcome class: IN_SYNC (the two ledgers already agreed, nothing written) or SYNCHRONIZED (the local record was advanced)."
          enum:
            - IN_SYNC
            - SYNCHRONIZED
          examples:
            - SYNCHRONIZED
          type: string
        controlNumber:
          description: Counterpart control number correlating the operation, when the answer carried one.
          examples:
            - CTRL-0042
          type: string
        counterpartStatus:
          description: The counterpart's RAW SLC0908 settlement status, echoed verbatim rather than re-rendered through this service's vocabulary.
          examples:
            - CONFIRMED
          type: string
        localState:
          description: Local state after the reconcile.
          examples:
            - CONFIRMED
          type: string
        operationId:
          description: Operation id (UUID) that was reconciled.
          examples:
            - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
          type: string
        previousState:
          description: Local state before the reconcile. Equal to localState on an IN_SYNC run.
          examples:
            - ACCEPTED
          type: string
        reconciledBy:
          description: Authenticated subject who requested the reconcile, taken from the validated request identity and never from the payload.
          examples:
            - ops@acquirer.com
          type: string
        trigger:
          description: Transition trigger (always NUCLEA_RECONCILED). Absent on an IN_SYNC run, where no transition was persisted.
          examples:
            - NUCLEA_RECONCILED
          type: string
      required:
        - operationId
        - action
        - previousState
        - localState
        - counterpartStatus
        - reconciledBy
      type: object
    RecoveryActionResponse:
      additionalProperties: false
      properties:
        action:
          description: Recovery action that was triggered.
          examples:
            - dispatch
          type: string
        participantIspb:
          description: Participant ISPB (8-character identifier); present only for the reprocess action.
          examples:
            - "12345678"
          type: string
      required:
        - action
      type: object
    RecoveryUnparkRequest:
      additionalProperties: false
      properties:
        confirmedNotAtNuclea:
          description: Set ONLY after reconciling with Nuclea and confirming the file was NOT accepted. Without it, an operation whose transmit hold is in_flight is refused with 409, because releasing it would re-submit an accepted settlement file. With it, those ids are released too and the decision is logged at ERROR with your reason. Nuclea's synchronous 202 means "accepted for processing", not settled, so this case is real - but it is the caller's finding, never a default.
          examples:
            - false
          type: boolean
        operationIds:
          description: Parked operation ids to un-park. Enumerate them with GET /v1/operations?transmitHold=parked, which is the authoritative, paginated list; the operation.forward_rejected alert (payload operationIds) and the park's ERROR log field parked_operation_ids are first-response excerpts of the same set. 1..500 UUIDs.
          examples:
            -   - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
          items:
            format: uuid
            type: string
          maxItems: 500
          minItems: 1
          type:
            - array
            - "null"
        reason:
          description: How it was confirmed that Nuclea did not accept the file. REQUIRED when confirmedNotAtNuclea is true (a cross-field rule no JSON Schema keyword can state, so it is enforced by the use case as a coded 422); it is the audit record of who decided to release a possibly-in-flight settlement.
          examples:
            - "Nuclea support ticket 48210: file ASLC022_62313268_20260724_00006 not received; no NUliquid issued."
          maxLength: 500
          type: string
      required:
        - operationIds
      type: object
    RecoveryUnparkResponse:
      additionalProperties: false
      properties:
        action:
          description: Recovery action that was executed.
          examples:
            - unpark
          type: string
        released:
          description: Transmit claims actually cleared; these operations are back in the eligible backlog.
          examples:
            - 2
          format: int64
          type: integer
        requested:
          description: Distinct operation ids named in the request.
          examples:
            - 3
          format: int64
          type: integer
        skipped:
          description: Ids that carried no transmit claim (never parked, or already un-parked) or whose claim is younger than the safety floor.
          examples:
            - 1
          format: int64
          type: integer
      required:
        - action
        - requested
        - released
        - skipped
      type: object
    ReportResponse:
      additionalProperties: false
      properties:
        ackControlNumber:
          description: Núclea acknowledgement control number, omitted when absent.
          examples:
            - "20260615000012345"
          type: string
        ackReceivedAt:
          description: Timestamp the Núclea acknowledgement was received, null when not yet acknowledged (RFC3339).
          examples:
            - "2026-06-15T07:50:00Z"
          format: date-time
          type:
            - string
            - "null"
        availableAt:
          description: Timestamp the report became available for pickup, null when not yet available (RFC3339).
          examples:
            - "2026-06-15T08:00:00Z"
          format: date-time
          type:
            - string
            - "null"
        category:
          description: Report category.
          examples:
            - SETTLEMENT
          type: string
        createdAt:
          description: Timestamp the report row was created (RFC3339).
          examples:
            - "2026-06-15T07:50:00Z"
          format: date-time
          type: string
        expiresAt:
          description: Timestamp the report is no longer available for pickup, null when open-ended (RFC3339).
          examples:
            - "2026-06-18T08:00:00Z"
          format: date-time
          type:
            - string
            - "null"
        filePath:
          description: Storage path of the materialized report file, omitted when absent.
          examples:
            - reports/2026/06/15/settlement-summary.pdf
          type: string
        id:
          description: Report id (UUID).
          examples:
            - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
          type: string
        recordsCount:
          description: Number of records the report contains, null when unknown.
          examples:
            - 1200
          format: int64
          type:
            - integer
            - "null"
        referenceDate:
          description: Settlement reference date the report covers (RFC3339).
          examples:
            - "2026-06-15T00:00:00Z"
          format: date-time
          type: string
        requestId:
          description: Originating request id (UUID) that produced this report, omitted when absent.
          examples:
            - 0190b5a0-0000-7000-8000-0000000000aa
          type: string
        source:
          description: Origin of the report (e.g. the ASLC9xx intake pipeline), omitted when absent.
          examples:
            - ASLC900
          type: string
        state:
          description: Report lifecycle state.
          examples:
            - READY
          type: string
        type:
          description: Report type name.
          examples:
            - SETTLEMENT_SUMMARY
          type: string
      required:
        - id
        - type
        - category
        - referenceDate
        - state
        - ackReceivedAt
        - recordsCount
        - availableAt
        - expiresAt
        - createdAt
      type: object
    RequestCancellationRequest:
      additionalProperties: false
      properties:
        externalId:
          description: Optional client-side reference for the new CANCELLATION operation. When present it must not be used by any other operation (409 DUPLICATE_EXTERNAL_ID).
          examples:
            - canc-2026-06-0001
          maxLength: 255
          type: string
        reasonCategory:
          description: "Numeric MotvCanc cancellation reason (OP107 §11.3.16): '1'..'4'."
          enum:
            - "1"
            - "2"
            - "3"
            - "4"
          examples:
            - "4"
          type: string
      required:
        - reasonCategory
      type: object
    RequeueResponse:
      additionalProperties: false
      properties:
        operationId:
          description: Operation id (UUID) that was re-queued.
          examples:
            - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
          type: string
        state:
          description: State after the re-queue (QUEUED).
          examples:
            - QUEUED
          type: string
      required:
        - operationId
        - state
      type: object
    ResultPaymentResponse:
      additionalProperties: false
      properties:
        numCtrlSTR:
          description: NumCtrlSTR of the LTR0004R1.
          type: string
        paidAt:
          description: When the STR settled the payment (the LTR0004R1's DtHrSit, RFC3339).
          type: string
        vlrLanc:
          description: The amount the LTR0004 paid, as a decimal string, comparable with the result's vlrLanc.
          type: string
      required:
        - numCtrlSTR
        - vlrLanc
        - paidAt
      type: object
    RetransmitResponse:
      additionalProperties: false
      properties:
        action:
          description: Action that ran.
          examples:
            - retransmit
          type: string
        operationId:
          description: Operation id (UUID).
          examples:
            - 0190b5a0-0000-7000-8000-0000000000aa
          type: string
        state:
          description: Resulting operation lifecycle state.
          examples:
            - SENT
          type: string
      required:
        - operationId
        - action
        - state
      type: object
    RetryResponse:
      additionalProperties: false
      properties:
        operationId:
          description: New chained operation id (UUID).
          examples:
            - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
          type: string
        originalOperationId:
          description: Chain root operation id (UUID) the retry descends from.
          examples:
            - 018f8a2c-1a2b-7c3d-8e4f-5a6b7c8d9e0f
          type: string
        retryCount:
          description: Chain depth of the new operation.
          examples:
            - 1
          format: int32
          type: integer
        state:
          description: Initial lifecycle state of the new operation.
          examples:
            - CREATED
          type: string
      required:
        - operationId
        - originalOperationId
        - retryCount
        - state
      type: object
    RoundEvidenceResponse:
      additionalProperties: false
      properties:
        amount:
          description: The launch value as declared or received.
          type: string
        declaredBy:
          description: The subject that declared it.
          type: string
        dtMovto:
          description: DtMovto of the launch.
          type: string
        effectiveAt:
          description: The launch's situation time (RFC3339).
          type: string
        messageCode:
          description: "The STR message the proof is: LDL0022R1 for the deposit, LDL0006R2 for its return."
          type: string
        numCtrlIF:
          description: NumCtrlIF of the client's LDL0022.
          type: string
        numCtrlSTR:
          description: NumCtrlSTR of the launch; omitted on a refusal, which launched nothing.
          type: string
        numCtrlSTROr:
          description: "NumCtrlSTROr of an LDL0006R2: the NumCtrlSTR of the deposit it returned."
          type: string
        origin:
          description: CLIENT_DECLARED or BR_SPB.
          type: string
        recordedAt:
          description: When the rail recorded it (RFC3339).
          type: string
        refusal:
          $ref: "#/components/schemas/RoundRefusalResponse"
          description: What ended the LDL0022 with no STR launch (an LDL0022E, a GEN0004 naming it, or Lerian SPB's close of it); omitted on a launch.
        sitLancCategory:
          description: EFFECTED, CANCELLED or REJECTED.
          type: string
        sitLancLDL:
          description: SitLancLDL as received.
          type: string
      required:
        - messageCode
        - effectiveAt
        - dtMovto
        - amount
        - origin
        - recordedAt
      type: object
    RoundRefusalResponse:
      additionalProperties: false
      properties:
        errorCode:
          description: CodErro or ErroGEN, verbatim; omitted when the E-return carried none.
          type: string
        messageCode:
          description: "The refusal of the STR: the LDL0022 returned with its E code, or a GEN0004 naming it; omitted when Lerian SPB closed it."
          enum:
            - LDL0022E
            - GEN0004
          type: string
        railClose:
          description: "Why Lerian SPB closed the LDL0022 with no answer of the STR: its grade closed or its movement day ended before any send reached the MQ, or two operators closed it past its deadline; omitted on a refusal of the STR."
          enum:
            - GRADE_CLOSED
            - DAY_ENDED
            - OPERATORS_CLOSED
          type: string
      type: object
    STRProofResponse:
      additionalProperties: false
      properties:
        amount:
          description: VlrLanc of the LTR0005R2, verbatim, as a decimal string.
          type: string
        numCtrlLtr:
          description: NumCtrlLTR of the LTR0005R2.
          type: string
        numCtrlSlc:
          description: NumCtrlSLC of the SLC0005 that names the file and the transfer.
          type: string
        numCtrlStr:
          description: NumCtrlSTR of the LTR0005R2.
          type: string
        settledAt:
          description: When the STR settled the transfer (the LTR0005R2's DtHrBC, RFC3339).
          type: string
      required:
        - numCtrlSlc
        - numCtrlStr
        - numCtrlLtr
        - settledAt
        - amount
      type: object
    ScheduleCreditDispatchResponse:
      additionalProperties: false
      properties:
        closesAt:
          description: Close boundary of that same instance (RFC3339 UTC). It lands on D+1 under Grade Especial 1, whose credit leg runs 03h00 D0 to 05h30 D+1 (INFO-NÚCLEA-SLC 009-2026 §4.1.b); it is reported verbatim, never wrapped back into the day.
          examples:
            - "2026-07-15T20:30:00Z"
          format: date-time
          type: string
        gate:
          description: "Which gate this instance applies. V0_CREDIT_WINDOW is the default: the single daily SCHEDULE_CREDIT_WINDOW_OPEN/_CLOSE window, evaluated against the settlement calendar — weekends, plus the dates configured in SCHEDULE_HOLIDAYS. GRID is the opt-in posture over the grid's FIXED CREDIT_DISPATCH_CYCLE_1 hours, which never read SCHEDULE_CREDIT_WINDOW_*. Both consult the same calendar; they differ in WHICH window applies. DEV_ALWAYS_OPEN is the dev-only relaxation, consulting neither clock nor calendar, unreachable under production/SaaS."
          enum:
            - V0_CREDIT_WINDOW
            - GRID
            - DEV_ALWAYS_OPEN
          examples:
            - V0_CREDIT_WINDOW
          type: string
        nextOpenAt:
          description: "Next instant the reported window opens (RFC3339 UTC). It is what makes a CLOSED posture legible: opensAt/closesAt keep naming the day's hours even after they elapsed. Under GRID and under V0_CREDIT_WINDOW alike it is rolled by the settlement calendar to the next business day, so it never names a weekend nor a date configured in SCHEDULE_HOLIDAYS. That list is the WHOLE holiday source — it has no default, so a deployment that leaves it empty gets weekend closure only and this instant can name a national holiday; under DEV_ALWAYS_OPEN it names the CONFIGURED window's next opening with no calendar at all, because that gate consults none."
          examples:
            - "2026-07-16T03:30:00Z"
          format: date-time
          type: string
        opensAt:
          description: Open boundary of the window INSTANCE the reported gate is applying (RFC3339 UTC). Normally this request's local day; for a cross-midnight window still running from the previous day it is that day's boundary, because that is the instance state describes. So while state is OPEN the invariant opensAt <= now < closesAt holds — except under DEV_ALWAYS_OPEN, whose OPEN belongs to the gate and not to the window.
          examples:
            - "2026-07-15T03:30:00Z"
          format: date-time
          type: string
        specialGrade:
          description: "Active Núclea grade (SCHEDULE_SPECIAL_GRADE). Reported under every gate: a special grade and the grid gate are mutually exclusive at boot, so 'none' next to GRID is the honest answer rather than a missing one."
          enum:
            - none
            - especial1
            - especial2
          examples:
            - none
          type: string
        state:
          description: Phase at this instant, taken from the same predicate the dispatch gate reads. Under DEV_ALWAYS_OPEN it is always OPEN, because that is what the gate answers at every instant.
          enum:
            - OPEN
            - PRE_CUTOFF
            - CLOSED
          examples:
            - OPEN
          type: string
      required:
        - gate
        - specialGrade
        - opensAt
        - closesAt
        - state
        - nextOpenAt
      type: object
    ScheduleResponse:
      additionalProperties: false
      properties:
        businessDay:
          description: True when the bank calendar considers this date a settlement business day. False on a weekend or holiday, where the window boundaries below still name the published grade hours but nothing is dispatched in them — read nextOpenAt to disambiguate.
          examples:
            - true
          type: boolean
        creditDispatch:
          $ref: "#/components/schemas/ScheduleCreditDispatchResponse"
          description: "The EFFECTIVE credit dispatch posture: which gate this instance applies and over which window. The enforced credit window is not necessarily in the grid below, so this is the authoritative answer for outbound credit."
        date:
          description: "Local São Paulo calendar date (YYYY-MM-DD) the grid was evaluated on. It is the LOCAL date, not the UTC one: the two disagree for three hours every night, which is exactly when a settlement day rolls over."
          examples:
            - "2026-07-15"
          type: string
        timezone:
          description: IANA name of the zone the boundaries were computed in, read from the grid's windows.
          examples:
            - America/Sao_Paulo
          type: string
        windows:
          description: Every window of the grid, ordered by opensAt ascending with a name ascending tie-break. Always an array — an empty grid serializes as [], never null.
          items:
            $ref: "#/components/schemas/ScheduleWindowResponse"
          type: array
      required:
        - date
        - businessDay
        - timezone
        - creditDispatch
        - windows
      type: object
    ScheduleWindowResponse:
      additionalProperties: false
      properties:
        closesAt:
          description: This day's local close boundary (RFC3339 UTC). D+1 whenever the close offset exceeds 24h.
          examples:
            - "2026-07-15T10:50:00Z"
          format: date-time
          type: string
        cutoffAt:
          description: This day's modeled STR cutoff (RFC3339 UTC), or null on a window that models no cutoff — the seven submission/receipt windows, which are never PRE_CUTOFF.
          examples:
            - "2026-07-15T10:50:00Z"
          format: date-time
          type:
            - string
            - "null"
        name:
          description: The window kind, verbatim — the same literal the dispatch gates key on.
          examples:
            - CREDIT_DISPATCH_CYCLE_1
          type: string
        nextOpenAt:
          description: "Next instant this window opens (RFC3339 UTC), rolled by the settlement calendar to the next business day, so it never names a weekend nor a date configured in SCHEDULE_HOLIDAYS. That list is the whole holiday source and has no default: with it empty the calendar is weekends only."
          examples:
            - "2026-07-16T03:30:00Z"
          format: date-time
          type: string
        opensAt:
          description: This day's local open boundary (RFC3339 UTC). Reported even on a non-business day.
          examples:
            - "2026-07-15T03:30:00Z"
          format: date-time
          type: string
        state:
          description: Phase at this instant, verbatim from the window — the same value the dispatch gate reads, never a second opinion. PRE_CUTOFF means dispatch is still permitted but the cutoff is within the alert lead.
          enum:
            - OPEN
            - PRE_CUTOFF
            - CLOSED
          examples:
            - CLOSED
          type: string
      required:
        - name
        - opensAt
        - closesAt
        - cutoffAt
        - state
        - nextOpenAt
      type: object
    SettledResponse:
      additionalProperties: false
      properties:
        domicileStatus:
          description: SitRespDomicilio of that report's record, verbatim.
          type: string
        reportControlNumber:
          description: NumCtrlRelat of that report, verbatim.
          type: string
        settledAt:
          description: When this rail read SitSolictLiquidacao Liquidado (RFC3339).
          type: string
      required:
        - settledAt
        - reportControlNumber
        - domicileStatus
      type: object
    SettlementInstructionDetailResponse:
      additionalProperties: false
      properties:
        currency:
          description: Amount currency.
          type: string
        cycle:
          description: CodPerOperac of the deposit cycle.
          type: string
        depositDeadline:
          description: LDL0021 DtDep + HrioLimDep (RFC3339).
          type: string
        depositRequest:
          $ref: "#/components/schemas/DepositRequestResponse"
          description: The LDL0022 fields for the current round; omitted when the round asks for no deposit.
        depositSender:
          description: "Who sends the card deposits in this installation: LERIAN_SPB (Lerian SPB) or CLIENT_SPB (the client's own SPB)."
          enum:
            - LERIAN_SPB
            - CLIENT_SPB
          type: string
        id:
          description: Settlement instruction id.
          type: string
        netAmountCents:
          description: Value of the current round as the LDL0021 carried it, in cents (negative = the IF deposits).
          format: int64
          type: integer
        notifiedAt:
          description: When the client was notified of the current round (RFC3339).
          type: string
        participantIspb:
          description: ISPB of the IF the deposit value was informed to.
          type: string
        productCode:
          description: CodProdt of the LDL0021.
          type: string
        referenceDate:
          description: Settlement business day (YYYY-MM-DD).
          type: string
        round:
          description: Current round.
          format: int64
          type: integer
        rounds:
          description: Every round, oldest first.
          items:
            $ref: "#/components/schemas/InstructionRoundResponse"
          type: array
        state:
          description: PENDING, NOTIFIED, DEPOSITED or SETTLED.
          type: string
        updatedAt:
          description: Last change (RFC3339).
          type: string
      required:
        - rounds
        - depositSender
        - id
        - referenceDate
        - cycle
        - state
        - round
        - netAmountCents
        - currency
        - updatedAt
      type: object
    SettlementInstructionResponse:
      additionalProperties: false
      properties:
        currency:
          description: Amount currency.
          type: string
        cycle:
          description: CodPerOperac of the deposit cycle.
          type: string
        depositDeadline:
          description: LDL0021 DtDep + HrioLimDep (RFC3339).
          type: string
        id:
          description: Settlement instruction id.
          type: string
        netAmountCents:
          description: Value of the current round as the LDL0021 carried it, in cents (negative = the IF deposits).
          format: int64
          type: integer
        notifiedAt:
          description: When the client was notified of the current round (RFC3339).
          type: string
        participantIspb:
          description: ISPB of the IF the deposit value was informed to.
          type: string
        productCode:
          description: CodProdt of the LDL0021.
          type: string
        referenceDate:
          description: Settlement business day (YYYY-MM-DD).
          type: string
        round:
          description: Current round.
          format: int64
          type: integer
        state:
          description: PENDING, NOTIFIED, DEPOSITED or SETTLED.
          type: string
        updatedAt:
          description: Last change (RFC3339).
          type: string
      required:
        - id
        - referenceDate
        - cycle
        - state
        - round
        - netAmountCents
        - currency
        - updatedAt
      type: object
    SettlementPage:
      additionalProperties: false
      properties:
        hasNext:
          description: True when the page filled the limit.
          type: boolean
        items:
          items:
            $ref: "#/components/schemas/SettlementResponse"
          type: array
        limit:
          description: Page size applied.
          format: int64
          type: integer
        offset:
          description: Row offset applied.
          format: int64
          type: integer
      required:
        - items
        - limit
        - offset
        - hasNext
      type: object
    SettlementResponse:
      additionalProperties: false
      properties:
        acquirerAccount:
          description: CtCreddr; absent when the file omits it.
          type: string
        acquirerBranch:
          description: AgCreddr; absent when the file omits it.
          type: string
        acquirerCnpj:
          description: CNPJCreddr.
          type: string
        acquirerCnpjBase:
          description: CNPJBaseCreddr.
          type: string
        acquirerName:
          description: NomCreddr.
          type: string
        administeredParticipant:
          description: IdentdPartAdmtd.
          type: string
        amount:
          description: VlrPgto, verbatim, as a decimal string.
          type: string
        amountType:
          description: TpVlrPgto.
          type: string
        arrangementCode:
          description: CodInstitdrArrajPgto.
          type: string
        cancelled:
          $ref: "#/components/schemas/CancelledResponse"
          description: "The ASLC061/065 that cancelled the settlement: the domicile must not credit it. Absent while it stands."
        centralizerAccount:
          description: CtCentrlz; absent when the file omits it.
          type: string
        centralizerAccountType:
          description: TpCt; absent when the file omits it.
          type: string
        centralizerBranch:
          description: AgCentrlz; absent when the file omits it.
          type: string
        centralizerCode:
          description: CodCentrlz.
          type: string
        centralizerDocument:
          description: CNPJ_CPFCentrlz.
          type: string
        centralizerPaymentAccount:
          description: CtPgtoCentrlz; absent when the file omits it.
          type: string
        centralizerPersonType:
          description: TpPessoaCentrlz.
          type: string
        currency:
          description: CodMoeda.
          type: string
        fileControlNumber:
          description: NumCtrlEmis of the file.
          type: string
        fileName:
          description: NomArq of the file.
          type: string
        ispbIfCreditor:
          description: ISPBIFCredr.
          type: string
        ispbIfDebtor:
          description: ISPBIFDevdr.
          type: string
        ispbIfSettlement:
          description: ISPBIFLiquidPontoVenda.
          type: string
        maintainedAt:
          description: DtHrManut, verbatim.
          type: string
        nuLiquid:
          description: NULiquid, the Núclea settlement number.
          type: string
        paymentDate:
          description: DtPgto (YYYY-MM-DD).
          type: string
        posCode:
          description: CodPontoVenda.
          type: string
        posDocument:
          description: CNPJ_CPFPontoVenda.
          type: string
        posName:
          description: NomePontoVenda.
          type: string
        posPersonType:
          description: TpPessoaPontoVenda.
          type: string
        posType:
          description: TpPontoVenda.
          type: string
        principalParticipant:
          description: IdentdPartPrincipal.
          type: string
        productType:
          description: TpProdLiquidCred, TpProdLiquidDeb or TpProdLiquidCarts, by type.
          type: string
        receivedAt:
          description: When this rail stored the settlement (RFC3339).
          type: string
        referenceDate:
          description: DtRef of the file (YYYY-MM-DD).
          type: string
        responses:
          description: The answers given to this settlement, oldest first; empty until one is given.
          items:
            $ref: "#/components/schemas/AnswerResponse"
          type: array
        settled:
          $ref: "#/components/schemas/SettledResponse"
          description: Núclea's ASLC929 report that read the settlement Liquidado; absent while open.
        strProofs:
          description: The STR's proof that an LBTR paid this ASLC032 settlement's file, from the SLC0005 and LTR0005R2 this rail stored; empty until both arrive and agree, and always empty for CREDIT and DEBIT.
          items:
            $ref: "#/components/schemas/STRProofResponse"
          type: array
        transferForm:
          description: IndrFormaTransf.
          type: string
        type:
          description: "The notice that carried it: CREDIT (ASLC022), DEBIT (ASLC024), ANTICIPATION (ASLC032)."
          enum:
            - CREDIT
            - DEBIT
            - ANTICIPATION
          type: string
      required:
        - nuLiquid
        - type
        - fileName
        - fileControlNumber
        - referenceDate
        - principalParticipant
        - administeredParticipant
        - acquirerCnpjBase
        - acquirerCnpj
        - acquirerName
        - ispbIfDebtor
        - ispbIfCreditor
        - centralizerPersonType
        - centralizerDocument
        - centralizerCode
        - ispbIfSettlement
        - posCode
        - posName
        - posPersonType
        - posDocument
        - arrangementCode
        - productType
        - transferForm
        - currency
        - posType
        - amountType
        - paymentDate
        - amount
        - maintainedAt
        - receivedAt
        - responses
        - strProofs
      type: object
    SigningKeyImportParamsResponse:
      additionalProperties: false
      properties:
        expiresAt:
          description: Import-token expiry (RFC3339 UTC); omitted when zero.
          examples:
            - "2026-06-15T07:50:00Z"
          type: string
        importTokenBase64:
          description: Base64-encoded opaque KMS import token to pass back on the complete-import call.
          type: string
        keyId:
          description: KMS key id created for this import.
          examples:
            - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
          type: string
        wrappingPublicKeyBase64:
          description: Base64-encoded PUBLIC wrapping key (DER) used to wrap the private key locally.
          type: string
      required:
        - keyId
        - wrappingPublicKeyBase64
        - importTokenBase64
      type: object
    SigningKeyImportRequest:
      additionalProperties: false
      properties:
        encryptedKeyMaterialBase64:
          description: Base64-encoded wrapped private-key material (Model A — never cleartext).
          minLength: 1
          type: string
        importTokenBase64:
          description: Base64-encoded opaque KMS import token from the import-params step.
          minLength: 1
          type: string
        keyId:
          description: KMS key id returned by the import-params step.
          examples:
            - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
          minLength: 1
          type: string
        participantIspb:
          description: Participant ISPB the certificate belongs to (8-character identifier).
          examples:
            - "29011780"
          minLength: 1
          type: string
        publicCertPem:
          description: PEM-encoded PUBLIC ICP-Brasil server-type certificate. Refused unless the key is RSA of at least 2048 bits and the certificate is valid right now (MAPX-OP106 §8.3.1 vii, §8.4).
          minLength: 1
          type: string
      required:
        - participantIspb
        - publicCertPem
        - keyId
        - importTokenBase64
        - encryptedKeyMaterialBase64
      type: object
    SigningKeyImportResponse:
      additionalProperties: false
      properties:
        certificateId:
          description: Stored public-certificate id.
          examples:
            - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
          type: string
        kmsRef:
          description: KMS key reference.
          examples:
            - arn:aws:kms:us-east-1:000000000000:key/018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
          type: string
        status:
          description: Import result status.
          examples:
            - imported
          type: string
      required:
        - status
        - certificateId
        - kmsRef
      type: object
    StateHistoryEntry:
      additionalProperties: false
      properties:
        attributedTo:
          description: "Authenticated subject the transition is attributed to; absent when none was recorded. Only the triggers that carry attribution (MANUAL_OVERRIDE, NUCLEA_RECONCILED) record one, so it is always absent for the automatic transport transitions — but the trigger marks a transition as attribution-CAPABLE, not as attributed: the column is nullable and rows predating attribution carry the trigger with no subject. Presence does NOT mean an operator intervened — read trigger for that."
          examples:
            - ops@acquirer.com
          type: string
        attributionEvidence:
          description: "Supporting evidence recorded with the transition; absent when none was recorded. Under triggers NUCLEA_RECORD_STATUS and NUCLEA_RECONCILED it carries financial data: the value is machine-rendered from the counterpart's SLC0908 record and carries the record's statuses and occurrence codes (sitSolictLiquidacao, sitRespDomicilio, codOcorc), the counterpart settlement key (nuliquid), its control number (controlNumber), the amount in centavos (valueCents) and the instant the consulta was read (consultedAt) — see the example for the exact shape. Every counterpart-supplied token is rendered as a quoted string, so it may contain escaped quotes and backslashes. Under trigger MANUAL_OVERRIDE the value is instead operator-supplied free text. Classify and redact this field as financial data, not as prose."
          examples:
            - SLC0908 sitSolictLiquidacao="Em processamento" sitRespDomicilio="ACEITO PELA INSTITUICAO DOMICILIO" codOcorc=["01"] nuliquid="202606150000000000001" controlNumber="20260615000000000042" valueCents=1234500 consultedAt=2026-06-15T10:50:00Z
          type: string
        attributionReason:
          description: Justification recorded with the transition; absent when none was recorded.
          examples:
            - counterpart reported settlement
          type: string
        fromState:
          description: Source state of the transition; null for the initial state.
          examples:
            - CREATED
          type:
            - string
            - "null"
        timestamp:
          description: Transition timestamp (RFC3339).
          examples:
            - "2026-06-15T10:50:00Z"
          type: string
        toState:
          description: Target state of the transition.
          examples:
            - QUEUED
          type: string
        trigger:
          description: Trigger that drove the transition.
          examples:
            - WINDOW_ASSIGNED
          type: string
      required:
        - fromState
        - toState
        - trigger
        - timestamp
      type: object
    SubmitAnticipationRequestBody:
      additionalProperties: false
      properties:
        cnpjNLiqdantCredtd:
          description: "CNPJNLiqdantCredtd: the acquirer's CNPJ."
          examples:
            - "99900003000101"
          pattern: ^[0-9A-Z]{12}[0-9]{2}$
          type: string
        dtLiquid:
          description: "DtLiquid: the payment date. The câmara refuses one that is not its movement date (ESLC1010)."
          examples:
            - "2026-10-13"
          format: date
          type: string
        dtMovto:
          description: "DtMovto: the movement date. The câmara refuses one that is not its own (ESLC1012)."
          examples:
            - "2026-10-13"
          format: date
          type: string
        ispbIFCredtd:
          description: "ISPBIFCredtd: the ISPB of the acquirer's settlement bank, the institution the transfer credits."
          examples:
            - "60746948"
          pattern: ^[0-9A-Z]{8}$
          type: string
        products:
          description: Grupo_SLC0004_Prodt, optional and repeatable. Never summed against vlrTot here.
          items:
            $ref: "#/components/schemas/AnticipationProductRequest"
          type:
            - array
            - "null"
        vlrTot:
          description: "VlrTot: the total to settle, a decimal string carried verbatim; the câmara refuses a value not above zero (ESLC1009)."
          examples:
            - "1500.00"
          pattern: ^-?[0-9]{1,17}(\.[0-9]{1,2})?$
          type: string
      required:
        - ispbIFCredtd
        - cnpjNLiqdantCredtd
        - vlrTot
        - dtLiquid
        - dtMovto
      type: object
    SubmitPositionQueryRequest:
      additionalProperties: false
      properties:
        cnpjNLiqdant:
          description: Filter to one non-liquidante's CNPJ.
          examples:
            - "12345678000199"
          type: string
        dtMovto:
          description: The settlement business day to query (the only required field).
          examples:
            - "2026-09-22"
          type: string
        identdPartCamr:
          description: Filter to one câmara participant identifier.
          examples:
            - "00012345"
          type: string
        ispbIFLiqdant:
          description: Filter to one settlement bank's ISPB. This is the COUNTERPARTY's settlement bank, never your own.
          examples:
            - "12345678"
          type: string
        numCtrlLTROr:
          description: Filter to one câmara-minted control number.
          examples:
            - "20260922000000000041"
          type: string
        numOpLTR:
          description: Filter to one LTR operation number.
          examples:
            - "0000000000000000123"
          type: string
        sitLancLTR:
          description: "Filter to one RAW 3-digit SitLancLTR situation code, passed through verbatim. The rail publishes no product enum for it: the domain has eighteen values and a filter that understands only some of them would silently lie about the rest."
          examples:
            - "001"
          type: string
        tpDebCred:
          description: Filter to DEBIT or CREDIT entries (case-insensitive).
          examples:
            - DEBIT
          type: string
      required:
        - dtMovto
      type: object
    TestConnectivityResponse:
      additionalProperties: false
      properties:
        cdConnection:
          $ref: "#/components/schemas/ChannelStatus"
          description: Managed file-transfer channel status (NOT_CONFIGURED).
        certificateExpiresAt:
          description: Signing-certificate expiry (RFC3339 UTC); never populated.
          examples:
            - "2027-06-15T00:00:00Z"
          type: string
        certificateValid:
          description: Whether the signing certificate is valid (never populated).
          examples:
            - true
          type: boolean
        nucleaApi:
          $ref: "#/components/schemas/ChannelStatus"
          description: Núclea REST-channel eco probe outcome.
        participantId:
          description: Participant id (8-character ISPB).
          examples:
            - "12345678"
          type: string
        rsfnConnection:
          $ref: "#/components/schemas/ChannelStatus"
          description: Message-broker channel status (NOT_CONFIGURED). For an IF Domicílio it is PENDING while the AGEN001 sent over the file channel awaits its answer.
        testId:
          description: "IF Domicílio only: id of the AGEN001 test sent over the file channel; poll GET /v1/participants/{participantIspb}/test-connectivity/{testId} for its outcome."
          examples:
            - 0f8fad5b-d9cb-469f-a165-70867728950e
          type: string
      required:
        - participantId
        - cdConnection
        - rsfnConnection
        - nucleaApi
      type: object
    TestDeliveryResponse:
      additionalProperties: false
      properties:
        httpStatus:
          description: HTTP status code returned by the consumer for the synthetic test delivery.
          examples:
            - 200
          format: int64
          type: integer
        responseTimeMs:
          description: Consumer response time for the synthetic test delivery, in milliseconds.
          examples:
            - 142
          format: int64
          type: integer
        retryable:
          description: Whether a failed synthetic delivery would be retried under the retry policy.
          examples:
            - false
          type: boolean
        success:
          description: Whether the synthetic delivery was classified as successful.
          examples:
            - true
          type: boolean
      required:
        - httpStatus
        - responseTimeMs
        - success
        - retryable
      type: object
    TransmissionStatusResponse:
      additionalProperties: false
      properties:
        lastError:
          description: All recorded Núclea business error codes for the operation, joined into one comma-separated string; omitted when none. These are clearing-house business rejections, not failures of the outbound transport.
          examples:
            - ESLC0029, ESLC0097
          type: string
        operationId:
          description: Operation id (UUID).
          examples:
            - 0190b5a0-0000-7000-8000-0000000000aa
          type: string
        state:
          description: Current operation lifecycle state.
          examples:
            - SENT
          type: string
        stuckSince:
          description: Timestamp since which the operation has been stuck (RFC3339 UTC); omitted when not stuck.
          examples:
            - "2026-06-15T08:00:00Z"
          type: string
        transmitClaimedAt:
          description: In-flight transmit-claim timestamp (RFC3339 UTC); omitted when no claim is held.
          examples:
            - "2026-06-15T07:50:00Z"
          type: string
        waitingFor:
          description: "What the operation is waiting on, and therefore which recovery verb applies. transport/nuclea_ack/if_confirmation are external waits. parked means the outbound attempt budget was exhausted and nothing reached Núclea: recover with POST /v1/connectivity/unpark. in_flight means the file may be at Núclea and the local transition failed: reconcile; if Núclea holds the file, POST /v1/operations/{operationId}/advance; only if Núclea confirms it did not receive the file, POST /v1/connectivity/unpark with confirmedNotAtNuclea=true and a reason. Omitted when no external dependency is named for the state: the operation is terminal, the wait is internal (CREATED/ACCEPTED, where advance/requeue applies), or it awaits a counterpart this vocabulary does not name yet (CONFIRMED, SETTLED). An omitted value names no verb."
          enum:
            - transport
            - nuclea_ack
            - if_confirmation
            - parked
            - in_flight
          examples:
            - nuclea_ack
          type: string
      required:
        - operationId
        - state
      type: object
    UnparkRequest:
      additionalProperties: false
      properties:
        confirmedNotAtNuclea:
          description: "Must be true: set it only after confirming with Núclea that the file was not received. Núclea processes only the first file of a name and refuses the others as duplicates, so unparking a file Núclea holds turns its accepted answers into a false refusal."
          type: boolean
        fileNames:
          description: 1 to 500 parked answer files (ASLC023, 025, 033, 062 or 066), named as they were sent.
          examples:
            -   - ASLC023_60746948_20260528_00007
          items:
            pattern: ^ASLC0(23|25|33|62|66)_[0-9A-Z]{8}_[0-9]{8}_[0-9]{5}$
            type: string
          maxItems: 500
          minItems: 1
          type:
            - array
            - "null"
        reason:
          description: How it was confirmed that Núclea did not receive the file; logged as the audit record of the decision.
          examples:
            - "Núclea support ticket 48210: ASLC023_60746948_20260528_00007 not received."
          maxLength: 500
          minLength: 1
          type: string
      required:
        - fileNames
        - confirmedNotAtNuclea
        - reason
      type: object
    UnparkResponse:
      additionalProperties: false
      properties:
        unparked:
          description: Files moved back to PENDING; the next window resends them under the same name. A named file that was not parked is absent.
          examples:
            -   - ASLC023_60746948_20260528_00007
          items:
            type: string
          type: array
      required:
        - unparked
      type: object
    UpdateArrangementRequest:
      additionalProperties: false
      properties:
        active:
          description: Whether the arrangement is active. Nil leaves it unchanged.
          examples:
            - true
          type:
            - boolean
            - "null"
        code:
          description: Card-scheme arrangement code. Omitted leaves it unchanged.
          examples:
            - VCC
          maxLength: 10
          type: string
        role:
          description: Participant role for this arrangement. Omitted leaves it unchanged.
          examples:
            - ACQUIRER
          type: string
      type: object
    UpdateParticipantRequest:
      additionalProperties: false
      properties:
        active:
          description: Whether the participant is active. Nil leaves it unchanged.
          examples:
            - true
          type:
            - boolean
            - "null"
        bcbCode:
          description: Participant code at the Banco Central. Omitted leaves it unchanged.
          examples:
            - "0001"
          maxLength: 10
          type: string
        document:
          description: "Participant CNPJ: absent, empty, or exactly 14 unformatted positions (digits or letters). Omitted leaves it unchanged."
          examples:
            - "12345678000199"
          pattern: ^$|^.{14}$
          type: string
        ispb:
          description: Participant ISPB (8-character identifier). Omitted leaves it unchanged.
          examples:
            - "29011780"
          type: string
        metadata:
          additionalProperties: {}
          description: Free-form metadata; a non-nil map replaces the stored value, nil leaves it unchanged.
          type: object
        name:
          description: Participant legal name. Omitted leaves it unchanged.
          examples:
            - Acquirer Example S.A.
          maxLength: 255
          type: string
        nucleaCode:
          description: Participant code assigned by Núclea. Omitted leaves it unchanged.
          examples:
            - NU12345
          maxLength: 20
          type: string
        type:
          description: Participant role/type in the card-settlement flow. Omitted leaves it unchanged.
          examples:
            - ACQUIRER
          type: string
      type: object
    UpdateWebhookRequest:
      additionalProperties: false
      properties:
        active:
          description: Activation flag; a pointer so null/omitted leaves the stored value unchanged.
          examples:
            - true
          type:
            - boolean
            - "null"
        description:
          description: New description; omitted leaves the stored value unchanged.
          examples:
            - Primary settlement consumer
          type: string
        events:
          description: Replacement event-type list; omitted leaves the stored list unchanged.
          examples:
            -   - operation.settled
                - operation.rejected
          items:
            type: string
          type:
            - array
            - "null"
        headers:
          additionalProperties:
            type: string
          description: Replacement static HTTP headers; omitted leaves the stored headers unchanged.
          type: object
        secret:
          description: New raw signing secret; when present it rotates the signing secret (rehashed, never stored in cleartext). Omitted leaves it unchanged.
          type: string
        timeoutSeconds:
          description: New per-delivery HTTP timeout in seconds; zero or omitted leaves it unchanged.
          examples:
            - 10
          format: int32
          minimum: 0
          type: integer
        url:
          description: New HTTPS endpoint; omitted leaves the stored value unchanged.
          examples:
            - https://client.example.com/webhooks/slc
          format: uri
          type: string
      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
    WebhookResponse:
      additionalProperties: false
      properties:
        active:
          description: Whether the subscription is active and eligible for delivery.
          examples:
            - true
          type: boolean
        createdAt:
          description: Subscription creation timestamp (RFC3339, UTC).
          examples:
            - "2026-06-15T07:50:00Z"
          format: date-time
          type: string
        description:
          description: Human-readable label for the subscription.
          examples:
            - Primary settlement consumer
          type: string
        events:
          description: Business event types this subscription is delivered.
          examples:
            -   - operation.settled
                - operation.rejected
          items:
            type: string
          type: array
        failureCount:
          description: Cumulative count of failed delivery attempts.
          examples:
            - 3
          format: int64
          type: integer
        id:
          description: Subscription id (UUID).
          examples:
            - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
          type: string
        lastDeliveryAt:
          description: Timestamp of the most recent delivery attempt (RFC3339, UTC); null when none has occurred.
          examples:
            - "2026-06-15T07:50:00Z"
          format: date-time
          type:
            - string
            - "null"
        lastDeliveryStatus:
          description: HTTP status code of the most recent delivery attempt; null when none has occurred.
          examples:
            - 200
          format: int32
          type:
            - integer
            - "null"
        successCount:
          description: Cumulative count of successful deliveries.
          examples:
            - 128
          format: int64
          type: integer
        updatedAt:
          description: Subscription last-update timestamp (RFC3339, UTC).
          examples:
            - "2026-06-15T07:50:00Z"
          format: date-time
          type: string
        url:
          description: HTTPS endpoint that receives webhook deliveries.
          examples:
            - https://client.example.com/webhooks/slc
          type: string
      required:
        - id
        - url
        - events
        - active
        - successCount
        - failureCount
        - lastDeliveryAt
        - lastDeliveryStatus
        - createdAt
        - updatedAt
      type: object
    XsdSchemaListResponse:
      additionalProperties: false
      properties:
        count:
          description: Number of embedded XSD schema types.
          examples:
            - 16
          format: int64
          type: integer
        schemas:
          description: Bare schema type names of the embedded official Núclea ASLC/RSFN XSDs; always a non-nil array (empty when none).
          items:
            type: string
          type: array
      required:
        - count
        - schemas
      type: object
  securitySchemes:
    BearerAuth:
      bearerFormat: JWT
      description: JWT bearer token issued by the identity provider.
      scheme: bearer
      type: http
info:
  description: API for Lerian SLC — the participant-side rail that connects the institution to Núclea's SLC card settlement.
  title: Lerian SLC API
  version: 1.0.0
openapi: 3.1.0
paths:
  /admin/dlq/{queue}:
    get:
      description: "Lists the installation's parked dead letters for the given queue (rsfn or sfn) NON-destructively — the messages the RSFN / SILOC ingest drivers could not process — available for administrative replay. queue is validated against the allowlist (unknown → 404). RBAC: dlq:read."
      operationId: listDeadLetters
      parameters:
        - description: Dead-letter queue (rsfn or sfn). An unknown queue is 404.
          in: path
          name: queue
          required: true
          schema:
            description: Dead-letter queue (rsfn or sfn). An unknown queue is 404.
            examples:
              - rsfn
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DlqListResponse"
          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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: List dead letters
      tags:
        - Admin
      x-required-scope: dlq:read
      x-mint:
        href: /pt/reference/rails/slc/list-dead-letters
  /admin/dlq/{queue}/{id}/replay:
    post:
      description: "Reprocesses the dead letter {id} on the given queue (rsfn or sfn) by re-invoking the same in-process ingest path (NOT a work-queue re-publish). Idempotent: the processed_messages dedup trap makes a re-dispatch of an already-processed message a no-op. queue is validated against the allowlist (unknown → 404); an unknown id → 404. RBAC: dlq:replay."
      operationId: replayDeadLetter
      parameters:
        - description: Dead-letter queue (rsfn or sfn). An unknown queue is 404.
          in: path
          name: queue
          required: true
          schema:
            description: Dead-letter queue (rsfn or sfn). An unknown queue is 404.
            examples:
              - rsfn
            type: string
        - description: Dead-letter id. An unknown id is 404.
          in: path
          name: id
          required: true
          schema:
            description: Dead-letter id. An unknown id is 404.
            examples:
              - dl-1
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DlqReplayResponse"
          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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Replay a dead letter
      tags:
        - Admin
      x-required-scope: dlq:replay
      x-mint:
        href: /pt/reference/rails/slc/replay-dead-letter
  /v1/clearing/positions:
    get:
      description: "Lists the settlement institution's (IF Liquidante) clearing positions: the SLC0001 (clearing net-position notice) net position per participant by stage (PREVIEW/FINAL). This is the clearing PREVIEW/POSITION notice only — it carries NO deposit window or action. Filters: referenceDate (YYYY-MM-DD), cycle, stage. Offset/limit pagination WITHOUT a total count. RBAC: clearing:read."
      operationId: listClearingPositions
      parameters:
        - description: Filter by settlement date (YYYY-MM-DD).
          explode: false
          in: query
          name: referenceDate
          schema:
            description: Filter by settlement date (YYYY-MM-DD).
            examples:
              - "2026-06-15"
            type: string
        - description: Filter by settlement cycle.
          explode: false
          in: query
          name: cycle
          schema:
            description: Filter by settlement cycle.
            examples:
              - "07:50"
            type: string
        - description: Filter by clearing stage (PREVIEW or FINAL).
          explode: false
          in: query
          name: stage
          schema:
            description: Filter by clearing stage (PREVIEW or FINAL).
            examples:
              - FINAL
            type: string
        - description: Page size (default 50, max 500). A non-positive/non-numeric value is rejected with 400.
          explode: false
          in: query
          name: limit
          schema:
            description: Page size (default 50, max 500). A non-positive/non-numeric value is rejected with 400.
            examples:
              - "50"
            type: string
        - description: Row offset (default 0). A negative/non-numeric value is rejected with 400.
          explode: false
          in: query
          name: offset
          schema:
            description: Row offset (default 0). A negative/non-numeric value is rejected with 400.
            examples:
              - "0"
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListClearingPositionsResponse"
          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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: List clearing positions
      tags:
        - Clearing
      x-required-scope: clearing:read
      x-mint:
        href: /pt/reference/rails/slc/list-clearing-positions
  /v1/connectivity/dispatch:
    post:
      description: "Drains the QUEUED credit backlog once, the same work the schedule worker runs. RBAC: connectivity:admin. Window-gated internally: outside the credit window it is a no-op that still returns 202. OUTBOUND (transmits to Núclea): serialized with the schedule worker via a shared drain lock — 409 on contention, 503 when the lock backend is unavailable (never transmits unlocked)."
      operationId: recoveryDispatch
      responses:
        "202":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RecoveryActionResponse"
          description: Accepted
        "500":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Internal Server Error
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Trigger a credit-dispatch catch-up drain
      tags:
        - Connectivity
      x-required-scope: connectivity:admin
      x-mint:
        href: /pt/reference/rails/slc/recovery-dispatch
  /v1/connectivity/operations/{id}/retransmit:
    post:
      description: "Re-submits a QUEUED operation to the Núclea OP107 §10 API, reusing the transmit-claim guard so a concurrent/duplicate retransmit cannot double-send (a transmit already in flight returns 409). RBAC: connectivity:admin. A non-QUEUED operation returns 409 with code SLC-0105 (INVALID_STATE_TRANSITION): the problem+json body carries only type/title/status/detail/code, and its detail is a fixed sentence that names neither the operation's current state nor QUEUED, the only state this verb accepts — read the current state from GET /v1/connectivity/operations/{id}/transmission-status."
      operationId: connectivityRetransmitOperation
      parameters:
        - description: Operation id (UUID).
          in: path
          name: id
          required: true
          schema:
            description: Operation id (UUID).
            examples:
              - 0190b5a0-0000-7000-8000-0000000000aa
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RetransmitResponse"
          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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Retransmit a QUEUED operation
      tags:
        - Connectivity
      x-required-scope: connectivity:admin
      x-mint:
        href: /pt/reference/rails/slc/connectivity-retransmit-operation
  /v1/connectivity/operations/{id}/transmission-status:
    get:
      description: "Reports the transmission/transport status of an operation: its lifecycle state, the in-flight transmit-claim marker (transmitClaimedAt), and the derived transport diagnostics (waitingFor / stuckSince / lastError). Every field is derived from existing columns/state and the append-only state log. RBAC: connectivity:admin."
      operationId: connectivityOperationTransmissionStatus
      parameters:
        - description: Operation id (UUID).
          in: path
          name: id
          required: true
          schema:
            description: Operation id (UUID).
            examples:
              - 0190b5a0-0000-7000-8000-0000000000aa
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TransmissionStatusResponse"
          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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Report an operation's transmission status
      tags:
        - Connectivity
      x-required-scope: connectivity:admin
      x-mint:
        href: /pt/reference/rails/slc/connectivity-operation-transmission-status
  /v1/connectivity/repoll:
    post:
      description: "Derives the participants awaiting a return and drives the ProcessReturn pipeline (poll PRO/RET → correlate → transition) once per participant, the same work the schedule worker runs. RBAC: connectivity:admin. INBOUND and NOT window-gated. It drives the idempotent ProcessReturn pipeline, so it runs lock-free and is safe to run concurrently with the worker."
      operationId: recoveryRepoll
      responses:
        "202":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RecoveryActionResponse"
          description: Accepted
        "500":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Internal Server Error
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Trigger a return-poll catch-up drain
      tags:
        - Connectivity
      x-required-scope: connectivity:admin
      x-mint:
        href: /pt/reference/rails/slc/recovery-repoll
  /v1/connectivity/reprocess/{participantIspb}:
    post:
      description: "Drives the ProcessReturn pipeline once for a single participant (poll PRO/RET → correlate → transition), the same per-participant work the return poll runs. RBAC: connectivity:admin. The participant ISPB is a path RESOURCE selector; INBOUND and NOT window-gated; it drives the idempotent ProcessReturn pipeline, so it runs lock-free."
      operationId: recoveryReprocess
      parameters:
        - description: Participant ISPB (8 characters, digits or uppercase letters). A non-conforming value is rejected with 400.
          in: path
          name: participantIspb
          required: true
          schema:
            description: Participant ISPB (8 characters, digits or uppercase letters). A non-conforming value is rejected with 400.
            examples:
              - "12345678"
            type: string
      responses:
        "202":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RecoveryActionResponse"
          description: Accepted
        "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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Reprocess pending returns for one participant
      tags:
        - Connectivity
      x-required-scope: connectivity:admin
      x-mint:
        href: /pt/reference/rails/slc/recovery-reprocess
  /v1/connectivity/unpark:
    post:
      description: "Clears the outbound transmit claim of the named operations, returning them to the eligible backlog so the next drain tick re-drives them. RBAC: connectivity:admin. It is the ONLY recovery path for a PARKED operation. A DISPATCH file (ASLC027/029/031/060/064 to Nuclea) parks when N consecutive counterpart refusals exhausted the operation's attempt budget (SCHEDULE_DISPATCH_MAX_TRANSMIT_ATTEMPTS, default 20), reported in parkReason as attempt_budget_exhausted; the operation stays QUEUED and the dispatch tick re-drives it. The value permanent_rejection is RETIRED and no longer emitted - no single 4xx response carries the evidence to park a file - but historical alerts still carry it. The held claim makes it invisible to every drain, and every other admin verb is a dead end: /advance rejects the no-op self-edge, /requeue is CREATED-only, /retry is REJECTED-only, and /retransmit loses its own claim CAS and answers 409 in-flight. Enumerate the ids with GET /v1/operations?transmitHold=parked, which is the authoritative, paginated, list; the operation.forward_rejected alert (payload operationIds) and the park's ERROR log field parked_operation_ids are first-response excerpts of the same set, and the daily webhook names only the first file parked that day. There is no scope-wide form: a held transmit claim is AMBIGUOUS between a parked operation and one whose file may already be at Nuclea, and only the caller decides which set to release. This verb REFUSES the second kind with 409 when it is marked as such (transmitHold=in_flight) - reconcile those with Nuclea and drive each one with POST /v1/operations/{operationId}/advance, or set confirmedNotAtNuclea only once Nuclea confirms it did not receive the file. Idempotent: re-running releases nothing further and reports released=0. Claims younger than the 5-minute safety floor are skipped (they may belong to a pass that is mid-submit). Un-parking also zeroes the attempt budget, so a recovered operation gets a full budget rather than re-parking on its next refusal. Runs lock-free: it transmits nothing."
      operationId: recoveryUnpark
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RecoveryUnparkRequest"
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RecoveryUnparkResponse"
          description: OK
        "413":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Request Entity Too Large
        "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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Un-park operations held after exhausting their outbound attempt budget
      tags:
        - Connectivity
      x-required-scope: connectivity:admin
      x-mint:
        href: /pt/reference/rails/slc/recovery-unpark
  /v1/domicile/responses:
    post:
      description: "Gives this IF Domicílio's answer to settlements Núclea notified it of. Each item is decided on its own and reported with its own status; the batch answers 200. A credit paid after today is answered in its pre-scheduling phase (01 on confirm), any settlement paid today in its settlement phase (00 on confirm); a refusal carries one OP107 §11.3.3 code. A CONFIRM for a cancelled settlement is accepted only to send its cancellation confirmation (34) again, unless a refusal of that settlement is still live; a 34 still live answers 409, and a refusal is refused with the cancelled-settlement error. Stored answers go to Núclea in an ASLC023 (credit), ASLC025 (debit) or ASLC033 (anticipation) file, and a resent 34 in an ASLC062 or ASLC066 file in the phase's next window; Núclea's verdict reaches GET /v1/domicile/settlements and the domicile.response_accepted / domicile.response_rejected events. RBAC: domicile:write."
      operationId: respondDomicileSettlements
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/AnswersRequest"
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AnswersResponse"
          description: OK
        "413":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Request Entity Too Large
        "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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Confirm or refuse received settlements
      tags:
        - Domicile
      x-required-scope: domicile:write
      x-mint:
        href: /pt/reference/rails/slc/confirm-or-refuse-received-settlements
  /v1/domicile/responses/unpark:
    post:
      description: "Moves the named PARKED answer files back to PENDING under the same name, so the phase's next window resends them with the same NomArq and NumCtrlEmis. A file parks when its submit failed after it may have reached Núclea, or when a send stopped mid-way; Núclea's PRO, RET or ERR for a parked file still resolves it. confirmedNotAtNuclea must be true and reason is required: the call is logged at ERROR as the audit record, because Núclea processes only the first file of a name and refuses the others as duplicates: unparking a file Núclea holds turns its accepted answers into a false refusal. A named file that is not parked is skipped; re-running the call moves nothing further. RBAC: connectivity:admin;"
      operationId: unparkDomicileResponses
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UnparkRequest"
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UnparkResponse"
          description: OK
        "413":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Request Entity Too Large
        "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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Return parked answer files to the send queue
      tags:
        - Domicile
      x-required-scope: connectivity:admin
      x-mint:
        href: /pt/reference/rails/slc/return-parked-answer-files-to-the-send-queue
  /v1/domicile/settlements:
    get:
      description: "Lists the point-of-sale settlements Núclea notified this IF Domicílio of in ASLC022 (credit), ASLC024 (debit) and ASLC032 (anticipation) files, newest payment date first, paged (limit default 50, max 500). Every value is the file's, verbatim: this rail holds no position and sums nothing. settled carries Núclea's ASLC929 report once it reads the settlement Liquidado, its SitRespDomicilio verbatim. cancelled carries the ASLC061/065 that cancelled it; the rail confirms it with 34 in a CANCEL-phase answer. RBAC: domicile:read."
      operationId: listDomicileSettlements
      parameters:
        - description: Only settlements paid on this day (DtPgto, YYYY-MM-DD).
          explode: false
          in: query
          name: paymentDate
          schema:
            description: Only settlements paid on this day (DtPgto, YYYY-MM-DD).
            format: date
            type: string
        - description: "Only one notice type: CREDIT (ASLC022), DEBIT (ASLC024) or ANTICIPATION (ASLC032)."
          explode: false
          in: query
          name: type
          schema:
            description: "Only one notice type: CREDIT (ASLC022), DEBIT (ASLC024) or ANTICIPATION (ASLC032)."
            enum:
              - CREDIT
              - DEBIT
              - ANTICIPATION
            type: string
        - description: Only the settlements of one file (NomArq).
          explode: false
          in: query
          name: fileName
          schema:
            description: Only the settlements of one file (NomArq).
            maxLength: 80
            type: string
        - description: Only settlements with a PARKED answer, which finds the answer files that POST /v1/domicile/responses/unpark needs, and the file names are on each answer.
          explode: false
          in: query
          name: answerState
          schema:
            description: Only settlements with a PARKED answer, which finds the answer files that POST /v1/domicile/responses/unpark needs, and the file names are on each answer.
            enum:
              - PARKED
            type: string
        - description: Page size.
          explode: false
          in: query
          name: limit
          schema:
            default: 50
            description: Page size.
            format: int64
            maximum: 500
            minimum: 1
            type: integer
        - description: Row offset.
          explode: false
          in: query
          name: offset
          schema:
            default: 0
            description: Row offset.
            format: int64
            minimum: 0
            type: integer
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SettlementPage"
          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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: List the settlements Núclea notified this domicile of
      tags:
        - Domicile
      x-required-scope: domicile:read
      x-mint:
        href: /pt/reference/rails/slc/list-the-settlements-nuclea-notified-this-domicile-of
  /v1/domicile/settlements/{nuLiquid}:
    get:
      description: "Reads one settlement by its NULiquid, as the notice carried it. An unknown NULiquid answers 404. RBAC: domicile:read."
      operationId: getDomicileSettlement
      parameters:
        - description: The Núclea settlement number (NULiquid).
          in: path
          name: nuLiquid
          required: true
          schema:
            description: The Núclea settlement number (NULiquid).
            examples:
              - "202605280000000000001"
            maxLength: 21
            minLength: 21
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SettlementResponse"
          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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Read one settlement by NULiquid
      tags:
        - Domicile
      x-required-scope: domicile:read
      x-mint:
        href: /pt/reference/rails/slc/read-one-settlement-by-nuliquid
  /v1/files:
    post:
      description: "Receives an ASLC file. aslc_passthrough accepts an already-signed, opaque artifact: it is received, stored and audited WITHOUT parsing its content, and the signature outcome is recorded (never a hard reject). aslc_xml intake is not implemented (501). The uploading participantId is an explicit, validated body field; Field presence/type is validated against the schema (422); a bad participantId or non-base64 content is a coded 400. RBAC: operations:write."
      operationId: intakeFile
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/FileIntakeRequest"
        required: true
      responses:
        "202":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/FileResponse"
          description: Accepted
        "413":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Request Entity Too Large
        "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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Intake an ASLC file
      tags:
        - Files
      x-required-scope: operations:write
      x-mint:
        href: /pt/reference/rails/slc/intake-file
  /v1/files/{id}:
    get:
      description: "Returns the status view of one file (id, intakeMode, status, linked operationIds, createdAt). No byte download. 404 when the file does not exist. RBAC: operations:read."
      operationId: getFile
      parameters:
        - description: File id (UUID).
          in: path
          name: id
          required: true
          schema:
            description: File id (UUID).
            examples:
              - 0190b5a0-0000-7000-8000-0000000000aa
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/FileResponse"
          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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Get a file status
      tags:
        - Files
      x-required-scope: operations:read
      x-mint:
        href: /pt/reference/rails/slc/get-file
  /v1/funding/settlement-instructions:
    get:
      description: "Lists the card settlement instructions, newest business day first, filtered by business day, cycle and state, paged. Amounts are the values the LDL0021 carried. RBAC: funding:read."
      operationId: listSettlementInstructions
      parameters:
        - description: Settlement business day (YYYY-MM-DD).
          explode: false
          in: query
          name: referenceDate
          schema:
            description: Settlement business day (YYYY-MM-DD).
            examples:
              - "2026-06-28"
            type: string
        - description: CodPerOperac of the deposit cycle.
          explode: false
          in: query
          name: cycle
          schema:
            description: CodPerOperac of the deposit cycle.
            examples:
              - "1"
            type: string
        - description: PENDING, NOTIFIED, DEPOSITED or SETTLED.
          explode: false
          in: query
          name: state
          schema:
            description: PENDING, NOTIFIED, DEPOSITED or SETTLED.
            examples:
              - NOTIFIED
            type: string
        - description: Page size (default 50, max 500).
          explode: false
          in: query
          name: limit
          schema:
            description: Page size (default 50, max 500).
            examples:
              - "50"
            type: string
        - description: Row offset (default 0).
          explode: false
          in: query
          name: offset
          schema:
            description: Row offset (default 0).
            examples:
              - "0"
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListInstructionsResponse"
          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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: List settlement instructions
      tags:
        - Funding
      x-required-scope: funding:read
      x-mint:
        href: /pt/reference/rails/slc/list-settlement-instructions
  /v1/funding/settlement-instructions/{instructionId}:
    get:
      description: "Returns one card settlement instruction, every round its LDL0021s opened, the STR launches recorded for each round, and the LDL0022 fields the client's SPB needs for the current round (it mints NumCtrlIF itself). An unknown id answers 404. RBAC: funding:read."
      operationId: getSettlementInstruction
      parameters:
        - description: Settlement instruction id (UUID).
          in: path
          name: instructionId
          required: true
          schema:
            description: Settlement instruction id (UUID).
            examples:
              - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SettlementInstructionDetailResponse"
          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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Get a settlement instruction with its rounds and STR proof
      tags:
        - Funding
      x-required-scope: funding:read
      x-mint:
        href: /pt/reference/rails/slc/get-a-settlement-instruction-with-its-rounds-and-str-proof
  /v1/funding/settlement-instructions/{instructionId}/deposit-confirmations:
    post:
      description: "The client declares the LDL0022R1 its own STR connection received for the LDL0022 it sent. The rail checks it against the instruction's current round (409 otherwise), the card product SLC and the exact value of the round (422 otherwise), and a terminal SitLancLDL (a pending one is 422), then keeps it as proof. An effected launch moves the instruction to DEPOSITED; a rejected or cancelled one emits funding.deposit_failed. The same declaration repeated answers the same; the same NumCtrlSTR with other values answers 409. Where Lerian SPB sends the card deposits every declaration answers 409: Lerian SPB reports the LDL0022R1 itself. RBAC: funding:write; declarer from the authorized subject."
      operationId: declareDepositConfirmation
      parameters:
        - description: Settlement instruction id (UUID).
          in: path
          name: instructionId
          required: true
          schema:
            description: Settlement instruction id (UUID).
            examples:
              - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DepositConfirmationRequest"
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DepositConfirmationResponse"
          description: OK
        "413":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Request Entity Too Large
        "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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Declare the STR confirmation of a card deposit
      tags:
        - Funding
      x-required-scope: funding:write
      x-mint:
        href: /pt/reference/rails/slc/declare-the-str-confirmation-of-a-card-deposit
  /v1/lbtr/anticipation-requests:
    post:
      description: "As the card issuer's bank, asks the câmara to transfer a receivables anticipation negotiated with the acquirer (SLC0004). Asynchronous intake — 202 means the request is committed and nothing has been sent yet. Lerian SILOC sends it on the SILOC connection and the state is read back from GET /v1/lbtr/commands/{commandId}: ANSWERED carries the câmara's SLC0004R1 (numCtrlSLC and the raw sitLancSLC), REFUSED carries the SLC0004E error codes verbatim. Each state change also emits anticipation_request.status_changed. The window and movement-day rules are the câmara's to apply (ESLC1010-ESLC1012), never this API's. X-Idempotency is REQUIRED: a retry carrying the same key replays the stored response, the same key with a different body is 409, and a new request needs a new key. RBAC: lbtr:write; the requesting operator is always taken from the validated request identity, never from the payload."
      operationId: submitLbtrAnticipationRequest
      parameters:
        - description: Required. A retry carrying the same key replays the stored response instead of sending a second request; a genuinely new request needs a new key.
          in: header
          name: X-Idempotency
          required: true
          schema:
            description: Required. A retry carrying the same key replays the stored response instead of sending a second request; a genuinely new request needs a new key.
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/SubmitAnticipationRequestBody"
        required: true
      responses:
        "202":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CommandAcceptedResponse"
          description: Accepted
        "413":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Request Entity Too Large
        "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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Request a receivables-anticipation transfer from the câmara
      tags:
        - LBTR
      x-required-scope: lbtr:write
      x-mint:
        href: /pt/reference/rails/slc/request-a-receivables-anticipation-transfer-from-the-camara
  /v1/lbtr/commands:
    get:
      description: "Lists the commands this institution originated towards the câmara, newest first, paged (limit default 50, max 500), optionally only those decided on one announced result or operation (sourceAggregateId). Each row carries who authorised it, what was sent, and how far it got — ACCEPTED means Lerian SILOC accepted and QUEUED the command, not that it reached the câmara, and is NOT a settlement claim. RBAC: lbtr:read."
      operationId: listLbtrCommands
      parameters:
        - description: Page size (default 50, max 500).
          explode: false
          in: query
          name: limit
          schema:
            description: Page size (default 50, max 500).
            examples:
              - "50"
            type: string
        - description: Row offset (default 0).
          explode: false
          in: query
          name: offset
          schema:
            description: Row offset (default 0).
            examples:
              - "0"
            type: string
        - description: Keep only the commands decided on this announced result or operation id (UUID).
          explode: false
          in: query
          name: sourceAggregateId
          schema:
            description: Keep only the commands decided on this announced result or operation id (UUID).
            examples:
              - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListCommandsResponse"
          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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: List the commands this institution sent to the câmara
      tags:
        - LBTR
      x-required-scope: lbtr:read
      x-mint:
        href: /pt/reference/rails/slc/list-lbtr-commands
  /v1/lbtr/commands/{commandId}:
    get:
      description: "Reads one command, including the câmara's answer projected exactly as it arrived. For a position query (LTR0009) that answer IS the position the câmara returned: this rail shows it and never computes, nets or re-derives one. Each position carries its own raw sitLancLTR, verbatim and untranslated. An unknown id answers 404. RBAC: lbtr:read."
      operationId: getLbtrCommand
      parameters:
        - description: Command id (UUID).
          in: path
          name: commandId
          required: true
          schema:
            description: Command id (UUID).
            examples:
              - 0199a2e8-7a1c-7c1a-9e5d-2f6a1b3c4d5e
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CommandResponse"
          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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Read one command and the câmara's answer to it
      tags:
        - LBTR
      x-required-scope: lbtr:read
      x-mint:
        href: /pt/reference/rails/slc/get-lbtr-command
  /v1/lbtr/nonliquidante-operations:
    get:
      description: "Lists the operations between two of this settlement bank's own non-liquidantes that the câmara announced, newest movement date first, paged (limit default 50, max 500). indrConfc says whether the câmara asked for a confirmation at all; deciding one it did not ask about is refused. RBAC: lbtr:read."
      operationId: listLbtrNonSettlorOperations
      parameters:
        - description: Page size (default 50, max 500).
          explode: false
          in: query
          name: limit
          schema:
            description: Page size (default 50, max 500).
            examples:
              - "50"
            type: string
        - description: Row offset (default 0).
          explode: false
          in: query
          name: offset
          schema:
            description: Row offset (default 0).
            examples:
              - "0"
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListNonSettlorOperationsResponse"
          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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: List the announced operations between this bank's own non-liquidantes
      tags:
        - LBTR
      x-required-scope: lbtr:read
      x-mint:
        href: /pt/reference/rails/slc/list-lbtr-non-settlor-operations
  /v1/lbtr/nonliquidante-operations/{operationId}:
    get:
      description: "Reads one announced operation between two non-liquidantes, including both legs, the amount a decision must state, and whether the câmara asked for a confirmation. An unknown id answers 404. RBAC: lbtr:read."
      operationId: getLbtrNonSettlorOperation
      parameters:
        - description: Announced non-liquidante operation id (UUID).
          in: path
          name: operationId
          required: true
          schema:
            description: Announced non-liquidante operation id (UUID).
            examples:
              - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AnnouncedNonSettlorOperationResponse"
          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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Read one announced operation between two non-liquidantes
      tags:
        - LBTR
      x-required-scope: lbtr:read
      x-mint:
        href: /pt/reference/rails/slc/get-lbtr-non-settlor-operation
  /v1/lbtr/nonliquidante-operations/{operationId}/decision:
    post:
      description: "Answers an operation between two of this settlement bank's own non-liquidantes, announced by the câmara (LTR0007), with the institution's LTR0008: CONFIRM accepts it, REJECT refuses it. Asynchronous intake — 202 means the command and its outbound event are committed and nothing has been sent yet. announcedAmount must equal the amount that was announced (422 otherwise). An operation the câmara did NOT ask to have confirmed is 422; one already decided is 409; one that changed since it was read is 409; from 16:45 São Paulo on its movement date the SLC takes no LTR0008, so it is 409. X-Idempotency is REQUIRED: a retry carrying the same key replays the stored response, and the same key with a different body is 409. A new answer after the operation reopens (the câmara refused the previous one, or it FAILED) needs a NEW key: the earlier key replays the first 202 and sends nothing. RBAC: lbtr:write; the deciding operator is always taken from the validated request identity, never from the payload."
      operationId: decideLbtrNonSettlorOperation
      parameters:
        - description: Announced non-liquidante operation id (UUID).
          in: path
          name: operationId
          required: true
          schema:
            description: Announced non-liquidante operation id (UUID).
            examples:
              - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
            type: string
        - description: Required. Scopes this answer so a retry replays the stored response instead of sending a second command for the same operation.
          in: header
          name: X-Idempotency
          required: true
          schema:
            description: Required. Scopes this answer so a retry replays the stored response instead of sending a second command for the same operation.
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DecideNonSettlorRequest"
        required: true
      responses:
        "202":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CommandAcceptedResponse"
          description: Accepted
        "413":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Request Entity Too Large
        "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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Confirm or reject an announced operation between two non-liquidantes
      tags:
        - LBTR
      x-required-scope: lbtr:write
      x-mint:
        href: /pt/reference/rails/slc/decide-lbtr-non-settlor-operation
  /v1/lbtr/position-queries:
    post:
      description: "Asks the câmara for this institution's own financial position (LTR0009). dtMovto is required; every other field is a filter. Asynchronous intake — 202 means the query is committed and nothing has been sent yet; the câmara's answer is read back from GET /v1/lbtr/commands/{commandId}, projected exactly as it arrived. The câmara's ISPB is not a field here: this message answers nothing, so there is nothing to echo it from, and Lerian SILOC supplies it. sitLancLTR is the raw 3-digit situation code, passed through verbatim. X-Idempotency is REQUIRED and a repeat query needs a NEW key: two identical queries are two questions and each is entitled to its own answer. RBAC: lbtr:write; the asking operator is always taken from the validated request identity, never from the payload."
      operationId: submitLbtrPositionQuery
      parameters:
        - description: Required. A retry carrying the same key replays the stored response instead of asking the câmara twice; a genuinely new query needs a new key.
          in: header
          name: X-Idempotency
          required: true
          schema:
            description: Required. A retry carrying the same key replays the stored response instead of asking the câmara twice; a genuinely new query needs a new key.
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/SubmitPositionQueryRequest"
        required: true
      responses:
        "202":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CommandAcceptedResponse"
          description: Accepted
        "413":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Request Entity Too Large
        "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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Ask the câmara for this institution's LBTR position
      tags:
        - LBTR
      x-required-scope: lbtr:write
      x-mint:
        href: /pt/reference/rails/slc/submit-lbtr-position-query
  /v1/lbtr/results:
    get:
      description: "Lists the gross and bilateral settlement results the câmara announced, newest movement date first, paged (limit default 50, max 500). Every amount is the value the câmara sent, echoed unchanged: this rail holds no position and computes no balance. status says where each announcement stands — ANNOUNCED is awaiting a decision. settlementClass tells the CRC acerto apart from an anticipation: CARD_CONTINGENCY on an LTR0001 is the mandatory acerto after a defaulter's exclusion, paid with LTR0004 through the STR rail, and it needs no LTR0002. RBAC: lbtr:read."
      operationId: listLbtrResults
      parameters:
        - description: Page size (default 50, max 500).
          explode: false
          in: query
          name: limit
          schema:
            description: Page size (default 50, max 500).
            examples:
              - "50"
            type: string
        - description: Row offset (default 0).
          explode: false
          in: query
          name: offset
          schema:
            description: Row offset (default 0).
            examples:
              - "0"
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListResultsResponse"
          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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: List the settlement results the câmara announced
      tags:
        - LBTR
      x-required-scope: lbtr:read
      x-mint:
        href: /pt/reference/rails/slc/list-lbtr-results
  /v1/lbtr/results/{resultId}:
    get:
      description: "Reads one announced settlement result, including the amount a decision must state and the version that decision is authorised against. CARD_CONTINGENCY in settlementClass marks an LTR0001 that is the mandatory acerto after a defaulter's exclusion: pay it with LTR0004 through the STR rail; it needs no LTR0002. An unknown id answers 404. RBAC: lbtr:read."
      operationId: getLbtrResult
      parameters:
        - description: Announced result id (UUID).
          in: path
          name: resultId
          required: true
          schema:
            description: Announced result id (UUID).
            examples:
              - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AnnouncedResultResponse"
          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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Read one announced settlement result
      tags:
        - LBTR
      x-required-scope: lbtr:read
      x-mint:
        href: /pt/reference/rails/slc/get-lbtr-result
  /v1/lbtr/results/{resultId}/decision:
    post:
      description: "Answers a result the câmara announced (LTR0001) with the institution's LTR0002: CONFIRM accepts it, DIVERGE disputes it. Asynchronous intake — 202 means the command and its outbound event are committed and nothing has been sent yet; poll the command to see the câmara's answer. announcedAmount must equal the amount that was announced (422 otherwise), compared as a decimal. A result the câmara cancelled, or one already decided, is 409; an announcement that changed since it was read is 409 and should be read again. X-Idempotency is REQUIRED: a retry carrying the same key replays the stored response instead of sending a second answer, and the same key with a different body is 409. A new answer after the result reopens (the câmara refused the previous one, or it FAILED) needs a NEW key: the earlier key replays the first 202 and sends nothing. RBAC: lbtr:write; the deciding operator is always taken from the validated request identity, never from the payload."
      operationId: decideLbtrResult
      parameters:
        - description: Announced result id (UUID).
          in: path
          name: resultId
          required: true
          schema:
            description: Announced result id (UUID).
            examples:
              - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
            type: string
        - description: Required. Scopes this answer so a retry replays the stored response instead of sending a second command for the same result.
          in: header
          name: X-Idempotency
          required: true
          schema:
            description: Required. Scopes this answer so a retry replays the stored response instead of sending a second command for the same result.
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DecideResultRequest"
        required: true
      responses:
        "202":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CommandAcceptedResponse"
          description: Accepted
        "413":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Request Entity Too Large
        "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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Confirm or diverge from an announced settlement result
      tags:
        - LBTR
      x-required-scope: lbtr:write
      x-mint:
        href: /pt/reference/rails/slc/decide-lbtr-result
  /v1/operations:
    get:
      description: "Lists settlement operations, filtered and paginated. Filters: state, operationType, batchId, externalId, dateFrom/dateTo (over created_at). Offset/limit pagination."
      operationId: listOperations
      parameters:
        - description: Filter by lifecycle state.
          explode: false
          in: query
          name: state
          schema:
            description: Filter by lifecycle state.
            type: string
        - description: Filter by operation type.
          explode: false
          in: query
          name: operationType
          schema:
            description: Filter by operation type.
            type: string
        - description: Filter by batch id.
          explode: false
          in: query
          name: batchId
          schema:
            description: Filter by batch id.
            type: string
        - description: Filter by external id.
          explode: false
          in: query
          name: externalId
          schema:
            description: Filter by external id.
            type: string
        - description: Filter created_at >= (RFC3339).
          explode: false
          in: query
          name: dateFrom
          schema:
            description: Filter created_at >= (RFC3339).
            type: string
        - description: Filter created_at <= (RFC3339).
          explode: false
          in: query
          name: dateTo
          schema:
            description: Filter created_at <= (RFC3339).
            type: string
        - description: Page size (default 50, max 500).
          explode: false
          in: query
          name: limit
          schema:
            description: Page size (default 50, max 500).
            type: string
        - description: Row offset (default 0).
          explode: false
          in: query
          name: offset
          schema:
            description: Row offset (default 0).
            type: string
        - description: Filter operations HELD out of the outbound drains, by reason. "parked" — the attempt budget was exhausted and nothing reached Núclea; recover with POST /v1/connectivity/unpark. "in_flight" — the file may be at Núclea and the local transition failed; reconcile with Núclea, then POST /v1/operations/{operationId}/advance if Núclea holds the file, or POST /v1/connectivity/unpark with confirmedNotAtNuclea=true and a reason only if Núclea confirms it did not receive it (un-parking a file Núclea holds re-submits an accepted file).
          explode: false
          in: query
          name: transmitHold
          schema:
            description: Filter operations HELD out of the outbound drains, by reason. "parked" — the attempt budget was exhausted and nothing reached Núclea; recover with POST /v1/connectivity/unpark. "in_flight" — the file may be at Núclea and the local transition failed; reconcile with Núclea, then POST /v1/operations/{operationId}/advance if Núclea holds the file, or POST /v1/connectivity/unpark with confirmedNotAtNuclea=true and a reason only if Núclea confirms it did not receive it (un-parking a file Núclea holds re-submits an accepted file).
            examples:
              - parked
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListOperationsResponse"
          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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: List settlement operations
      tags:
        - Operations
      x-required-scope: operations:read
      x-mint:
        href: /pt/reference/rails/slc/list-operations
    post:
      description: Submits a single settlement operation for intake. Idempotent via the X-Idempotency header. Field presence/type is validated against the schema (422); business-rule failures return coded 400/409/422 problem+json.
      operationId: createOperation
      parameters:
        - description: Idempotency key for safe retries; a replay returns the stored response.
          in: header
          name: X-Idempotency
          schema:
            description: Idempotency key for safe retries; a replay returns the stored response.
            type: string
        - description: Optional client request id echoed back in meta.requestId.
          in: header
          name: X-Request-Id
          schema:
            description: Optional client request id echoed back in meta.requestId.
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateOperationRequest"
        required: true
      responses:
        "202":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateOperationResponse"
          description: Accepted
        "413":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Request Entity Too Large
        "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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Create a settlement operation
      tags:
        - Operations
      x-required-scope: operations:write
      x-mint:
        href: /pt/reference/rails/slc/create-operation
  /v1/operations/batch:
    post:
      description: Accepts newline-delimited JSON (application/x-ndjson). Each line is one operation, validated and created through the same pipeline as POST /v1/operations, grouped under one generated batchId. The batch is validated against a configured line limit (default 50000) before any operation is persisted; exceeding it returns 413 with no operations persisted. Processing is synchronous; one bad line is rejected with a per-line error without aborting the batch. Optionally idempotent via the X-Idempotency header. Errors are RFC 9457 problem+json.
      operationId: createOperationsBatch
      parameters:
        - description: "Idempotency key for safe retries of the whole batch. The key alone identifies the batch: reusing it with a different batch replays the first batch's answer and ingests nothing."
          in: header
          name: X-Idempotency
          schema:
            type: string
      requestBody:
        content:
          application/x-ndjson:
            schema:
              type: string
        description: Newline-delimited JSON operations (application/x-ndjson); one CreateOperationRequest per line.
        required: true
      responses:
        "202":
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  accepted:
                    description: Count of accepted operations.
                    examples:
                      - 48
                    format: int64
                    type: integer
                  batchId:
                    description: Generated batch id grouping every line of the submission.
                    examples:
                      - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
                    type: string
                  errors:
                    description: Per-line rejection errors (capped at the first batchErrorCap entries).
                    items:
                      $ref: "#/components/schemas/BatchError"
                    type: array
                  errorsTruncated:
                    description: True when more rejections occurred than the errors array lists.
                    examples:
                      - true
                    type: boolean
                  meta:
                    $ref: "#/components/schemas/BatchMeta"
                    description: Batch response envelope metadata (requestId + timestamp).
                  rejected:
                    description: Count of rejected lines.
                    examples:
                      - 2
                    format: int64
                    type: integer
                required:
                  - batchId
                  - accepted
                  - rejected
                  - errors
                  - errorsTruncated
                  - meta
                type: object
          description: Batch accepted; per-line accepted/rejected counts and errors with the meta envelope.
        "400":
          content:
            application/problem+json:
              schema:
                additionalProperties: false
                properties:
                  code:
                    description: "Stable, machine-readable domain error code scoped to the emitting service (format: <SERVICE>-NNNN)."
                    type: string
                  correlationId:
                    description: Request-scoped correlation identifier echoing X-Request-ID.
                    examples:
                      - req-7a3f9c2e
                    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."
                required:
                  - correlationId
                type: object
          description: Malformed batch request.
        "401":
          content:
            application/problem+json:
              schema:
                additionalProperties: false
                properties:
                  code:
                    description: "Stable, machine-readable domain error code scoped to the emitting service (format: <SERVICE>-NNNN)."
                    type: string
                  correlationId:
                    description: Request-scoped correlation identifier echoing X-Request-ID.
                    examples:
                      - req-7a3f9c2e
                    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."
                required:
                  - correlationId
                type: object
          description: Authentication required.
        "403":
          content:
            application/problem+json:
              schema:
                additionalProperties: false
                properties:
                  code:
                    description: "Stable, machine-readable domain error code scoped to the emitting service (format: <SERVICE>-NNNN)."
                    type: string
                  correlationId:
                    description: Request-scoped correlation identifier echoing X-Request-ID.
                    examples:
                      - req-7a3f9c2e
                    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."
                required:
                  - correlationId
                type: object
          description: Forbidden (operations:write scope required).
        "413":
          content:
            application/problem+json:
              schema:
                additionalProperties: false
                properties:
                  code:
                    description: "Stable, machine-readable domain error code scoped to the emitting service (format: <SERVICE>-NNNN)."
                    type: string
                  correlationId:
                    description: Request-scoped correlation identifier echoing X-Request-ID.
                    examples:
                      - req-7a3f9c2e
                    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."
                required:
                  - correlationId
                type: object
          description: Batch exceeds the maximum number of lines.
        "422":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Unprocessable Entity
        "500":
          content:
            application/problem+json:
              schema:
                additionalProperties: false
                properties:
                  code:
                    description: "Stable, machine-readable domain error code scoped to the emitting service (format: <SERVICE>-NNNN)."
                    type: string
                  correlationId:
                    description: Request-scoped correlation identifier echoing X-Request-ID.
                    examples:
                      - req-7a3f9c2e
                    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."
                required:
                  - correlationId
                type: object
          description: Internal error (scrubbed).
        "503":
          content:
            application/problem+json:
              schema:
                additionalProperties: false
                properties:
                  code:
                    description: "Stable, machine-readable domain error code scoped to the emitting service (format: <SERVICE>-NNNN)."
                    type: string
                  correlationId:
                    description: Request-scoped correlation identifier echoing X-Request-ID.
                    examples:
                      - req-7a3f9c2e
                    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."
                required:
                  - correlationId
                type: object
          description: Access Manager unavailable; retry later.
      security:
        - BearerAuth: []
      summary: Submit a batch of settlement operations
      tags:
        - Operations
      x-required-scope: operations:write
      x-mint:
        href: /pt/reference/rails/slc/create-operations-batch
  /v1/operations/nuliquid/{nuliquid}:
    get:
      description: "Resolves an operation by its 21-position NUliquid. The format is validated before the lookup: a malformed NUliquid returns 422, an absent one 404. LOCAL lookup by default; when participantIspb is supplied AND the local store misses AND the NUliquid is inside the 30-day online horizon, the SLC0908 online fallback consults Núclea. The 200 body is an OperationDetailResponse (local) or a NUliquidOnlineResponse (online fallback)."
      operationId: getOperationByNUliquid
      parameters:
        - description: "NUliquid (21 positions: AAAAMMDD + 13 digits)."
          in: path
          name: nuliquid
          required: true
          schema:
            description: "NUliquid (21 positions: AAAAMMDD + 13 digits)."
            examples:
              - "202606150000000000001"
            type: string
        - description: Participant ISPB (8 characters) to authenticate the SLC0908 online fallback as; when set, a local miss consults Núclea. Omit for a local-only lookup.
          explode: false
          in: query
          name: participantIspb
          schema:
            description: Participant ISPB (8 characters) to authenticate the SLC0908 online fallback as; when set, a local miss consults Núclea. Omit for a local-only lookup.
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: "#/components/schemas/OperationDetailResponse"
                  - $ref: "#/components/schemas/NUliquidOnlineResponse"
          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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Look up an operation by NUliquid
      tags:
        - Operations
      x-required-scope: operations:read
      x-mint:
        href: /pt/reference/rails/slc/get-operation-by-n-uliquid
  /v1/operations/{operationId}:
    delete:
      description: "Cancels an operation in CREATED or QUEUED via a USER_CANCELLATION transition, emitting operation.cancelled. A non-cancelable state returns 409 with code SLC-0105 (INVALID_STATE_TRANSITION): the problem+json body carries only type/title/status/detail/code, and its detail is a fixed sentence that names neither the operation's current state nor the states it would accept — read the current state from GET /v1/operations/{operationId}. For a regulatory chargeback (contestação regulada que vira débito) use POST /v1/operations/{operationId}/cancellation instead."
      operationId: cancelOperation
      parameters:
        - description: Operation id (UUID).
          in: path
          name: operationId
          required: true
          schema:
            description: Operation id (UUID).
            examples:
              - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
            type: string
      responses:
        "204":
          description: No Content
        "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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Cancel a pending settlement operation
      tags:
        - Operations
      x-required-scope: operations:write
      x-mint:
        href: /pt/reference/rails/slc/cancel-operation
    get:
      description: Returns the full detail of one settlement operation, including its recorded eslcErrors and recoverability diagnostics.
      operationId: getOperation
      parameters:
        - description: Settlement operation id (UUID).
          in: path
          name: operationId
          required: true
          schema:
            description: Settlement operation id (UUID).
            examples:
              - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OperationDetailResponse"
          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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Get a settlement operation
      tags:
        - Operations
      x-required-scope: operations:read
      x-mint:
        href: /pt/reference/rails/slc/get-operation
  /v1/operations/{operationId}/advance:
    post:
      description: Drives an EXISTING state-machine edge via MANUAL_OVERRIDE, emitting operation.manually_advanced with the reason/evidence. Admin-only (operations:admin). Missing reason/evidence returns 400 MISSING_OVERRIDE_JUSTIFICATION; a nonexistent edge returns 409 INVALID_STATE_TRANSITION; cancelling an operation whose file is already at Núclea (transmit hold in_flight) returns 409 CONFLICT, since it would erase the only record of the disagreement — reconcile and advance to the hold-resolving state; POST /v1/connectivity/unpark refuses in-flight claims.
      operationId: advanceOperation
      parameters:
        - description: Operation id (UUID).
          in: path
          name: operationId
          required: true
          schema:
            description: Operation id (UUID).
            examples:
              - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/AdvanceRequest"
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AdvanceResponse"
          description: OK
        "413":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Request Entity Too Large
        "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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Advance an operation via audited admin override
      tags:
        - Operations
      x-required-scope: operations:admin
      x-mint:
        href: /pt/reference/rails/slc/advance-operation
  /v1/operations/{operationId}/cancellation:
    post:
      description: "Admits a NEW operation of type CANCELLATION targeting the path operation (the Núclea cancel request: ASLC060 for a credit, ASLC064 for a debit) from only the reason and an optional externalId. The new operation's creditor, domicile and settlement ISPBs, arrangement, value, currency, installments, due and transaction dates, participant and role are copied from the target; the merchant identity is not. Idempotent via the X-Idempotency header. An unknown target returns 404 OPERATION_NOT_FOUND; a target that is not a CREDIT or DEBIT returns 422 ORIGINAL_NOT_CANCELABLE_TYPE; one already cancelled, in settlement, settled or D+1 confirmed returns 409 OPERATION_NOT_CANCELABLE (ESLC0164); one Núclea has not accepted yet (no NUliquid) returns 409 ORIGINAL_NOT_ACCEPTED; one another cancellation already holds returns 409 DUPLICATE_CANCELLATION_TARGET; an externalId already in use returns 409 DUPLICATE_EXTERNAL_ID. To withdraw an operation that has not been transmitted (CREATED or QUEUED) use DELETE /v1/operations/{operationId} instead."
      operationId: requestOperationCancellation
      parameters:
        - description: Id (UUID) of the operation to cancel.
          in: path
          name: operationId
          required: true
          schema:
            description: Id (UUID) of the operation to cancel.
            examples:
              - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
            type: string
        - description: Idempotency key for safe retries; a replay returns the stored response.
          in: header
          name: X-Idempotency
          schema:
            description: Idempotency key for safe retries; a replay returns the stored response.
            type: string
        - description: Optional client request id echoed back in meta.requestId.
          in: header
          name: X-Request-Id
          schema:
            description: Optional client request id echoed back in meta.requestId.
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RequestCancellationRequest"
        required: true
      responses:
        "202":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CreateOperationResponse"
          description: Accepted
        "413":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Request Entity Too Large
        "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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Request the regulatory cancellation of an operation
      tags:
        - Operations
      x-required-scope: operations:write
      x-mint:
        href: /pt/reference/rails/slc/request-the-regulatory-cancellation-of-an-operation
  /v1/operations/{operationId}/history:
    get:
      description: Returns the append-only state-transition log for an operation, ordered oldest first (the auditability proof). 404 when the operation does not exist.
      operationId: getOperationHistory
      parameters:
        - description: Operation id (UUID).
          in: path
          name: operationId
          required: true
          schema:
            description: Operation id (UUID).
            examples:
              - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/OperationHistoryResponse"
          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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Get operation state history
      tags:
        - Operations
      x-required-scope: operations:read
      x-mint:
        href: /pt/reference/rails/slc/get-operation-history
  /v1/operations/{operationId}/reconcile:
    post:
      description: "Consults Núclea for the AUTHORITATIVE SLC0908 settlement status of one operation and synchronises the local record under NUCLEA_RECONCILED, leaving an operation_state_log row whose trigger separates a machine synchronisation from an operator's override. Admin-only (operations:admin). The reason is mandatory and enforced by the domain (400 MISSING_OVERRIDE_JUSTIFICATION); the reconciling subject is taken from the validated request identity, never from the payload. WHY THIS PATH EXISTS ALONGSIDE THE DRAINS: the /v1/connectivity/* recovery verbs (dispatch, repoll, reprocess, unpark) re-drive OUR OWN internal transport and never consult the counterpart, so they cannot report what Núclea believes — this operation asks Núclea and records the answer. Disjoint capabilities, not substitutes. The SLC0908 record moves the operation at most one edge: ACCEPTED->CONFIRMED, ACCEPTED->REJECTED, ACCEPTED->SETTLED, CONFIRMED->REJECTED, CONFIRMED->SETTLED, SETTLED->D1_CONFIRMED or SETTLED->REJECTED; a record that authorises no edge answers 200 IN_SYNC and writes nothing. An operation carrying no NUliquid has no key to run the consulta with and answers 409 SLC-0119 with the state-specific remediation. A counterpart status outside the mapped vocabulary answers 409 SLC-0121 and writes nothing."
      operationId: reconcileOperation
      parameters:
        - description: Operation id (UUID).
          in: path
          name: operationId
          required: true
          schema:
            description: Operation id (UUID).
            examples:
              - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ReconcileRequest"
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ReconcileResponse"
          description: OK
        "413":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Request Entity Too Large
        "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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Reconcile an operation against the counterpart's settlement status
      tags:
        - Operations
      x-required-scope: operations:admin
      x-mint:
        href: /pt/reference/rails/slc/reconcile-operation
  /v1/operations/{operationId}/requeue:
    post:
      description: "Re-admits an operation stuck in CREATED into the dispatch queue via a WINDOW_ASSIGNED transition, emitting operation.queued. A non-CREATED state returns 409 with code SLC-0105 (INVALID_STATE_TRANSITION): the problem+json body carries only type/title/status/detail/code, and its detail is a fixed sentence that names neither the operation's current state nor the states it would accept — read the current state from GET /v1/operations/{operationId}."
      operationId: requeueOperation
      parameters:
        - description: Operation id (UUID).
          in: path
          name: operationId
          required: true
          schema:
            description: Operation id (UUID).
            examples:
              - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RequeueResponse"
          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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Re-queue a stuck operation
      tags:
        - Operations
      x-required-scope: operations:write
      x-mint:
        href: /pt/reference/rails/slc/requeue-operation
  /v1/operations/{operationId}/retry:
    post:
      description: "Resends a REJECTED operation as a NEW operation chained to the original via originalOperationId, respecting the retry limit. A non-REJECTED state returns 409 INVALID_STATE_TRANSITION; a chain at the limit returns 409 RETRY_LIMIT_EXCEEDED; a chain that already holds a live operation returns 409 RETRY_ALREADY_IN_PROGRESS; a chain that holds a live correction (a correcting operation not cancelled) returns 409 CORRECTION_RETRY_CONFLICT. Once any operation of the chain (the original or an earlier retry) has settled, even one later refused by the IF Domicilio, no retry is admitted: 409 RETRY_AFTER_SETTLEMENT, because a retry would settle the same ControleCIP twice. Each 409 detail is a fixed sentence that names neither the blocking operation nor its settlement instant."
      operationId: retryOperation
      parameters:
        - description: Operation id (UUID).
          in: path
          name: operationId
          required: true
          schema:
            description: Operation id (UUID).
            examples:
              - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
            type: string
        - description: Idempotency key for safe retries; a replay returns the stored response.
          in: header
          name: X-Idempotency
          schema:
            description: Idempotency key for safe retries; a replay returns the stored response.
            type: string
      responses:
        "201":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RetryResponse"
          description: Created
        "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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Retry a rejected operation
      tags:
        - Operations
      x-required-scope: operations:write
      x-mint:
        href: /pt/reference/rails/slc/retry-operation
  /v1/participants:
    get:
      description: "Lists the installation's participants, newest first. Offset-paginated. RBAC: participants:read."
      operationId: listParticipants
      parameters:
        - description: Page size (default 50, max 100). A negative or non-numeric value is rejected with 400.
          explode: false
          in: query
          name: limit
          schema:
            description: Page size (default 50, max 100). A negative or non-numeric value is rejected with 400.
            examples:
              - "50"
            type: string
        - description: Rows to skip (default 0). A negative or non-numeric value is rejected with 400.
          explode: false
          in: query
          name: offset
          schema:
            description: Rows to skip (default 0). A negative or non-numeric value is rejected with 400.
            examples:
              - "0"
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListParticipantsResponse"
          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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: List participants
      tags:
        - Participants
      x-required-scope: participants:read
      x-mint:
        href: /pt/reference/rails/slc/list-participants
    post:
      description: "Registers a participant in the installation's catalog. Field presence/type is validated against the schema (422); business-rule failures return coded 422/409 problem+json. connectivityOk/lastConnectivityAt are read-only (owned by the test-connectivity flow). RBAC: participants:write."
      operationId: createParticipant
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateParticipantRequest"
        required: true
      responses:
        "201":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ParticipantResponse"
          description: Created
        "413":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Request Entity Too Large
        "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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Create a participant
      tags:
        - Participants
      x-required-scope: participants:write
      x-mint:
        href: /pt/reference/rails/slc/create-participant
  /v1/participants/{id}:
    delete:
      description: Soft-deletes a participant (stamps deleted_at). Returns 204 No Content. 404 when the participant does not exist.
      operationId: deleteParticipant
      parameters:
        - description: Participant id (UUID).
          in: path
          name: id
          required: true
          schema:
            description: Participant id (UUID).
            examples:
              - 0190b5a0-0000-7000-8000-0000000000aa
            type: string
      responses:
        "204":
          description: No Content
        "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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Delete a participant
      tags:
        - Participants
      x-required-scope: participants:write
      x-mint:
        href: /pt/reference/rails/slc/delete-participant
    get:
      description: Returns a participant by id. 404 when the participant does not exist.
      operationId: getParticipant
      parameters:
        - description: Participant id (UUID).
          in: path
          name: id
          required: true
          schema:
            description: Participant id (UUID).
            examples:
              - 0190b5a0-0000-7000-8000-0000000000aa
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ParticipantResponse"
          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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Get a participant
      tags:
        - Participants
      x-required-scope: participants:read
      x-mint:
        href: /pt/reference/rails/slc/get-participant
    put:
      description: Updates a participant's mutable fields. Omitted fields are left unchanged. connectivityOk/lastConnectivityAt cannot be set here. 404 when the participant does not exist.
      operationId: updateParticipant
      parameters:
        - description: Participant id (UUID).
          in: path
          name: id
          required: true
          schema:
            description: Participant id (UUID).
            examples:
              - 0190b5a0-0000-7000-8000-0000000000aa
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateParticipantRequest"
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ParticipantResponse"
          description: OK
        "413":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Request Entity Too Large
        "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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Update a participant
      tags:
        - Participants
      x-required-scope: participants:write
      x-mint:
        href: /pt/reference/rails/slc/update-participant
  /v1/participants/{id}/arrangements:
    get:
      description: "Lists a participant's arrangements, newest first. Offset-paginated. RBAC: arrangements:read."
      operationId: listArrangements
      parameters:
        - description: Owning participant id (UUID).
          in: path
          name: id
          required: true
          schema:
            description: Owning participant id (UUID).
            examples:
              - 0190b5a0-0000-7000-8000-0000000000aa
            type: string
        - description: Page size (default 50, max 100). A negative or non-numeric value is rejected with 400.
          explode: false
          in: query
          name: limit
          schema:
            description: Page size (default 50, max 100). A negative or non-numeric value is rejected with 400.
            examples:
              - "50"
            type: string
        - description: Rows to skip (default 0). A negative or non-numeric value is rejected with 400.
          explode: false
          in: query
          name: offset
          schema:
            description: Rows to skip (default 0). A negative or non-numeric value is rejected with 400.
            examples:
              - "0"
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListArrangementsResponse"
          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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: List a participant's arrangements
      tags:
        - Arrangements
      x-required-scope: arrangements:read
      x-mint:
        href: /pt/reference/rails/slc/list-arrangements
    post:
      description: "Registers a card/scheme arrangement for a participant. Field presence/type is validated against the schema (422); a duplicate (participant, code, role) returns 409; an unknown participant 404; an invalid role/code 422. RBAC: arrangements:write."
      operationId: createArrangement
      parameters:
        - description: Owning participant id (UUID).
          in: path
          name: id
          required: true
          schema:
            description: Owning participant id (UUID).
            examples:
              - 0190b5a0-0000-7000-8000-0000000000aa
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateArrangementRequest"
        required: true
      responses:
        "201":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ArrangementResponse"
          description: Created
        "413":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Request Entity Too Large
        "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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Create an arrangement
      tags:
        - Arrangements
      x-required-scope: arrangements:write
      x-mint:
        href: /pt/reference/rails/slc/create-arrangement
  /v1/participants/{id}/arrangements/{arrangementId}:
    delete:
      description: "Hard-deletes an arrangement. Returns 204 No Content. 404 when the arrangement does not exist. RBAC: arrangements:write."
      operationId: deleteArrangement
      parameters:
        - description: Owning participant id (UUID).
          in: path
          name: id
          required: true
          schema:
            description: Owning participant id (UUID).
            examples:
              - 0190b5a0-0000-7000-8000-0000000000aa
            type: string
        - description: Arrangement id (UUID).
          in: path
          name: arrangementId
          required: true
          schema:
            description: Arrangement id (UUID).
            examples:
              - 0190b5a0-0000-7000-8000-0000000000bb
            type: string
      responses:
        "204":
          description: No Content
        "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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Delete an arrangement
      tags:
        - Arrangements
      x-required-scope: arrangements:write
      x-mint:
        href: /pt/reference/rails/slc/delete-arrangement
    get:
      description: Returns an arrangement by id, scoped to its participant. 404 when the arrangement does not exist.
      operationId: getArrangement
      parameters:
        - description: Owning participant id (UUID).
          in: path
          name: id
          required: true
          schema:
            description: Owning participant id (UUID).
            examples:
              - 0190b5a0-0000-7000-8000-0000000000aa
            type: string
        - description: Arrangement id (UUID).
          in: path
          name: arrangementId
          required: true
          schema:
            description: Arrangement id (UUID).
            examples:
              - 0190b5a0-0000-7000-8000-0000000000bb
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ArrangementResponse"
          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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Get an arrangement
      tags:
        - Arrangements
      x-required-scope: arrangements:read
      x-mint:
        href: /pt/reference/rails/slc/get-arrangement
    put:
      description: "Updates an arrangement's mutable fields. Omitted fields are left unchanged. A duplicate (participant, code, role) returns 409; an invalid role/code 422. RBAC: arrangements:write."
      operationId: updateArrangement
      parameters:
        - description: Owning participant id (UUID).
          in: path
          name: id
          required: true
          schema:
            description: Owning participant id (UUID).
            examples:
              - 0190b5a0-0000-7000-8000-0000000000aa
            type: string
        - description: Arrangement id (UUID).
          in: path
          name: arrangementId
          required: true
          schema:
            description: Arrangement id (UUID).
            examples:
              - 0190b5a0-0000-7000-8000-0000000000bb
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateArrangementRequest"
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ArrangementResponse"
          description: OK
        "413":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Request Entity Too Large
        "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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Update an arrangement
      tags:
        - Arrangements
      x-required-scope: arrangements:write
      x-mint:
        href: /pt/reference/rails/slc/update-arrangement
  /v1/participants/{id}/operational-status:
    get:
      description: "Returns the latest PAG0101 operational status recorded for the participant, plus nonOperating — whether the submission gate blocks it, computed with the SAME predicate the gate uses. A participant with no notice yet answers 200 with status NO_NOTICE and nonOperating false (the gate's own rule: no notice does not block), NOT a 404; a participant absent from the installation's catalog is a 404. RBAC: participants:read."
      operationId: getParticipantOperationalStatus
      parameters:
        - description: Participant id (UUID).
          in: path
          name: id
          required: true
          schema:
            description: Participant id (UUID).
            examples:
              - 0190b5a0-0000-7000-8000-0000000000aa
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ParticipantOperationalStatusResponse"
          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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Get a participant's operational status
      tags:
        - Participants
      x-required-scope: participants:read
      x-mint:
        href: /pt/reference/rails/slc/get-participant-operational-status
  /v1/participants/{participantIspb}/test-connectivity:
    post:
      description: "For a credenciador or sub-credenciador, calls the official SLC0800 eco over the REST channel and reports the round-trip echo and latency (200). For an IF Domicílio, which has no REST API, sends an AGEN001 through the file channel (MAPX-OP107 v19 §7.3.8) and answers 202 with a testId; read the AGEN001RET outcome from GET /v1/participants/{participantIspb}/test-connectivity/{testId}. The path param is the participant's 8-character ISPB, NOT the participant UUID the sibling /v1/participants operations take. 404 when the ISPB is not a participant in the installation's catalog. RBAC: connectivity:test (admin). The cdConnection channel reports NOT_CONFIGURED. An open-breaker transport returns a retryable 503; a role whose probe is not wired in this deployment returns 501."
      operationId: testConnectivity
      parameters:
        - description: Participant ISPB (8 characters, digits or uppercase letters). A non-conforming value is rejected with 400.
          in: path
          name: participantIspb
          required: true
          schema:
            description: Participant ISPB (8 characters, digits or uppercase letters). A non-conforming value is rejected with 400.
            examples:
              - "12345678"
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TestConnectivityResponse"
          description: OK
        "202":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TestConnectivityResponse"
          description: "IF Domicílio: the AGEN001 was sent over the file channel; poll the result route with the returned testId."
        "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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Test connectivity to Núclea for a participant
      tags:
        - Connectivity
      x-required-scope: connectivity:test
      x-mint:
        href: /pt/reference/rails/slc/test-connectivity
  /v1/participants/{participantIspb}/test-connectivity/{testId}:
    get:
      description: "Reads the AGEN001 test the POST accepted: PENDING until Núclea's AGEN001RET (ANSWERED, with the echoed MsgECO and the time it was read) or an ERR (REFUSED, with its CodErro) is read from the file channel, and NO_ANSWER once no answer came within the bound (the file-transfer node's retry window of 9.5 minutes, OP106 v11 §6.3.4, plus one schedule tick; a late answer still turns the test into ANSWERED). 404 for an unknown test id. RBAC: connectivity:test (admin)."
      operationId: getConnectivityTest
      parameters:
        - description: Participant ISPB (8 characters, digits or uppercase letters).
          in: path
          name: participantIspb
          required: true
          schema:
            description: Participant ISPB (8 characters, digits or uppercase letters).
            examples:
              - "12345678"
            type: string
        - description: Test id the POST returned.
          in: path
          name: testId
          required: true
          schema:
            description: Test id the POST returned.
            examples:
              - 0f8fad5b-d9cb-469f-a165-70867728950e
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ConnectivityTestResult"
          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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Read the outcome of an IF Domicílio connectivity test
      tags:
        - Connectivity
      x-required-scope: connectivity:test
      x-mint:
        href: /pt/reference/rails/slc/read-the-outcome-of-an-if-domicilio-connectivity-test
  /v1/reports:
    get:
      description: "Lists the installation's generated/available SLC (Serviço de Liquidação Centralizada) reports (reports table), newest first, one page at a time: pass the response's nextCursor as cursor to read the next older page; nextCursor is absent on the last page. This is a read-only facade — the rows are written by the ASLC9xx (família de mensagens de intake de relatório) intake pipeline. Filter: limit (default page size when omitted). RBAC: reports:read."
      operationId: listReports
      parameters:
        - description: Page size (default 50, max 100). A negative/non-numeric value is rejected with 400; an omitted value applies the adapter default.
          explode: false
          in: query
          name: limit
          schema:
            description: Page size (default 50, max 100). A negative/non-numeric value is rejected with 400; an omitted value applies the adapter default.
            examples:
              - "50"
            type: string
        - description: "Opaque keyset cursor: the nextCursor of the previous page. Omitted reads the newest page; a malformed value is rejected with 400."
          explode: false
          in: query
          name: cursor
          schema:
            description: "Opaque keyset cursor: the nextCursor of the previous page. Omitted reads the newest page; a malformed value is rejected with 400."
            examples:
              - eyJ0IjoiMjAyNi0wNi0xNVQwNzo1MDowMFoiLCJpIjoiMDE4ZjhhM2UtNGIyYy03YzFhLTllNWQtMmY2YTFiM2M0ZDVlIn0=
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListReportsResponse"
          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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: List generated reports
      tags:
        - Reports
      x-required-scope: reports:read
      x-mint:
        href: /pt/reference/rails/slc/list-reports
  /v1/schedule:
    get:
      description: "Returns the settlement schedule this instance is applying at the instant of the request: every window of the grid with its nominal boundaries, modeled STR cutoff and current phase, plus the EFFECTIVE credit dispatch posture — which gate the instance applies (the configured credit window, the opt-in grid gate, or the dev always-open relaxation), under which Núclea special grade, and over which boundaries. The credit dispatch block is the authoritative answer for outbound credit: the enforced credit window is NOT in the grid unless the grid gate is enabled, so a grid-only reading can name hours the instance does not apply. All instants are RFC3339 UTC; date and the window boundaries are the LOCAL São Paulo day. Window boundaries are the published grade and are reported even on a weekend or holiday, where businessDay is false and nextOpenAt names the next business opening. Takes no parameters: the phases are defined at an instant, and the grid is global, with no participant dimension. RBAC: schedule:read."
      operationId: getSchedule
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ScheduleResponse"
          description: OK
        "500":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Internal Server Error
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Get the settlement grid this instance is enforcing
      tags:
        - Schedule
      x-required-scope: schedule:read
      x-mint:
        href: /pt/reference/rails/slc/get-schedule
  /v1/signing-key:
    post:
      description: "Forwards the client's already-wrapped, opaque key material (Model A — never cleartext) to KMS via the signer sidecar, then persists ONLY the public certificate + the KMS reference + custody_provider=KMS (never key material). RBAC: signing-key:import (admin-only provisioning role). Field presence/type is validated against the schema (422); a malformed ISPB or invalid base64 is a coded 400. Idempotent via the MANDATORY X-Idempotency header."
      operationId: signingKeyImport
      parameters:
        - description: Idempotency key for safe retries (MANDATORY on this high-sensitivity endpoint).
          in: header
          name: X-Idempotency
          required: true
          schema:
            description: Idempotency key for safe retries (MANDATORY on this high-sensitivity endpoint).
            examples:
              - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/SigningKeyImportRequest"
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SigningKeyImportResponse"
          description: OK
        "413":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Request Entity Too Large
        "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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Complete a BYOK Model-A signing-key import (SaaS)
      tags:
        - SigningKey
      x-required-scope: signing-key:import
      x-mint:
        href: /pt/reference/rails/slc/signing-key-import
  /v1/signing-key/import-params:
    post:
      description: "Creates a fresh EXTERNAL-origin KMS key for the installation and returns the wrapping public key + import token the client uses to wrap its ICP-Brasil private key material LOCALLY (Model A — the SLC never sees the private key in cleartext). RBAC: signing-key:import (admin-only provisioning role). Idempotent via the MANDATORY X-Idempotency header."
      operationId: signingKeyImportParams
      parameters:
        - description: "Idempotency key for safe retries (MANDATORY: each call mints a real, billable AWS KMS key)."
          in: header
          name: X-Idempotency
          required: true
          schema:
            description: "Idempotency key for safe retries (MANDATORY: each call mints a real, billable AWS KMS key)."
            examples:
              - 018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SigningKeyImportParamsResponse"
          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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Start a BYOK Model-A signing-key import (SaaS)
      tags:
        - SigningKey
      x-required-scope: signing-key:import
      x-mint:
        href: /pt/reference/rails/slc/signing-key-import-params
  /v1/xsd-schemas:
    get:
      description: "Lists the schema type names (bare names, e.g. ASLC027, SLC0001) of the official Núclea ASLC and RSFN XSDs embedded in the service. Read-only introspection; the bytes are identical for every installation. RBAC: xsd-schemas:read."
      operationId: listXSDSchemas
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/XsdSchemaListResponse"
          description: OK
        "500":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Internal Server Error
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: List embedded XSD schema types
      tags:
        - XSD Schemas
      x-required-scope: xsd-schemas:read
      x-mint:
        href: /pt/reference/rails/slc/list-xsd-schemas
  /v1/xsd-schemas/{type}:
    get:
      description: "Returns the raw XSD document for a schema type (bare name, e.g. ASLC027; a trailing .xsd is tolerated). Read-only; served as application/xml. 404 when the type is unknown. RBAC: xsd-schemas:read."
      operationId: getXSDSchema
      parameters:
        - description: Schema type name (bare, e.g. ASLC027 or SLC0001; a trailing .xsd is tolerated).
          in: path
          name: type
          required: true
          schema:
            description: Schema type name (bare, e.g. ASLC027 or SLC0001; a trailing .xsd is tolerated).
            examples:
              - ASLC027
            type: string
      responses:
        "200":
          content:
            application/xml:
              schema:
                type: string
          description: The raw XSD document.
          headers:
            Content-Type:
              schema:
                description: Wire media type of the raw XSD document body.
                examples:
                  - application/xml
                type: string
        "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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Get one embedded XSD schema
      tags:
        - XSD Schemas
      x-required-scope: xsd-schemas:read
      x-mint:
        href: /pt/reference/rails/slc/get-xsd-schema
  /webhooks:
    get:
      description: Lists the installation's webhook subscriptions, including delivery metrics (successCount, failureCount, lastDeliveryAt, lastDeliveryStatus).
      operationId: listWebhooks
      parameters:
        - description: Page size (default 50). A negative or non-numeric value is rejected with 400.
          explode: false
          in: query
          name: limit
          schema:
            description: Page size (default 50). A negative or non-numeric value is rejected with 400.
            examples:
              - "50"
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWebhooksResponse"
          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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: List webhook subscriptions
      tags:
        - Webhooks
      x-required-scope: webhooks:admin
      x-mint:
        href: /pt/reference/rails/slc/list-webhooks
    post:
      description: Registers a webhook subscription. The raw secret is used only to derive a SHA-256 hash (never persisted in cleartext); in BYOC the real signing secret comes from the client's Kubernetes Secret. Field presence/type is validated against the schema (422); business-rule failures return coded 400/409/422 problem+json.
      operationId: createWebhook
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWebhookRequest"
        required: true
      responses:
        "201":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebhookResponse"
          description: Created
        "413":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Request Entity Too Large
        "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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Register a webhook subscription
      tags:
        - Webhooks
      x-required-scope: webhooks:admin
      x-mint:
        href: /pt/reference/rails/slc/create-webhook
  /webhooks/{id}:
    delete:
      description: Deactivates a webhook subscription (delivery history is preserved). Returns 204 No Content. 404 when the subscription does not exist.
      operationId: deleteWebhook
      parameters:
        - description: Subscription id (UUID).
          in: path
          name: id
          required: true
          schema:
            description: Subscription id (UUID).
            examples:
              - 0190b5a0-0000-7000-8000-0000000000aa
            type: string
      responses:
        "204":
          description: No Content
        "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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Deactivate a webhook subscription
      tags:
        - Webhooks
      x-required-scope: webhooks:admin
      x-mint:
        href: /pt/reference/rails/slc/delete-webhook
    put:
      description: Updates a webhook subscription. Omitted fields are left unchanged. A new secret rotates the signing secret (rehashed; never stored in cleartext). 404 when the subscription does not exist.
      operationId: updateWebhook
      parameters:
        - description: Subscription id (UUID).
          in: path
          name: id
          required: true
          schema:
            description: Subscription id (UUID).
            examples:
              - 0190b5a0-0000-7000-8000-0000000000aa
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWebhookRequest"
        required: true
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WebhookResponse"
          description: OK
        "413":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Request Entity Too Large
        "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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Update a webhook subscription
      tags:
        - Webhooks
      x-required-scope: webhooks:admin
      x-mint:
        href: /pt/reference/rails/slc/update-webhook
  /webhooks/{id}/deliveries:
    get:
      description: "Returns the delivery attempts (including retries) for a subscription, newest first, one page at a time: pass the response's nextCursor as cursor to read the next older page; nextCursor is absent on the last page. Each item carries its created_at partition key so a later replay can address the partitioned row."
      operationId: listWebhookDeliveries
      parameters:
        - description: Subscription id (UUID).
          in: path
          name: id
          required: true
          schema:
            description: Subscription id (UUID).
            examples:
              - 0190b5a0-0000-7000-8000-0000000000aa
            type: string
        - description: Page size (default 50, max 100). A negative or non-numeric value is rejected with 400.
          explode: false
          in: query
          name: limit
          schema:
            description: Page size (default 50, max 100). A negative or non-numeric value is rejected with 400.
            examples:
              - "50"
            type: string
        - description: "Opaque keyset cursor: the nextCursor of the previous page. Omitted reads the newest page; a malformed value is rejected with 400."
          explode: false
          in: query
          name: cursor
          schema:
            description: "Opaque keyset cursor: the nextCursor of the previous page. Omitted reads the newest page; a malformed value is rejected with 400."
            examples:
              - eyJ0IjoiMjAyNi0wNi0xNVQwNzo1MDowMFoiLCJpIjoiMDE5MGI1YTAtMDAwMC03MDAwLTgwMDAtMDAwMDAwMDAwMGRkIn0=
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListDeliveriesResponse"
          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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: List a webhook's delivery history
      tags:
        - Webhooks
      x-required-scope: webhooks:admin
      x-mint:
        href: /pt/reference/rails/slc/list-webhook-deliveries
  /webhooks/{id}/deliveries/{deliveryId}/replay:
    post:
      description: Re-enqueues a non-delivered delivery (FAILED/RETRYING/PENDING) for re-delivery, reconstructed from the persisted payload. The delivery must belong to {id} (else 404); a terminal-success delivery is rejected with 409. Requires the createdAt partition key. Returns 202 Accepted; idempotent at the consumer.
      operationId: replayWebhookDelivery
      parameters:
        - description: Subscription id (UUID).
          in: path
          name: id
          required: true
          schema:
            description: Subscription id (UUID).
            examples:
              - 0190b5a0-0000-7000-8000-0000000000aa
            type: string
        - description: Delivery id (UUID).
          in: path
          name: deliveryId
          required: true
          schema:
            description: Delivery id (UUID).
            examples:
              - 0190b5a0-0000-7000-8000-0000000000dd
            type: string
        - description: Delivery created_at partition key (RFC3339). Required.
          explode: false
          in: query
          name: createdAt
          schema:
            description: Delivery created_at partition key (RFC3339). Required.
            examples:
              - "2026-06-15T07:50:00Z"
            type: string
      responses:
        "202":
          description: Accepted
        "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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Replay a failed webhook delivery
      tags:
        - Webhooks
      x-required-scope: webhooks:admin
      x-mint:
        href: /pt/reference/rails/slc/replay-webhook-delivery
  /webhooks/{id}/test:
    post:
      description: Synchronously dispatches a synthetic test envelope (eventType=webhook.test) to the subscription and returns the delivery result. 404 when the subscription does not exist.
      operationId: testWebhook
      parameters:
        - description: Subscription id (UUID).
          in: path
          name: id
          required: true
          schema:
            description: Subscription id (UUID).
            examples:
              - 0190b5a0-0000-7000-8000-0000000000aa
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/TestDeliveryResponse"
          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
        "501":
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: "Not Implemented: this capability is not part of this deployment. Operations are registered unconditionally so the published contract is identical across deploy shapes; when the capability behind one did not compose here (authentication disabled, no database, no outbound transport, or the feature switched off) it answers this coded SLC-0012 problem. It is definitive for this deployment: retrying does not help, and the `detail` is deliberately scrubbed (any status >= 500 is)."
        default:
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Detail"
          description: Error
      summary: Send a synthetic test event to a webhook
      tags:
        - Webhooks
      x-required-scope: webhooks:admin
      x-mint:
        href: /pt/reference/rails/slc/test-webhook
security:
  - BearerAuth: []
tags:
  - description: Settlement operation lifecycle — create, list, query, and control the NUliquid-tracked card operations (NUliquid = the 21-position id Núclea assigns each accepted operation) through the state machine.
    name: Operations
  - description: Participant catalog — the acquirers, sub-acquirers, IF Domicílio (bank where the merchant receives its sales), and settlement FIs (financial institutions) that take part in card settlement.
    name: Participants
  - description: Card arrangements (bandeira/scheme configurations, e.g. Visa/Master/Elo) attached to a participant.
    name: Arrangements
  - description: Regulated transport orchestration to Núclea's SLC — dispatch, recovery, retransmission, and connectivity testing over managed file-transfer, message-broker, and REST.
    name: Connectivity
  - description: Multilateral netting clearing positions — the net amount each participant settles per STR cycle (STR = Banco Central reserves-transfer system).
    name: Clearing
  - description: SaaS BYOK (Bring Your Own Key) signing-key provisioning — import parameters and register the client's ICP-Brasil server-type certificate material used to sign ASLC files (RSA, at least 2048 bits, and valid at the moment of import — all three are enforced); the SLC never receives the private key in cleartext.
    name: SigningKey
  - description: ASLC file intake and status — passthrough submission and processing status of the official Núclea card-settlement XML files (ASLC = Arquivo do Sistema de Liquidação de Cartões).
    name: Files
  - description: Read-only introspection of the embedded Núclea ASLC/RSFN (National Financial System Network) XSD schemas used to validate outbound and inbound messages.
    name: XSD Schemas
  - description: Read-only regulatory, compliance, and operational settlement reports.
    name: Reports
  - description: Outbound business-event webhook subscriptions and delivery management for consumers (client ledgers — optional).
    name: Webhooks
  - description: Administrative operations — dead-letter-queue inspection/replay.
    name: Admin
  - description: LBTR (gross real-time settlement) commands and reads — position requests, confirmation or divergence of announced settlement results, and receivables-anticipation transfers exchanged with the câmara.
    name: LBTR
  - description: Card settlement funding — the settlement instructions to be funded in STR and the declaration of each deposit's confirmation.
    name: Funding
  - description: IF Domicílio (the bank where the merchant receives its sales) view — the settlements Núclea notified it of and its confirmation or refusal of them.
    name: Domicile
  - description: Read-only introspection of the settlement time grid (the windows in which each message type may be sent).
    name: Schedule
servers:
  - url: https://api.example.com
    description: Replace the example host with the URL provided during environment onboarding.
