Skip to main content
POST
Create 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)

Body

application/json
enable
boolean | null
required
feeGroupLabel
string
required
Example:

"Pacote Padrão"

fees
object
required
maximumAmount
string
required
Example:

"1000.20"

minimumAmount
string
required
Example:

"100.00"

segmentId
string | null
required
Example:

"00000000-0000-0000-0000-000000000000"

description
string
Example:

"Pacote de taxas administrativas padrão"

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. Omit it to apply the package whatever the metadata.

Example:
transactionRoute
string

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. Omit it, or send it empty, to apply the package to every payment.

Example:

"00000000-0000-0000-0000-000000000000"

waivedAccounts
string[]
Example:

Response

Created

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: