GET /plugin-api/categories/list ✓ CanlıMağazanın tüm ürün kategorilerini döndürür (menü ağacı / gruplama için). Aktif + pasif hepsi gelir. Kategori id'si ürünün category alanıyla eşleşir → ürünleri kategorilere bağlarsın.
← API Uçları · ortak kurallar (base, auth, hata zarfı) orada.
GET {RESTOMENUM_BASE}/plugin-api/categories/list
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).products:read (ürünlerle aynı; kategori menü domain'inin parçası, PII yok).{
"success": true,
"data": [
{
"id": "a0-62",
"title": "KAHVALTI",
"image": "https://d37x2wx7jj7xm7.cloudfront.net/server/SM9M.../category/.../original.jpeg",
"color": "#ffeb3b",
"rank": 11,
"active": true
},
{
"id": "fa-34",
"title": "SICAK KAHVELER",
"image": "https://d37x2wx7jj7xm7.cloudfront.net/server/SM9M.../category/.../original.jpeg",
"color": "#607D8B",
"rank": 1,
"active": true
}
]
}| Alan | Tip | Açıklama |
|---|---|---|
| id | string | Kategori id'si — ürünün category alanıyla eşleşir |
| title | string | Kategori adı |
| image | string | null | Kategori görseli (CDN URL'i; yoksa null) |
| color | string | Renk kodu (hex) |
| rank | number | Sıralama (menüde gösterim sırası) |
| active | boolean | Aktif mi |
| message | Anlam |
|---|---|
| plugin.scope.denied | products:read onaylı değil |
| unauthorized (HTTP 401) | Geçersiz/eksik install key |
qrHide, webstoreHide gibi iç alanlar dönmez.category = kategori id).