875 B
875 B
CLUB-001 — Documentation notes
New backend endpoints
GET /club/configPOST /club/joinGET /club/meGET /club/movementsGET /admin/club/settingsPATCH /admin/club/settings
Contract notes
- Anonymous Club identity is device-based for now.
- Client receives the raw
deviceTokenonce; database stores onlydevice_token_hash. - The backend also persists the token in cookie
mdv_cluband accepts it again via cookie orx-club-device-tokenheader. club_transactionsis the source of truth;club_members.current_balance_centsis a transactional cache.- Cashback is configurable through
store_settings(club_cashback_bps) instead of hardcoded constants.
Scope boundary
- CLUB-001 ships backend foundations only.
- PWA screens, digital card UI, TPV integration, recovery flow and account linking remain for later CLUB phases.