Ödeme Yöntemleri — GET /plugin-api/payment-methods/list ✓ Canlı

Mağazanın tanımlı ödeme yöntemlerini (Nakit, Kredi Kartı, Yemek Çeki…) döner. Scope: payment_methods:read (config; satış orders:read'ten ayrı). Tek seferlik snapshot; değişiklikler için payment_method.* event'leri.

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

İstek

GET {RESTOMENUM_BASE}/plugin-api/payment-methods/list
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ı).
  • Parametre yok — tüm yöntemler döner.
  • Auth: Authorization: Bearer <apiKey>token exchange'teki install API key.
  • Scope: payment_methods:read (config; satış orders:read'ten ayrı).

Yanıt

Gerçek 200 örneği
{
  "success": true,
  "data": [
    { "id": "ab-12", "title": "Nakit",       "description": "",          "cash": true,  "noreport": false },
    { "id": "cd-34", "title": "Kredi Kartı",  "description": "POS cihazı", "cash": false, "noreport": false }
  ]
}

Alanlar

AlanTipAçıklama
idstringYöntem id'si (sipariş ödemesindeki yöntem referansıyla eşleşir)
titlestringYöntem adı (Nakit, Kredi Kartı…)
descriptionstringAçıklama (boş olabilir)
cashbooleanNakit yöntemi mi
noreportbooleanRapor dışı tutulan yöntem mi

Sızıntı önlemi

users (yöntemi kullanabilen personel uid listesi = iç erişim kontrolü) ASLA dönmez.İç alanlar (c/u timestamp) da dönmez.

Hatalar

messageHTTPAnlam
plugin.scope.denied200payment_methods:read onaylı değil
unauthorized401Geçersiz/eksik install key