Skip to main content
POST
Configure the provider of one operation

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Headers

X-Organization-Id
string<uuid>

Tenant organization ID. Optional. The organization context is determined by the credentials you authenticate with; this header does not select or change it.

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. A retry with the same key replays the stored 2xx answer.

Path Parameters

operation_type
string
required

Operation type whose provider is set: BOLETO_ISSUANCE, BANKSLIP_PAYMENT, BARCODE_BILL_PAYMENT or DARF_PAYMENT. Any other well-formed name is refused with 422 PBP-0702 reason UNKNOWN_OPERATION; a value outside the pattern with 400 PBP-0001.

Required string length: 1 - 50
Pattern: ^[A-Z][A-Z0-9_]*$
Example:

"BOLETO_ISSUANCE"

Body

application/json

The provider, the reason and the version read.

providerType
string | null
required

Provider to route the operation to, or null to leave the operation without provider. Must be installed, connected to the tenant, and declare the operation.

Required string length: 1 - 20
Pattern: ^[A-Z][A-Z0-9_]{0,19}$
Example:

"BTG"

reason
string
required

Why the route is changed. Recorded in the history and shown to the tenant. Blank is refused with 400 PBP-0001.

Required string length: 1 - 500
Pattern: \S
Example:

"Onboarding do tenant: emissΓ£o no BTG."

version
integer<int64>
required

The operation's current version, as read; 0 for an operation never configured.

Required range: x >= 0
Example:

0

Response

OK. The route was written. A retry under the same Idempotency-Key returns this same answer.

changeId
string<uuid>
required

Identifier of the history line this write recorded.

Example:

"019a3b8e-6f1c-7d2e-8a4b-5c6d7e8f9a01"

route
object
required

The route of the operation as written, with its new version.