Skip to main content
PUT
Update or create fee settings

Update Fee Setting

Create or update a fee setting. Uses upsert - creates if not exists, updates if exists.

Endpoint

Authentication

string
required
Bearer token (Admin JWT)

Request Body

string
required
Transaction type
string
required
Party type: sender, recipient, agent, processor
string
required
Fee calculation: percentage or flat
number
required
Fee value (percentage 0-100 or flat amount in SLE)
boolean
Apply fee on debit transactions
boolean
Apply fee on credit transactions

Example

Validation

  • Percentage fee cannot exceed 100%
  • Fee value must be >= 0

Errors

Authorizations

Authorization
string
header
required

API Key for third-party integrations (WhatsApp, Smart PAY, VULT). Format: 'Bearer olive_live_xxxxxxxxxxxxx'

Body

application/json

Fee settings configuration

fee_type
enum<string>
required
Available options:
percentage,
flat
party_type
string
required
transaction_type
string
required
credit_enabled
boolean
debit_enabled
boolean
fee_value
number
Required range: x >= 0

Response

OK

The response is of type object.