Skip to main content
POST
Rotate the PCR notice signing secret

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
reason
string
required

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

Required string length: 10 - 500
Example:

"Notice intake restored after the window."

Response

OK. The subscription as stored afterwards. After a failure at step 4, syncState is SYNC_FAILED.

eventTypes
string[]
required

Event types subscribed, each the PCR's event type name, such as boleto.writeoff_received; empty before the first subscription.

Maximum array length: 64
includePii
boolean
required

Always false: the notices carry no personal data.

Example:

false

syncState
enum<string>
required

How the subscription at the PCR compares with what collections expects. NOT_SUBSCRIBED: no subscription. SYNCED: address, event types and state match. DIVERGENT: the PCR holds it differently, for example paused or changed in the PCR's own console. SYNC_FAILED: the last attempt failed (lastSyncError).

Available options:
NOT_SUBSCRIBED,
SYNCED,
DIVERGENT,
SYNC_FAILED
Example:

"NOT_SUBSCRIBED"

lastSyncError
object

The problem the last synchronization failed with, as its route answered it: the PCR's code in details.pcrCode when the PCR refused it. Absent when it did not fail.

lastSyncedAt
string<date-time> | null

When the subscription was last synchronized with the PCR, RFC 3339 in UTC; null before the first.

Example:

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

pcrState
enum<string> | null

State of the subscription as the PCR reports it; null before the first subscription.

Available options:
ACTIVE,
PAUSED,
FAILING,
null
Example:

"ACTIVE"

pendingOperation
enum<string> | null

A creation or rotation started and not finished: a retry within 24 hours finishes it with the same secret. Null when nothing is pending.

Available options:
CREATE,
ROTATE,
null
Example:

"CREATE"

pendingSince
string<date-time> | null

When the pending change started, RFC 3339 in UTC; after 24 hours the PCR no longer returns the same secret and a new rotation is needed. Null when nothing is pending.

Example:

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

previousConnectionValidUntil
string<date-time> | null

End of the window in which the previous token and signing key are still served after a rotation, RFC 3339 in UTC; null outside a rotation.

Example:

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

secretRotatedAt
string<date-time> | null

When a signing secret was last stored, at the creation or at a rotation, RFC 3339 in UTC; null before the first.

Example:

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

subscriptionId
string<uuid> | null

Identifier of the subscription at the PCR; null before the first subscription.

Example:

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

url
string<uri> | null

Address registered at the PCR; null before the first subscription.

Maximum string length: 2048
Example:

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