CONFIRMED, and a rejected status moves it to REJECTED. A pending status keeps the transfer open, because the STR still holds the entry. When BACEN accepts your STR0011, or when the STR cancels the entry on its own, the transfer moves to CANCELLED. A status outside BACEN’s domain opens a reconciliation case.
Conta PI, electronic-money, rediscount and compulsory-deposit movements report a settled reply as SETTLED. Lerian SPB projects BACEN’s settlement fields verbatim.
An STR transfer credit (an R2 or R3 reply) that matches no transfer the rail sent is a credit that another institution started. The rail records it as an inbound operation and publishes str.operation.received for your ledger to record.
For each inbound notice, the rail publishes str.message.received. Some notices also change rail state and publish a dedicated event.
The rail quarantines an inbound frame that it cannot turn into a message, and opens a reconciliation case for it.
BACEN can split an answer into numbered parts. The rail holds each part until all have arrived, in any order, and then processes the whole answer once. The parts of an answer that never completes stay in quarantine for an operator. When a part is still missing 30 minutes after the first part arrived, the rail opens one reconciliation case for the message. Its reason is
PARTITIONED_MESSAGE_INCOMPLETE and its recommended action is INVESTIGATE. The case lists the parts received and the parts missing. It closes nothing: a part that arrives later still completes the answer. The rail opens at most one such case for a message.
The str.emoney.transferAdvised event’s data object always includes messageCode, numCtrlSTR, dtHrBC, vlrLanc, and dtMovto. Depending on the advice leg, it can also include debitedIspb, creditedIspb, numCtrlSTROr, hist, ispbIFCredtd, agCredtd, and ctCredtd. The event does not expose CNPJCliCredtd. Deduplicate this event by (eventType, data.numCtrlSTR), not by ce-id: a retry can produce a fresh ce-id, while the same control number identifies the same movement.
