Configure the provider of one operation
Sets the provider of one operation type for the tenant of your credentials. Send providerType: null to remove it.
Providers: Lerian (PCR) and BTG.
How it works
- Choose among the providers enabled for the tenant: installed on this deployment and connected to the tenant.
GET /v1/admin/providers/capabilitieslists them. - Send the
versionyou read withGET /v1/admin/provider-routes. It is 0 when the operation was never configured. - The write is checked against the current state, in this order:
UNKNOWN_OPERATION,PROVIDER_NOT_INSTALLED,PROVIDER_NOT_CONNECTED,CAPABILITY_MISSING,NO_CHANGE,PROVIDER_SWITCH_UNAVAILABLE. The first check that fails is thereasonof the422PBP-0702. Any refusal writes nothing. - Moving boleto issuance (
BOLETO_ISSUANCE) to another provider is not available yet. Issuance stays with the routeβs current provider, or with the last one after a removal. - The route history decides this, not the boletos issued. A tenant with no route history that issued boletos before routes existed stays with BTG.
- Accepted for issuance: a removal, and setting the same provider back. A tenant with no route, no route history and no boleto can also set its first provider.
- Only new operations go to the new provider. Records already created finish with their recorded provider, including consultation, cancellation and settlement.
- Each change is recorded in the route history with the actor, the time, the previous and new provider, and the reason.
- A retry under the same
Idempotency-Keyreturns the stored200. - Requires the
provider-routes:configurepermission, held byeditorand by machine credentials. It is separate fromadmin:create, so a role can choose providers without changing the tenantβs credentials.
Planned changes
- DDA (electronic payer):
operation_typeacceptsELECTRONIC_PAYER. Switching or removing that route is refused withPROVIDER_SWITCH_UNAVAILABLEwhile the previous provider has active or pending adhesions, or when the provider cannot count them.
POST
Configure the provider of one operation
Headers
Path Parameters
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 - 50Pattern:
^[A-Z][A-Z0-9_]*$Example:
"BOLETO_ISSUANCE"
Body
application/json
The provider, the reason and the version read.
Response
OK. The route was written. A retry under the same Idempotency-Key returns this same answer.

