Pular para o conteúdo principal
POST
Configure the provider of one operation

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Cabeçalhos

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
obrigatório

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.

Parâmetros de caminho

operation_type
string
obrigatório

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_]*$
Exemplo:

"BOLETO_ISSUANCE"

Corpo

application/json

The provider, the reason and the version read.

providerType
string | null
obrigatório

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}$
Exemplo:

"BTG"

reason
string
obrigatório

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
Exemplo:

"Onboarding do tenant: emissão no BTG."

version
integer<int64>
obrigatório

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

Intervalo obrigatório: x >= 0
Exemplo:

0

Resposta

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

changeId
string<uuid>
obrigatório

Identifier of the history line this write recorded.

Exemplo:

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

route
object
obrigatório

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