Saltar al contenido principal
PATCH
Update a package

Autorizaciones

Authorization
string
header
requerido

JWT bearer token issued by the identity provider.

Parámetros de ruta

organization_id
string
requerido

Organization ID (UUID)

ledger_id
string
requerido

Ledger ID (UUID)

package_id
string
requerido

Package ID (UUID)

Cuerpo

application/json
description
string
Ejemplo:

"Pacote de taxas administrativas padrão"

enable
boolean
Ejemplo:

true

feeGroupLabel
string
Ejemplo:

"Pacote Padrão"

fees
object

Fee patches keyed by fee key. An entry naming a stored key verbatim edits that fee, or removes it when the entry sets no field. Any other key adds a fee and must match ^[a-z][a-zA-Z0-9]*$ (a lowercase ASCII letter, then ASCII letters and digits), or the update is refused with 400; a key equal to a stored key except for letter case is also refused with 400, and the stored key must be used, unless the same patch removes that stored key, which renames the fee (the new key must still match the grammar).

maximumAmount
string | null
Ejemplo:

"1000"

minimumAmount
string | null
Ejemplo:

"100"

rounding
object

Replaces the stored rounding whole. An update cannot remove a stored rounding.

waivedAccounts
string[] | null
Ejemplo:

Respuesta

OK

createdAt
string<date-time>
requerido
Ejemplo:

"2021-01-01T00:00:00Z"

deletedAt
string<date-time> | null
requerido
Ejemplo:

"2021-01-01T00:00:00Z"

description
string | null
requerido
Ejemplo:

"Pacote de taxas administrativas padrão"

enable
boolean | null
requerido
feeGroupLabel
string
requerido
Ejemplo:

"Pacote Padrão"

fees
object
requerido
id
string
requerido
Ejemplo:

"00000000-0000-0000-0000-000000000000"

ledgerId
string
requerido
Ejemplo:

"00000000-0000-0000-0000-000000000000"

maximumAmount
string
requerido
Ejemplo:

"2"

minimumAmount
string
requerido
Ejemplo:

"100"

segmentId
string
requerido
Ejemplo:

"00000000-0000-0000-0000-000000000000"

transactionRoute
string | null
requerido

Transaction route identifier this package is scoped to. It must equal the routeId the payment carries, so it is a route UUID and not a free-form name. An absent or empty value applies the package to every payment.

Ejemplo:

"00000000-0000-0000-0000-000000000000"

updatedAt
string<date-time>
requerido
Ejemplo:

"2021-01-01T00:00:00Z"

waivedAccounts
string[] | null
requerido
Ejemplo:
metadataSelector
object

Metadata pairs a transaction must all carry for this package to apply, each matching only a string metadata value equal to it. Each pair counts one toward package specificity. Absent or empty applies the package whatever the metadata.

Ejemplo:
rounding
object