Set the connection to the PCR
Creates or replaces the tenantβs connection to its institutionβs PCR: the PCR address (baseUrl), the ISPB and the bank code (barcode positions 1 to 3).
How it works
- No credential or secret travels through this API. The platform provisions the serviceβs PCR credential outside it.
baseUrlmust match a PCR destination the platform allows the tenant, by scheme, host and port. Any other is refused withPBP-0818.- Bank code 000 is refused with
PBP-0006. Bank code 988, an institution without its own number code, is refused withPBP-0801. - The bank code is part of every barcode the connection composes. Once a title of the connection has a composed barcode, even pending submission, a
bankCodechange is refused withPBP-0802. A title withdrawn before it was sent does not count. - The tenant has one connection. Omit
versiononly to create it. To replace it, send theversionyou last read. Any other is refused withPBP-0803, and nothing is written. - Every change is recorded in the collections audit trail with its
reasonand the identity that made it.
Headers
Body
Number code of the institution: positions 1 to 3 of the barcode and the bank code printed on the boleto. 000 is refused with 422 PBP-0006, and 988, an institution without a number code of its own, with 422 PBP-0801. Once a title of the connection got a composed barcode, a change is refused with 422 PBP-0802; a title withdrawn before it was sent does not count.
^[0-9]{3}$"699"
Check digit printed after the bank code in the header of the boleto document: one digit or X, as informed by the institution, never computed nor checked against bankCode. Optional; left out, it is stored null, and while it is null the document of a boleto issued through the LERIAN provider (GET /v1/boletos/{id}/pdf) is refused with 422 PBP-0800.
^[0-9X]$"7"
Name of the institution printed in the header of the boleto document: 1 to 60 characters, not blank and without control characters; a blank name or one with a control character is refused with 422 PBP-0006. Optional; left out, it is stored null, and while it is null the document of a boleto issued through the LERIAN provider (GET /v1/boletos/{id}/pdf) is refused with 422 PBP-0800.
1 - 60"Banco da InstituiΓ§Γ£o S.A."
Response
OK. The connection as stored.
Full address of the notice route of the current token, the one registered in the PCR subscription. Null before the first subscription completes.
2048"https://payments.instituicao.internal/v1/webhooks/pcr/pcn_8Qe2xV7kLm4Rt9Wb1Zc3Hy"

