Command a rediscount operation
Commands a redesconto do Banco Central — collateralised BCB lending against Selic-registered federal securities — and returns the operation id plus a PENDING state. One door serves the four operator-facing kinds and the server derives the RDC wire code: a contract borrows (RDC0002 intraday, RDC0003 one business day, RDC0004 tied to a Selic purchase, RDC0009 tied to a clearing-house collateral release, RDC0013 a consolidation), a payment gives it back (RDC0007 in cash, RDC0008 funded by selling the pledged securities), a conversion liquidates an open operation and opens a repriced replacement (RDC0005), and a cancellation withdraws a request still pending at Selic (RDC0014). The outcome arrives asynchronously on the response leg — and an ACCEPTED answer is NOT a settlement: Selic may hold the request for want of securities, in which case the operation is registered, no money has moved, and no settlement fact is emitted. Lerian SPB records what BACEN answers; it holds no position and performs no balance arithmetic.
Autorizações
JWT bearer token issued by the identity provider.
Cabeçalhos
Idempotency key. Required on every mutation.
Idempotency key TTL in seconds.
Corpo
Operator-facing command kind. The server derives the RDC wire code from this plus contractFlavour/paymentForm: contract -> RDC0002/0003/0004/0009/0013, payment -> RDC0007/0008, conversion -> RDC0005, cancellation -> RDC0014.
contract, payment, conversion, cancellation "contract"
Selic operation number (NumOpSEL) of THIS frame — mandatory on all nine commands. On a payment it is that payment leg's own number, not the contract's: an intermediate partial takes a new number from the institution's daily range while the last one takes back the number the rediscount was granted under.
"000123"
Financed amount (VlrFinanc) in decimal reais, forwarded verbatim — never parsed or multiplied out of quantity x unit price. On a conversion this is the amount of the NEW operation; the original's return amount is returnAmount. A cancellation carries NO amount and supplying one is refused: the RDC0014 layout declares none.
"1500000.00"
Selic account of the securities cedent (CtCed). Contracts only.
"123456789"
ISPB of the clearing house whose collateral release backs the operation (ISPBLDL). contractFlavour=collateralRelease only.
^[0-9A-Z]{8}$"12345678"
Which contract entry point (kind=contract only): intraday -> RDC0002, oneBusinessDay -> RDC0003, selicPurchase -> RDC0004, collateralRelease -> RDC0009, consolidation -> RDC0013.
intraday, oneBusinessDay, selicPurchase, collateralRelease, consolidation "intraday"
Maturity of the pledged security (DtVenc). Contracts only.
"2027-01-01"
BACEN handle (NumCtrlRDCOr) of the operation this command acts on — the NumCtrlRDC its contract response returned. Required by a payment, a conversion and a cancellation; refused on a contract, which opens an operation rather than acting on one.
"RDC20260615000000001"
How the payment is funded (kind=payment only): cash -> RDC0007 (own reserves), sale -> RDC0008 (proceeds of selling the pledged securities, which is why only this form carries selicTradeKey).
cash, sale "cash"
Payment form (TpPgto), a closed BACEN domain distinguishing a partial payment from a total one. Payments only. Partial payment is first-class and repeatable: the response reports the remaining balance and the operation stays open until it reaches zero.
"T"
Optional settlement priority (NivelPref): A = alta, N = normal. Payments and conversions.
A, N "N"
Quantity of the NEW operation a conversion opens. Conversions only.
"1000"
Unit price of the NEW operation a conversion opens (Grupo_RDC0005_ConvrRecontr). Conversions only.
"1052.00000000"
Amount of the ORIGINAL operation's return leg on a conversion. Kept separate from amount so neither half of a conversion can borrow the other's numbers. Conversions only.
"1051000.00"
Quantity of the ORIGINAL operation's return leg on a conversion (Grupo_RDC0005_VoltaOpOr). Conversions only.
"1000"
Unit price the securities return at (PURet) — same eight-decimal price facet as unitPrice. Payments and conversions.
"1051.00000000"
Selic trade key (ChASEL) binding the rediscount to what backs it. Required by contractFlavour=selicPurchase (the purchase), contractFlavour=collateralRelease (the câmara release) and paymentForm=sale (the sale funding the payment); refused everywhere else.
"000999"
Selic identifier of the security being pledged (IdentdTitSEL). Contracts only.
"100000"
Number of securities pledged (contracts) or returned (payments) — QtdTit.
"1000"
Unit price of the pledged security (PU) — a PRICE with eight decimal places, not a money amount. Contracts only.
"1050.12345678"
Resposta
Accepted
Commanded amount, verbatim. A cancellation reports "0": the RDC0014 layout carries no amount, so this is a structural zero meaning the command moves no value — never a claim about the operation being cancelled.
"1500000.00"
Request-scoped correlation identifier echoing X-Request-ID.
"req-7a3f9c2e"
Rediscount operation UUID. Poll GET /v1/str/operations/rediscounts/{operationId} with it.
"9f1c2d3e-4b5a-6c7d-8e9f-0a1b2c3d4e5f"
Operator-facing command kind, echoed back.
"contract"
Lifecycle state. Always PENDING here: the frame is on the wire and BACEN has said nothing yet.
"PENDING"
RDC message code the server derived and put on the wire.
"RDC0002"
SFN operation number stamped on the transmitted frame. It is the handle the response leg correlates on.
^[0-9A-Z]{8}[0-9]{15}$"12345678202606150000014"

