Pular para o conteúdo principal
POST
Simulate fee calculation

Autorizações

Authorization
string
header
obrigatório

Bearer token authentication (format: "Bearer {token}")

Cabeçalhos

X-Request-Id
string

A unique identifier for tracing the request across services.

X-Idempotency
string

Optional idempotency key for safe retries. Matcher reads the key only from this header, and only when you send one. A request that carries a key only in X-Idempotency-Key or Idempotency-Key is refused with 400 (MTCH-0015), and nothing is processed. If the same key is sent again and the original request was already processed, the stored response is returned with X-Idempotency-Replayed: true. A malformed key returns 400, a key whose first request is still in progress returns 409, and an idempotency storage failure returns 500. These refusals are problem documents.

Parâmetros de caminho

scheduleId
string<uuid>
obrigatório

The unique identifier of the fee schedule. Schedule ID

Corpo

application/json

Fee simulation payload

currency
string
obrigatório

ISO 4217 currency code of the gross amount.

Exemplo:

"USD"

grossAmount
string
obrigatório

Gross amount to simulate fees against, as a decimal string in the given currency.

Exemplo:

"100.00"

Resposta

Fee simulation result.

currency
string
obrigatório

ISO 4217 currency code of the simulated amounts.

Exemplo:

"USD"

grossAmount
string
obrigatório

Gross amount that fees were simulated against, as a decimal string.

Exemplo:

"100.00"

items
object[] | null
obrigatório

Per-item breakdown of the simulated fees.

Maximum array length: 100
netAmount
string
obrigatório

Amount remaining after all fees, as a decimal string.

Exemplo:

"97.70"

totalFee
string
obrigatório

Sum of all item fees, as a decimal string.

Exemplo:

"2.30"