Overview

The Tariffs API provides functionality for managing:

  • Tariff definitions
  • Fee range configurations
  • Fee calculations
  • Multi-currency pricing
  • Channel-based fees

Core Concepts

Fee Calculation Methods

MethodDescriptionFormula
fixedFixed amount feefee = fixed_fee
percentagePercentage of amountfee = amount * (percent_fee/100)
greaterGreater of fixed/percentfee = max(fixed_fee, percent_fee)
lesserLesser of fixed/percentfee = min(fixed_fee, percent_fee)
sumSum of fixed and percentfee = fixed_fee + percent_fee

Fee Range Properties

FieldDescription
range_startStarting amount
range_endEnding amount
fixed_feeFixed fee amount
percent_feePercentage fee
min_feeMinimum fee
max_feeMaximum fee

Velocity Controls

TypeDescription
transaction_countLimit by count
amountLimit by value

Time Intervals

  • once: One-time limit
  • daily: Daily limit
  • weekly: Weekly limit
  • monthly: Monthly limit
  • annually: Annual limit

Validation Rules

Amount Rules

  • Non-negative values
  • Non-overlapping ranges
  • Valid date ranges

Fee Rules

  • Min fee ≤ Max fee
  • Valid calculation method
  • Active status check

Security Requirements

  • Tariff updates need approval
  • Range changes are audited
  • Calculations are logged
  • Version control applied

See individual endpoint documentation for detailed request/response formats and examples.