Tokens
Tokens are the service unit for features that require them. Every balance change must have a transaction and an audit record.
Token transfers
- Enter the recipient and the amount.
- Send the OTP.
- Verify the OTP and the balance.
- Run the transfer atomically.
- Save the history for both the sender and the recipient.
Coupons
- Validate the code, validity period, quota, and user eligibility.
- Prevent duplicate redemptions.
- Record which operator created or changed each coupon.
History
Token and redemption history must be filterable and must not be deleted without an audit policy.