Unsubscribe Handler
Component Detail
Service Layer
low complexity
backend
0
Dependencies
0
Dependents
0
Entities
0
Integrations
Description
Manages opt-out requests for marketing-adjacent emails in compliance with Norwegian Markedsføringsloven, maintaining a per-user suppression list while keeping transactional messages exempt.
unsubscribe-handler
Responsibilities
- Process unsubscribe link clicks and persist updated communication preferences for the user
- Maintain a suppression list blocking future marketing-adjacent emails to opted-out users
- Ensure transactional messages such as expense decisions and assignment receipts bypass suppression
Interfaces
unsubscribe(userId, emailCategory)
isUnsubscribed(userId, emailCategory)
resubscribe(userId, emailCategory)
getSuppressedCategories(userId)