Saltar al contenido principal
GET
/
v1
/
config
/
fee-rules
/
{feeRuleId}
Get a fee rule
curl --request GET \
  --url https://matcher.sandbox.lerian.net/v1/config/fee-rules/{feeRuleId} \
  --header 'Authorization: Bearer <token>'
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "contextId": "550e8400-e29b-41d4-a716-446655440000",
  "feeScheduleId": "550e8400-e29b-41d4-a716-446655440000",
  "name": "BB Right-Side Rule",
  "side": "RIGHT",
  "priority": 0,
  "predicates": [
    {
      "field": "institution",
      "operator": "EQUALS",
      "value": "Banco do Brasil",
      "values": [
        "<string>"
      ]
    }
  ],
  "createdAt": "2025-01-15T10:30:00Z",
  "updatedAt": "2025-01-15T10:30:00Z"
}

Autorizaciones

Authorization
string
header
requerido

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

Encabezados

X-Request-Id
string

A unique identifier for tracing the request across services.

Parámetros de ruta

feeRuleId
string<uuid>
requerido

The unique identifier of the fee rule.

Respuesta

Successfully retrieved fee rule

A fee rule that maps transaction metadata to a fee schedule within a reconciliation context

id
string<uuid>

Unique identifier for the fee rule

Ejemplo:

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

contextId
string<uuid>

Reconciliation context this rule belongs to

Ejemplo:

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

feeScheduleId
string<uuid>

Fee schedule applied when this rule matches

Ejemplo:

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

name
string

Display name for the fee rule

Ejemplo:

"BB Right-Side Rule"

side
enum<string>

Which transaction side this rule applies to

Opciones disponibles:
LEFT,
RIGHT,
ANY
Ejemplo:

"RIGHT"

priority
integer

Evaluation priority (lower numbers are evaluated first; LEFT, RIGHT, and ANY rules share the same priority space)

Ejemplo:

0

predicates
object[]

Conditions that must all match for this rule to apply

createdAt
string<date-time>

Creation timestamp in RFC 3339 format

Ejemplo:

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

updatedAt
string<date-time>

Last update timestamp in RFC 3339 format

Ejemplo:

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