Pular para o conteúdo principal
PATCH
Update a package

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Parâmetros de caminho

organization_id
string
obrigatório

Organization ID (UUID)

ledger_id
string
obrigatório

Ledger ID (UUID)

package_id
string
obrigatório

Package ID (UUID)

Corpo

application/json
description
string
Exemplo:

"Pacote de taxas administrativas padrão"

enable
boolean
Exemplo:

true

feeGroupLabel
string
Exemplo:

"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
Exemplo:

"1000"

minimumAmount
string | null
Exemplo:

"100"

rounding
object

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

waivedAccounts
string[] | null
Exemplo:

Resposta

OK

createdAt
string<date-time>
obrigatório
Exemplo:

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

deletedAt
string<date-time> | null
obrigatório
Exemplo:

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

description
string | null
obrigatório
Exemplo:

"Pacote de taxas administrativas padrão"

enable
boolean | null
obrigatório
feeGroupLabel
string
obrigatório
Exemplo:

"Pacote Padrão"

fees
object
obrigatório
id
string
obrigatório
Exemplo:

"00000000-0000-0000-0000-000000000000"

ledgerId
string
obrigatório
Exemplo:

"00000000-0000-0000-0000-000000000000"

maximumAmount
string
obrigatório
Exemplo:

"2"

minimumAmount
string
obrigatório
Exemplo:

"100"

segmentId
string
obrigatório
Exemplo:

"00000000-0000-0000-0000-000000000000"

transactionRoute
string | null
obrigatório

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.

Exemplo:

"00000000-0000-0000-0000-000000000000"

updatedAt
string<date-time>
obrigatório
Exemplo:

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

waivedAccounts
string[] | null
obrigatório
Exemplo:
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.

Exemplo:
rounding
object