Skip to main content
POST
Configure a provider's default payment deadline

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Headers

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
required

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.

Path Parameters

provider_type
string
required

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

"LERIAN"

Body

application/json

The days, the reason and the version read.

days
integer<int64> | null
required

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.

Required range: 0 <= x <= 3650
Example:

10

reason
string
required

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

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

"Shorter collection window for this portfolio."

version
integer<int64>
required

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

Required range: x >= 0
Example:

0

Response

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
required

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.

Example:

false

changeId
string<uuid>
required

Identifier of the history line this write recorded.

Example:

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

days
integer<int64>
required

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.

Required range: x >= 0
Example:

30

isDefault
boolean
required

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

Example:

true

maxDays
integer<int64>
required

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.

Required range: x >= 0
Example:

365

providerDefaultDays
integer<int64>
required

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

Required range: x >= 0
Example:

30

providerType
string
required

Provider the setting belongs to.

Maximum string length: 20
Example:

"BTG"

updatedAt
string<date-time> | null
required

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

Example:

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

updatedByType
enum<string> | null
required

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

Available options:
USER,
MACHINE,
SYSTEM
Example:

"USER"

version
integer<int64>
required

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.

Required range: x >= 0
Example:

0