Pular para o conteúdo principal
POST
Create a fee rule

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

contextId
string<uuid>
obrigatório

The unique identifier of the reconciliation context. Context ID

Corpo

application/json

Fee rule creation payload

feeScheduleId
string
obrigatório

UUID of the fee schedule this rule applies when its predicates match.

Exemplo:

"550e8400-e29b-41d4-a716-446655440000"

name
string
obrigatório

Human-readable name of the fee rule.

Required string length: 1 - 100
Exemplo:

"BB Right-Side Rule"

predicates
object[] | null
obrigatório

Predicates (ANDed together) that a transaction's metadata must satisfy for this rule to apply.

priority
integer<int64>
obrigatório

Evaluation priority; lower numbers are evaluated first. Must be unique within the context. LEFT, RIGHT, and ANY rules share the same priority space.

Exemplo:

0

side
enum<string>
obrigatório

Side the rule applies to. LEFT and RIGHT target one reconciliation side; ANY matches transactions on either side.

Opções disponíveis:
LEFT,
RIGHT,
ANY
Exemplo:

"RIGHT"

Resposta

Successfully created fee rule.

contextId
string
obrigatório

Identifier of the context the rule belongs to.

Exemplo:

"550e8400-e29b-41d4-a716-446655440000"

createdAt
string
obrigatório

Creation timestamp in RFC 3339 format.

Exemplo:

"2025-01-15T10:30:00Z"

feeScheduleId
string
obrigatório

Identifier of the fee schedule this rule applies.

Exemplo:

"550e8400-e29b-41d4-a716-446655440000"

id
string
obrigatório

Unique identifier of the fee rule.

Exemplo:

"550e8400-e29b-41d4-a716-446655440000"

name
string
obrigatório

Human-readable name of the fee rule.

Exemplo:

"BB Right-Side Rule"

predicates
object[] | null
obrigatório

Predicates (ANDed together) that a transaction's metadata must satisfy for this rule to apply.

priority
integer<int64>
obrigatório

Evaluation priority; lower numbers are evaluated first.

Exemplo:

0

side
enum<string>
obrigatório

Side the rule applies to. LEFT and RIGHT target one reconciliation side; ANY matches transactions on either side.

Opções disponíveis:
LEFT,
RIGHT,
ANY
Exemplo:

"RIGHT"

updatedAt
string
obrigatório

Last update timestamp in RFC 3339 format.

Exemplo:

"2025-01-15T10:30:00Z"