GET /plugin-api/packets/open ✓ CanlıO an AÇIK olan tüm paket/delivery hesaplarının özetini verir. Paket (telefon siparişi, Yemeksepeti/Getir/Trendyol…) oluşunca listeye düşer, teslim edilip kapanınca düşer — dönen liste anlık açık paketlerdir. Canlı dashboard / kurye-POS ekranı için.
← API Uçları · ortak kurallar (base, auth, hata zarfı) orada.
GET {RESTOMENUM_BASE}/plugin-api/packets/open
Authorization: Bearer {serverId}.{pluginId}.{secret} // install API key (token exchange)https://sandbox.plugins.restomenum.app, Production https://plugins.restomenum.app (API Uçları).Authorization: Bearer <apiKey> — token exchange'teki install API key (serverId.pluginId.secret).orders:read.Bu bir liste ucudur ve özet döner. Adisyon satırları, müşteri/adres burada DÖNMEZ. Bir paketin tam detayı için listedeki packetId ile: packets/get?packetId={packetId}.
{
"success": true,
"data": [
{
"packetId": "1780875081224",
"docNo": 3,
"entegrasyon": "packet",
"itemCount": 2,
"total": 17,
"paid": 0,
"totalDiscount": 0
}
]
}Açık paket yoksa: { "success": true, "data": [] }
entegrasyon: "packet"). Bir entegrasyon siparişinde entegrasyon "yemeksepeti"/"getir"/"trendyol"olur ve orderCode (platform sipariş kodu) dolu gelir. İleri tarihli siparişte isScheduled: true + scheduledDate dolu olur. Bu alanlar boş/undefined ise yanıtta yer almaz.| Alan | Tip | Açıklama |
|---|---|---|
| packetId | string | Paket id'si — detay için packets/get?packetId= |
| docNo | number | Adisyon/belge no |
| orderCode | string? | Opsiyonel — platform sipariş kodu (entegrasyon siparişlerinde; manuel pakette dönmez) |
| entegrasyon | string | Sipariş kanalı: packet (manuel/telefon), yemeksepeti, getir, trendyol, … |
| isScheduled | boolean? | Opsiyonel — ileri tarihli (scheduled) sipariş mi (manuel pakette dönmez) |
| scheduledDate | number? | Opsiyonel — planlanan teslim zamanı (epoch ms; yalnız isScheduled ile) |
| itemCount | number | Paketteki toplam ürün adedi |
| total | number | Toplam tutar |
| paid | number | Ödenen tutar (0 → henüz ödenmemiş) |
| totalDiscount | number | Toplam indirim |
total − paid (istemci hesaplar). paid > 0 ise kısmi ödeme alınmıştır.429 plugin.rateLimited; bkz. Limitler).| message | HTTP | Anlam |
|---|---|---|
| plugin.scope.denied | 200 | orders:read onaylı değil ({ success:false }) |
| unauthorized | 401 | Geçersiz/eksik install key |