Skip to content

Member Onboarding & Communications Engine

The Member Onboarding & Communications Engine guides new members through statutory accession workflows, manages portal access tokens, and orchestrates multi-channel notifications.


Functions Matrix

Function NameInbound TriggerCore ResponsibilityCommunication Channel
grant-portal-accessAdmin POSTGenerates user record, sets tenant claims, sends portal linkMagic Link / Email
member-onboarding-statusClient GETComputes completion checklist across 6 verification milestonesJSON Response
send-onboarding-invitationAdmin POST / BatchSends invitation email with cooperative branding & tokenTransactional Email (SMTP)
send-correction-request-noticeReviewer ActionNotifies applicant of missing or invalid declaration dataTransactional Email (SMTP)
send-rejection-noticeBoard Officer ActionSends formal accession rejection with reason notesTransactional Email (SMTP)

Onboarding Stepper Milestone Model

The member-onboarding-status function evaluates member readiness against 6 key milestones:

flowchart TD
    M1["1. Account Activated (Auth)"] --> M2["2. Personal / Entity Data Verified"]
    M2 --> M3["3. PPE Meter Identification Linked"]
    M3 --> M4["4. Declaration Signed & Uploaded"]
    M4 --> M5["5. Board Review & Approval"]
    M5 --> M6["6. Telemetry Hardware Connected"]
    M6 --> Ready["🎉 Fully Active Cooperative Member"]

Status Payload Example

{
"member_id": "9f8e7d6c-5b4a-3f2e-1d0c-9a8b7c6d5e4f",
"coop_id": "b1b2c3d4-e5f6-7a8b-9c0d-1e2f3a4b5c6d",
"completion_percentage": 66,
"milestones": {
"account_created": { "completed": true, "timestamp": "2026-09-10T14:20:00Z" },
"identity_verified": { "completed": true, "timestamp": "2026-09-11T09:15:00Z" },
"meter_ppe_linked": { "completed": true, "ppe": "PL1234567890123456" },
"declaration_signed": { "completed": true, "document_id": "decl_992" },
"board_approved": { "completed": false, "pending_officer_review": true },
"hardware_active": { "completed": false, "reason": "Awaiting meter registration" }
},
"next_required_action": "AWAITING_BOARD_APPROVAL"
}

Transactional Notifications

All communication dispatchers (send-onboarding-invitation, send-correction-request-notice, send-rejection-notice) share an enterprise notification pipeline:

Features

  • Template Engine: Localized Polish email templates supporting dynamic cooperative logo injection, colors, and legal footer notes.
  • Audit Trail: Every email dispatched is logged in the notification_logs table with delivery status, message ID, and timestamp.
  • Resilience: Configured with automatic exponential backoff retry in case of transient SMTP rate-limiting or network timeouts.