GET /store/{store-code}/terminal — Terminal Listesi
📋 Genel Bilgi
Belirli bir mağazadaki tüm terminalleri listeler. Her terminal için performans metrikleri ve haftalık doğrulama verileri döner.
Base URL: {{url}}/store/{{store_code}}/terminal
Method: GET
Content-Type: application/json
🔐 Headers
| Header | Value |
|---|---|
| Authorization | Bearer {{masked_jwt_5}} |
📥 URL Parametreleri
| Parametre | Tip | Açıklama | Örnek |
|---|---|---|---|
store-code | string | Mağaza kodu (path param) | "mobildev-mq" |
✅ Response — 200 OK
{
"RecordCount": 3,
"Result": [
{
"name": "Terminal 1 Updated",
"code": "TERM-001",
"status": "active",
"terminalKey": "t5ufKwlji",
"lastAuthAt": 0,
"weeklyAuthData": {
"previousWeek": 0,
"currentWeek": 3,
"dailyData": [2, 1]
},
"createdAt": 1783515976,
"updatedAt": 1783932455
},
{
"name": "Terminal 2",
"code": "TERM-002",
"status": "active",
"terminalKey": "Z10pqPxG",
"lastAuthAt": 0,
"weeklyAuthData": {
"previousWeek": 0,
"currentWeek": 7,
"dailyData": [7]
},
"createdAt": 1783932453,
"updatedAt": 1783973218
},
{
"name": "Terminal 3",
"code": "TERM-003",
"status": "inactive",
"terminalKey": "6IHDpGqe",
"lastAuthAt": 0,
"weeklyAuthData": {},
"createdAt": 1783932483,
"updatedAt": 1783932483
}
]
}
Response Alanları (Terminal)
| Alan | Tip | Açıklama |
|---|---|---|
RecordCount | integer | Toplam terminal sayısı |
Result[] | array | Terminal listesi |
Result[].name | string | Terminal adı |
Result[].code | string | Terminal kodu |
Result[].status | string | Durum (active, inactive) |
Result[].terminalKey | string | Terminal benzersiz anahtarı |
Result[].lastAuthAt | integer | Son doğrulama zamanı (Unix timestamp) |
Result[].weeklyAuthData.previousWeek | integer | Geçen hafta doğrulama sayısı |
Result[].weeklyAuthData.currentWeek | integer | Bu hafta doğrulama sayısı |
Result[].weeklyAuthData.dailyData[] | array | Günlük doğrulama verileri (array) |
Result[].createdAt | integer | Oluşturma zamanı (Unix timestamp) |
Result[].updatedAt | integer | Güncelleme zamanı (Unix timestamp) |
📝 Notlar
weeklyAuthData.dailyData[]→ Gün gün doğrulama sayıları (array uzunluğu 7'ye kadar).status: inactiveterminallerdeweeklyAuthDataboş döner.lastAuthAt: 0→ Terminal hiç doğrulama almadı.