Service Layer high complexity backend
0
Dependencies
0
Dependents
5
Entities
0
Integrations

Description

Handles bidirectional synchronization between the app and the Consio member management system via REST API with API key authentication. Runs as a scheduled Supabase Edge Function supporting nightly full sync and webhook-based delta sync where supported by Consio.

Feature: Member System Integration

consio-sync-service

Responsibilities

  • Authenticate with Consio REST API using API key
  • Execute nightly full membership sync
  • Process delta sync events via webhooks where available
  • Resolve conflicts using Consio as source of truth for membership status
  • Write back personnummer from Vipps SSO to Consio records

Interfaces

runFullSync(organizationId)
processDeltaSync(webhookPayload)
syncMemberRecord(memberId)
writebackPersonnummerToSource(memberId, personnummer)
getLastSyncTimestamp(organizationId)
handleConflict(localRecord, remoteRecord)
validateApiKey()
fetchMembershipStatus(memberId)