Saltar al contenido principal
POST
Request an amendment of a registered boleto

Autorizaciones

Authorization
string
header
requerido

JWT bearer token issued by the identity provider.

Encabezados

X-Organization-Id
string

Midaz organization the boleto belongs to. Required: a request without it, or with a value that is not a canonical UUID, is refused with 400 PBP-0025. A boleto of another organization is answered 404, exactly as one that does not exist.

Idempotency-Key
string
requerido

Client-supplied idempotency key, a UUID, one per intended amendment. Required: a request without it, with a value that is not a UUID, or with the nil UUID is refused with 400 PBP-0012.

Parámetros de ruta

id
string<uuid>
requerido

Boleto identifier (UUID).

Ejemplo:

"123e4567-e89b-12d3-a456-426614174000"

Cuerpo

application/json
amount
string

New amount as a decimal string, positive, at most two decimal places. Cannot be null. On LERIAN it must be below 100000000.00; otherwise 422 PBP-0006 naming the member, before anything is recorded.

Maximum string length: 32
Ejemplo:

"150.00"

discounts
object[]

The whole new list of discount bands, under the issuance's rules for bands; an empty list removes every band. Cannot be null.

Maximum array length: 3
documentNumber
string | null

New payee's reference of the charge (seu numero), 1 to 15 printable ASCII characters. null removes it.

Required string length: 1 - 15
Pattern: ^[ -~]{1,15}$
Ejemplo:

"INV-0042"

dueDate
string<date>

New due date, YYYY-MM-DD, not before today in Brazil. Cannot be null. On LERIAN it must be at most 3650 days after the day of issuance; otherwise 422 PBP-0006 naming the member, before anything is recorded.

Ejemplo:

"2030-01-20"

fine
object | null

New fine. null exempts the boleto from the fine.

interest
object | null

New interest. null exempts the boleto from interest.

paymentDeadline
string<date>

New last day the boleto can be paid, YYYY-MM-DD, on or after the resulting due date and within the provider's maximum after it, LERIAN declaring none. It can be changed, never removed: null is refused with 400 PBP-0001.

Ejemplo:

"2030-02-20"

Respuesta

OK. A resend under the same Idempotency-Key after its record expired: the recorded request as it is now.

boletoId
string<uuid>
requerido

Boleto the request amends.

id
string<uuid>
requerido

Amendment request identifier.

provider
string
requerido

Provider of the boleto.

requestedAt
string<date-time>
requerido

When the request was recorded, in UTC.

requestedChanges
object
requerido

The members the request changes, with their final values, in normalized form: null exempts a fine or interest, or removes the seu numero.

status
enum<string>
requerido

PENDING while the provider's outcome is awaited; APPLIED and REJECTED once decided; SUPERSEDED when a cancellation of the boleto came first.

Opciones disponibles:
PENDING,
APPLIED,
REJECTED,
SUPERSEDED
effectiveTerms
object

Every term in force once the request was applied; present on APPLIED. A null member is a clause or reference the boleto does not have.

rejection
object

Why the request was refused; present on REJECTED and on a SUPERSEDED request the provider refused afterwards.

resolvedAt
string<date-time>

When the request was decided, in UTC; absent while it is PENDING.