.. include:: /Includes.rst.txt .. _feature-1791370937: =============================== Feature: Redeeming bonus points =============================== Description =========== An employee redeems their own bonus points with ``POST /api/v1/employees/{id}/bonus-points/redemptions``: at least the company's minimum, at most the available points. The request reserves the points at once, fixes the amount at the company's point value of that moment and goes to the approval engine as ``bonusPointRedemption``; without a rule, HR decides. An approval books the redemption on the ledger and publishes ``BonusPointsRedeemed`` with the amount and the decision date for payroll; a rejection or withdrawal frees the points. The employee is told through ``employee.bonusRedemptionDecided``. A subject type of the approval engine may now name its default step (``SubjectTypeTraits::$defaultStep``). Impact ====== Run the database migrations. .. index:: Backend, Database, API, package:adsum-core