Configure a provider's default payment deadline
Sets the default payment deadline of one provider for the tenant of your credentials, in calendar days after the due date.
How it works
days: 0sets the deadline on the due date.days: nullgoes back to the provider’s default. Like any accepted write, it movesversionon.daysisnullor 0 to 3650.reasonmust not be blank.versionmust not be negative.- Send the
versionread withGET /v1/admin/providers/{provider_type}/payment-deadline. It is 0 when never written. - Days above the provider’s maximum are refused, with the maximum in
maxDays. - Writing the days already stored, or
nullwith nothing stored, is refused with reasonNO_CHANGE. - Writing the provider’s default as a number stores it. It stays if the provider’s default changes later.
- The setting applies to boletos the provider issues after the write: single boletos and installment series without
paymentDeadline, and batch items (POST /v1/boletos/batches). Their deadline is the due date plus these days. - A
paymentDeadlinesent on a single boleto or a series takes precedence. Boletos already issued keep their deadline. - An issuance reads the setting once (a batch, once for all its items). A change during an issuance does not affect it, and a resend of the same request returns the boletos as issued.
- With 0 days, an issuance with a fine or interest that starts the day after the due date is refused.
- Nothing is written on any refusal. Each change is recorded in the history with the actor, the time, the previous and new days, and the reason.
- A retry under the same
Idempotency-Keyreturns the stored200. - Requires the
provider-routes:configurepermission, held byeditorand by machine credentials.viewerandoperatorare refused.
Encabezados
Parámetros de ruta
Cuerpo
The days, the reason and the version read.
Calendar days after the due date; 0 is a deadline on the due date. Null returns to the provider's default. Required: send null explicitly to return to the default. Above the provider's maxDays is refused with 422 PBP-0702 reason PAYMENT_DEADLINE_ABOVE_MAXIMUM.
0 <= x <= 365010
Respuesta
OK. The setting was written. While configured days are above the provider's current maximum, or are 0 with a fine or interest that starts the day after the due date, issuance is refused with 422 PBP-0006. In a batch, each such item is a PBP-0006 problem and the whole batch is refused with 422 PBP-0123.

