Saltar al contenido principal
POST
Configure a provider's default payment deadline

Autorizaciones

Authorization
string
header
requerido

JWT bearer token issued by the identity provider.

Encabezados

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
requerido

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 ruta

provider_type
string
requerido

Provider whose default payment deadline is read or written, as the capabilities read names it. Matched case-insensitively.

Required string length: 1 - 20
Pattern: ^[A-Za-z][A-Za-z0-9_]{0,19}$
Ejemplo:

"LERIAN"

Cuerpo

application/json

The days, the reason and the version read.

days
integer<int64> | null
requerido

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.

Rango requerido: 0 <= x <= 3650
Ejemplo:

10

reason
string
requerido

Why the deadline is changed. Recorded in the history. Blank is refused with 400 PBP-0001.

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

"Shorter collection window for this portfolio."

version
integer<int64>
requerido

The setting's current version, as read; 0 when never written.

Rango requerido: x >= 0
Ejemplo:

0

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.

aboveMaximum
boolean
requerido

True when the configured days are past maxDays: the provider's maximum fell below them after they were written. Write days within maxDays, or return to the default.

Ejemplo:

false

changeId
string<uuid>
requerido

Identifier of the history line this write recorded.

Ejemplo:

"019a5c1e-2b3d-7f4a-8c5d-6e7f8a9b0c1d"

days
integer<int64>
requerido

Calendar days after the due date of the payment deadline in force; 0 is a deadline on the due date. The tenant's days, or providerDefaultDays when it configured none.

Rango requerido: x >= 0
Ejemplo:

30

isDefault
boolean
requerido

True when no days are configured for the provider, or they were returned to the default: the provider's default applies.

Ejemplo:

true

maxDays
integer<int64>
requerido

Furthest deadline the provider accepts, in calendar days after the due date. A write above it is refused with 422 PBP-0702 reason PAYMENT_DEADLINE_ABOVE_MAXIMUM.

Rango requerido: x >= 0
Ejemplo:

365

providerDefaultDays
integer<int64>
requerido

Default payment deadline the provider declares, in calendar days after the due date.

Rango requerido: x >= 0
Ejemplo:

30

providerType
string
requerido

Provider the setting belongs to.

Maximum string length: 20
Ejemplo:

"BTG"

updatedAt
string<date-time> | null
requerido

When the setting was last written, in UTC. Null when never written.

Ejemplo:

"2026-11-15T14:05:09Z"

updatedByType
enum<string> | null
requerido

Kind of principal of the last write. Null when never written.

Opciones disponibles:
USER,
MACHINE,
SYSTEM
Ejemplo:

"USER"

version
integer<int64>
requerido

Version of this (tenant, provider) setting. 0 when never written. Incremented by every accepted write, including a return to the default. A write sends it back; a stale one is refused with 409 PBP-0705.

Rango requerido: x >= 0
Ejemplo:

0