Skip to main content
PUT
Set the connection to the PCR

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Headers

Idempotency-Key
string
required

Client-supplied idempotency key, a UUID. Required: a request without it, with a value that is not a UUID, or with the nil UUID (00000000-0000-0000-0000-000000000000) is refused with 400 PBP-0012.

Body

application/json
bankCode
string
required

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.

Pattern: ^[0-9]{3}$
Example:

"699"

baseUrl
string<uri>
required

Address of the institution's PCR API. Must match one of the PCR destinations the platform allows the tenant, by scheme, host and port; any other is refused with 422 PBP-0818.

Maximum string length: 2048
Pattern: ^https://
Example:

"https://pcr.instituicao.internal"

ispb
string
required

ISPB of the institution, 8 digits or capital letters.

Required string length: 8
Pattern: ^[0-9A-Z]{8}$
Example:

"12345678"

reason
string
required

Reason for the change, recorded in the audit trail. Must not carry personal data.

Required string length: 10 - 500
Example:

"Connection to the institution's PCR."

bankCodeCheckDigit
string

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.

Pattern: ^[0-9X]$
Example:

"7"

institutionName
string

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.

Required string length: 1 - 60
Example:

"Banco da InstituiΓ§Γ£o S.A."

version
integer<int64>

Version last read. Left out only to create the connection.

Required range: x >= 1
Example:

1

Response

OK. The connection as stored.

bankCode
string
required

Number code of the institution: positions 1 to 3 of the barcode and the bank code printed on the boleto.

Pattern: ^[0-9]{3}$
Example:

"699"

baseUrl
string<uri>
required

Address of the institution's PCR API.

Maximum string length: 2048
Example:

"https://pcr.instituicao.internal"

connectionToken
string | null
required
read-only

Token of the connection's current notice route; changes at every rotation. Null before the first subscription completes. The signing key is never answered.

Pattern: ^[A-Za-z0-9_-]{22,64}$
Example:

"pcn_8Qe2xV7kLm4Rt9Wb1Zc3Hy"

id
string<uuid>
required

Identifier of the connection.

Example:

"0192a3b4-5c6d-7e8f-9a0b-1c2d3e4f5a00"

ispb
string
required

ISPB of the institution.

Required string length: 8
Pattern: ^[0-9A-Z]{8}$
Example:

"12345678"

licenseState
enum<string>
required

State of the institution's PCR license. UNKNOWN while the PCR does not expose it; INVALID refuses the commands to that PCR.

Available options:
VALID,
INVALID,
UNKNOWN
Example:

"UNKNOWN"

noticeEndpointPath
string | null
required
read-only

Path of the notice route of the current token. Null before the first subscription completes.

Maximum string length: 128
Example:

"/v1/webhooks/pcr/pcn_8Qe2xV7kLm4Rt9Wb1Zc3Hy"

noticeEndpointUrl
string<uri> | null
required
read-only

Full address of the notice route of the current token, the one registered in the PCR subscription. Null before the first subscription completes.

Maximum string length: 2048
Example:

"https://payments.instituicao.internal/v1/webhooks/pcr/pcn_8Qe2xV7kLm4Rt9Wb1Zc3Hy"

subscription
object
required

The notice subscription at the PCR.

updatedAt
string<date-time>
required

When the connection last changed, RFC 3339 in UTC.

Example:

"2026-11-09T15:04:05Z"

version
integer<int64>
required

Version of the connection; a replacement sends it back.

Required range: x >= 1
Example:

1

bankCodeCheckDigit
string | null

Check digit printed after the bank code in the header of the boleto document, as informed by the institution, never computed; null when not informed.

Pattern: ^[0-9X]$
Example:

"7"

institutionName
string | null

Name of the institution printed in the header of the boleto document; null when not informed.

Required string length: 1 - 60
Example:

"Banco da InstituiΓ§Γ£o S.A."

updatedBy
object

Who made the last change.