Action required
Payments BTG v1.7.0 provider routes, boleto terms and event ids
Each tenant of Payments BTG v1.7.0 now chooses which provider serves each boleto and payment operation. A tenant that issued or paid before the upgrade is routed to BTG. A new tenant has no route: every boleto issuance, payment and bill consult answers422 PBP-0700 until you route its operation. The API reference has 18 new administrative operations.A boleto can now carry your own reference (documentNumber), up to three discount bands, start dates for the fine and the interest, and a last payment date. By default the last payment date is the due date plus 30 days, or plus the days that the tenant sets for BTG. Issuance first checks that the ledger can route the settlement credit, and refuses with 422 PBP-0128 when it cannot. An issuance with a nosso número that you chose, whose outcome at BTG is not confirmed, now answers 202 with the pending boleto. Before, it answered a refusal. A second cancellation of a boleto while another one waits for BTG answers 409 PBP-0133. Every webhook notice now carries eventId, and boleto notices carry occurredAt.Before the first boleto, payment or bill consult of a new tenant, route each operation to BTG with POST /v1/admin/provider-routes/{operation_type}. On a 202 for a chosen nosso número, read the boleto and do not send it again under a new key. Discard repeated notices by eventId. Read Route each operation to BTG and the environment variables.Review recommended
Payments PCR reference follows Payments v1.7.0, with two new operations and without electronic payers
The Payments PCR reference now follows Payments v1.7.0. The contract generated at that release replaces the earlier preview, and the page no longer carries a preview label. The reference addsGET /v1/admin/accounting-routes/document-export, which exports the discovered accounting routes as a tenant policy document, and POST /v1/collections/title-facts/{fact_id}/requeue, which requeues a title fact that the outbox stopped delivering. It defines 21 notices.The electronic payer (DDA) operations, the presented boleto operations, POST /v1/collections/write-offs/{write_off_id}/unhold and 25 notices, among them BOLETO_PAID, are not part of v1.7.0 and left the reference. GET /v1/payments/{id}/receipt, POST /v1/payments/antifraud/resolve, PAYMENT_RETURNED and PAYMENT_UNDER_REVIEW also left the reference. PAYMENT_SCHEDULED and PIX_KEY_CHANGED can be enabled, but Payments sends no notice of these types. If you read the preview, check your integration against the Payments PCR reference.
