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.
GET {RESTOMENUM_BASE}/plugin-api/payment-methods/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.payment_methods:read (config; satış orders:read'ten ayrı).{
"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 }
]
}| Alan | Tip | Açıklama |
|---|---|---|
| id | string | Yöntem id'si (sipariş ödemesindeki yöntem referansıyla eşleşir) |
| title | string | Yöntem adı (Nakit, Kredi Kartı…) |
| description | string | Açıklama (boş olabilir) |
| cash | boolean | Nakit yöntemi mi |
| noreport | boolean | Rapor dışı tutulan yöntem mi |
users (yöntemi kullanabilen personel uid listesi = iç erişim kontrolü) ASLA dönmez.İç alanlar (c/u timestamp) da dönmez.| message | HTTP | Anlam |
|---|---|---|
| plugin.scope.denied | 200 | payment_methods:read onaylı değil |
| unauthorized | 401 | Geçersiz/eksik install key |