Event Kataloğu

Eklentinin webhook ile abone olabileceği tüm event tipleri. Bir event'e abone olmak için manifest'te events[] listesine ekle ve events:subscribe scope'unu iste. Bir event'e tıkla → örnek payload açılır.

Her teslim standart bir envelope ile gelir: { id, type, version, environment, tenantId, occurredAt, data }. Aşağıdaki örneklerde yalnız data event'e özeldir. version bir string'dir ("1", sayı değil); environment "sandbox" | "production"'dır (imzalı gövdede; test mağazası = sandbox — header'daki X-Restomenum-Environment imzasız kolaylık kopyasıdır, gövdedekini kullan); occurredAt epoch milisaniyedir (imza t= ise saniye); id idempotency anahtarıdır (retry'da sabit). Teslim biçimi ve imza için /webhook ve imza şeması.
✓ Canlı = şu an akan event; ⏳ Yakında = yayında otomatik akmaya başlayacak. PII alanları (ad/telefon/adres) yalnız ilgili customers:read scope'unda gönderilir.
Kurulum/abonelik lifecycle event'leri (app.installed, subscription.*, app.uninstalled) abone olmadan aynı uca düşer → Lifecycle Webhook’ları.

Eventler

Masa açıldıtable.createdscope: orders:read✓ Canlı
Masa kapatıldıtable.closedscope: orders:read✓ Canlı
Paket oluşturuldupacket.createdscope: orders:read✓ Canlı
Paket kapatıldıpacket.closedscope: orders:read✓ Canlı
Paket iptal edildi (tam iptal)packet.cancelledscope: orders:read✓ Canlı
Ürün oluşturulduproduct.createdscope: products:read✓ Canlı
Ürün güncellendiproduct.updatedscope: products:read✓ Canlı
Ürün silindiproduct.deletedscope: products:read✓ Canlı
Kategori oluşturulducategory.createdscope: products:read✓ Canlı
Kategori güncellendicategory.updatedscope: products:read✓ Canlı
Kategori silindicategory.deletedscope: products:read✓ Canlı
Personel oluşturulduuser.createdscope: users:read✓ Canlı
Personel güncellendiuser.updatedscope: users:read✓ Canlı
Personel silindiuser.deletedscope: users:read✓ Canlı
Müşteri oluşturulducustomer.createdscope: customers:read✓ Canlı
Müşteri güncellendicustomer.updatedscope: customers:read✓ Canlı
Cari hesaba sipariş yazıldıcustomer.order_addedscope: customers:read✓ Canlı
Cari hesaptan tahsilat yapıldıcustomer.payment_addedscope: customers:read✓ Canlı
Ödeme yöntemi oluşturuldupayment_method.createdscope: payment_methods:read✓ Canlı
Ödeme yöntemi güncellendipayment_method.updatedscope: payment_methods:read✓ Canlı
Ödeme yöntemi silindipayment_method.deletedscope: payment_methods:read✓ Canlı
Malzeme oluşturulduingredient.createdscope: ingredients:read✓ Canlı
Malzeme güncellendiingredient.updatedscope: ingredients:read✓ Canlı
Malzeme silindiingredient.deletedscope: ingredients:read✓ Canlı
Satın alma tamamlandı (kilit açıldı)purchase.grantedscope: purchases:read✓ Canlı
Mesaj teslim durumu (yalnız istek sahibine)messaging.message.statusscope: capability:messaging.send:consume⏳ Yakında
Fatura durumu (yalnız istek sahibine)invoice.statusscope: capability:invoice.issue:consume⏳ Yakında