Proje: Okul Platform · Hub: Okul Platform — Architecture
Migration Webhooks Nedir?
Okul.com (Laravel frontend) ile API arasındaki çift yönlü veri senkronizasyonu için kullanılan dahili webhook sistemi.
Yön: Frontend (okul projesi) → API
Eski sistemden API’ya geçiş süreci veya iki sistem arasındaki veri tutarlılığını sağlamak için.
Endpoint’ler
Lead Webhook’ları
POST /migration/notifications/leads/{lead}/new-user-lead
POST /migration/notifications/leads/{lead}/transferred
POST /migration/leads/{lead}/seen
POST /migration/leads/{lead}/answered-status-updated
POST /migration/notifications/leads/{lead}/created
POST /migration/notifications/leads/{lead}/stage-updated
User Webhook’ları
POST /migration/users/{user}/logged-in
POST /migration/users/deleted
Customer Webhook’ları
POST /migration/customers/{customer}/created
POST /migration/customers/{customer}/updated
POST /migration/customers/deleted
CustomerUser Webhook’ları
POST /migration/customer-users/{id}/created
POST /migration/customer-users/{id}/updated
POST /migration/customer-users/{id}/logged-in
POST /migration/customer-users/deleted
POST /migration/customer-user-schools/deleted
School Webhook’ları
POST /migration/schools/{schoolId}/update-filters
Payment Webhook’ları
POST /migration/payments/{payment}/status-updated
Migration Webhook Config
Config::MWH_NOTIFICATIONS_KEY = 'migration_webhook' — Webhook’ların aktif/pasif durumu
External Webhooks (Dış Servisler)
Ayrı route dosyası: external-webhooks.php
POST /webhooks/sonitel/inbound-call → WebhookAuthMiddleware ile korumalı
Servis
app/Services/MigrationWebhookService.php — Merkezi webhook service
Related
- api-route-structure — Route dosyaları
- api-key-integrations — Sonitel entegrasyonu
- api-lead-flow — Lead webhook’ları lead bildirimlerini tetikler