Pular para o conteúdo principal
POST
Configure a provider's default payment deadline

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

provider_type
string
obrigatório

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

"LERIAN"

Corpo

application/json

The days, the reason and the version read.

days
integer<int64> | null
obrigatório

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.

Intervalo obrigatório: 0 <= x <= 3650
Exemplo:

10

reason
string
obrigatório

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

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

"Shorter collection window for this portfolio."

version
integer<int64>
obrigatório

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

Intervalo obrigatório: x >= 0
Exemplo:

0

Resposta

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

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.

Exemplo:

false

changeId
string<uuid>
obrigatório

Identifier of the history line this write recorded.

Exemplo:

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

days
integer<int64>
obrigatório

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.

Intervalo obrigatório: x >= 0
Exemplo:

30

isDefault
boolean
obrigatório

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

Exemplo:

true

maxDays
integer<int64>
obrigatório

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.

Intervalo obrigatório: x >= 0
Exemplo:

365

providerDefaultDays
integer<int64>
obrigatório

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

Intervalo obrigatório: x >= 0
Exemplo:

30

providerType
string
obrigatório

Provider the setting belongs to.

Maximum string length: 20
Exemplo:

"BTG"

updatedAt
string<date-time> | null
obrigatório

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

Exemplo:

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

updatedByType
enum<string> | null
obrigatório

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

Opções disponíveis:
USER,
MACHINE,
SYSTEM
Exemplo:

"USER"

version
integer<int64>
obrigatório

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.

Intervalo obrigatório: x >= 0
Exemplo:

0