Pular para o conteúdo principal
POST
Create 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)

Corpo

application/json
enable
boolean | null
obrigatório
feeGroupLabel
string
obrigatório
Exemplo:

"Pacote Padrão"

fees
object
obrigatório

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
obrigatório
Exemplo:

"1000.20"

minimumAmount
string
obrigatório
Exemplo:

"100.00"

segmentId
string | null
obrigatório
Exemplo:

"00000000-0000-0000-0000-000000000000"

description
string
Exemplo:

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

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

Exemplo:

"00000000-0000-0000-0000-000000000000"

waivedAccounts
string[]
Exemplo:

Resposta

Created

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