Saltar al contenido principal
POST
Create 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)

Cuerpo

application/json
enable
boolean | null
requerido
feeGroupLabel
string
requerido
Ejemplo:

"Pacote Padrão"

fees
object
requerido

Fees keyed by fee key. A key must match ^[a-z][a-zA-Z0-9]*$ (a lowercase ASCII letter, then ASCII letters and digits) and is stored and returned verbatim; any other key is refused with 400.

maximumAmount
string
requerido
Ejemplo:

"1000.20"

minimumAmount
string
requerido
Ejemplo:

"100.00"

segmentId
string | null
requerido
Ejemplo:

"00000000-0000-0000-0000-000000000000"

description
string
Ejemplo:

"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.

Ejemplo:
rounding
object

Rounds every fee this package charges to one scale, whatever the asset. Omit it to charge unrounded amounts.

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.

Ejemplo:

"00000000-0000-0000-0000-000000000000"

waivedAccounts
string[]
Ejemplo:

Respuesta

Created

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