Kategori Detayı — GET /plugin-api/categories/get ✓ Canlı

Tek bir kategorinin detayı — örn. category.* event'indeki id'yi zenginleştirmek için. Şekil categories/list'teki öğeyle birebir aynıdır.

← API Uçları · ortak kurallar (base, auth, hata zarfı) orada.

İstek

GET {RESTOMENUM_BASE}/plugin-api/categories/get?id={categoryId}
Authorization: Bearer {serverId}.{pluginId}.{secret}     // install API key (token exchange)
  • Base: Sandbox https://sandbox.plugins.restomenum.app, Production https://plugins.restomenum.app (API Uçları).
  • Param: id (kategori id'si — ürünün category alanı / event data.id).
  • Auth: Authorization: Bearer <apiKey>token exchange'teki install API key.
  • Scope: products:read.

Yanıt

Gerçek 200 örneği
{
  "success": true,
  "data": {
    "id": "a0-0c",
    "title": "SOĞUK İÇECEKLER",
    "image": "https://d37x2wx7jj7xm7.cloudfront.net/server/SM9M.../category/.../original.jpeg",
    "color": "#3f51b5",
    "rank": 2,
    "active": true
  }
}

data alanları categories/list'tekiyle aynıdır: id, title, image (CDN|null), color (hex), rank, active, languages. İç alanlar (qrHide/webstoreHide) dönmez.

Hatalar

messageHTTPAnlam
plugin.categories.missingParams200id verilmedi
plugin.categories.notFound200Kategori yok
plugin.scope.denied200products:read onaylı değil
unauthorized401Geçersiz/eksik install key