Skip to main content
Fees are opt-in. A schedule applies only to an entry that names it in feeSchedule, so a product that posts its own fee legs is left alone.

Schedules

A schedule is per code and currency. Setting one is console work: a person proposes it and a second person approves. It is not in force until then.

Preview

This schedule charges flat plus 0.5%, within its floor and ceiling.
Nothing posts. On this schedule, an amount of 10000 gives 1500, the floor, and 100000000 gives 10000, the ceiling. An inactive or unknown schedule gets NOT_FOUND.

Charge it

Add feeSchedule to the entry, and send balanced legs for the principal alone.
The fee is added to the first debit leg and credited to the schedule’s income account, and it is recorded on the entry’s metadata. This entry posts a debit of 202000 on the wallet, a credit of 200000 on settlement and a credit of 2000 on INC:FEE:NGN. The wallet must be able to pay the principal and the fee. To charge the fee to someone else, make that account’s leg the first debit.