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, the transfer moves to CANCELLED. A cancelled status that answers no STR0011 of yours, or 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.
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.
