Skip to main content
PATCH
Update a package

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Path Parameters

organization_id
string
required

Organization ID (UUID)

ledger_id
string
required

Ledger ID (UUID)

package_id
string
required

Package ID (UUID)

Body

application/json
description
string
Example:

"Pacote de taxas administrativas padrão"

enable
boolean
Example:

true

feeGroupLabel
string
Example:

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

"1000"

minimumAmount
string | null
Example:

"100"

waivedAccounts
string[] | null
Example:

Response

OK

createdAt
string<date-time>
required
Example:

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

deletedAt
string<date-time> | null
required
Example:

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

description
string | null
required
Example:

"Pacote de taxas administrativas padrão"

enable
boolean | null
required
feeGroupLabel
string
required
Example:

"Pacote Padrão"

fees
object
required
id
string
required
Example:

"00000000-0000-0000-0000-000000000000"

ledgerId
string
required
Example:

"00000000-0000-0000-0000-000000000000"

maximumAmount
string
required
Example:

"2"

minimumAmount
string
required
Example:

"100"

segmentId
string
required
Example:

"00000000-0000-0000-0000-000000000000"

transactionRoute
string | null
required

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.

Example:

"00000000-0000-0000-0000-000000000000"

updatedAt
string<date-time>
required
Example:

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

waivedAccounts
string[] | null
required
Example:
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.

Example: