Bu endpoint ile daha önce oluşturmuş olduğunuz bütün destek biletlerini görebilirsiniz.
GET https://api.ni.net.tr/v2/tickets
Herhangi bir parametre göndermenize gerek yoktur.
{
"status": true,
"message": "Ticket list",
"error": null,
"data": [
{
"id": 00001,
"date": "2023-11-18 10:30:09",
"message": "Destek talebi mesaj.\n\n-----------------\nIP Adresiniz: 127.0.0.1",
"status": "Kapalı",
"attachment": "",
"lastreply": "2023-11-18 10:30:09",
"replies": []
},
{
"id": 00002,
"date": "2024-04-24 16:21:13",
"message": "Destek talebi mesaj.\n\n-----------------\nIP Adresiniz: 127.0.0.1",
"status": "Kapalı",
"attachments": "",
"lastreply": "2024-04-24 17:36:30",
"replies": [
{
"id": 00111,
"admin": "Admin Test",
"user": "User Test",
"date": "2024-04-24 16:32:14",
"message": "Destek talebi yanıt mesajı.\n\n-----------------\r\n\r\nBilginize sunar, iyi çalışmalar dileriz.\r\n\r\n______\r\n\r\nNetinternet - Teknik Birim",
},
{
"id": 00112,
"admin": " ",
"user": "User Test",
"date": "2024-04-24 17:36:30",
"message": "Teşekkürler.",
}
],
}
]
}
Bu endpoint ile yeni bir destek talebi oluşturabilirsiniz.
POST https://api.ni.net.tr/v2/tickets/create
Departman id numaraları;
| Departman | ID |
|---|---|
| Sunucu İşlemleri | 3 |
| Diğer İşlemler | 10 |
| Veri Merkezi İşlemleri | 14 |
| Satış / Pazarlama | 15 |
| Cari İşlemler | 20 |
| Kargo İşlemi | 21 |
| Bilgi Güvenliği - ESB | 22 |
| Abuse | 23 |
Parametreler;
| Parametre | Tip | Açıklama | Gereklilik |
|---|---|---|---|
| title | string | Destek talebi başlığı. | Zorunlu |
| department | integer | İlgili departman idleri yukarıdaki departman tablosundan alınabilir. | Zorunlu |
| message | string | İletmek istediğiniz mesaj. | Zorunlu |
| service | integer | Sorun yaşadığınız hizmetin idsi. Buradan hizmetlerinizi sorgulayabilirsiniz. | Zorunlu |
| serverip | integer | Hizmet IP adresi. | Opsiyonel |
| serveruser | string | Sunucu kullanıcı adı. | Opsiyonel |
| serverpassword | integer | Sunucu şifresi. | Opsiyonel |
{
"status": true,
"message": "Support request successfully created",
"error": null,
"data": null
}
Bu endpoint ile oluşturduğunuz destek biletine cevap verebilirsiniz.
POST https://api.ni.net.tr/v2/tickets/reply
| Parametre | Tip | Açıklama | Gereklilik |
|---|---|---|---|
| id | integer | Destek talebi id'si. | Zorunlu |
| reply | string | Göndermek istediğiniz | Zorunlu |
{
"status": true,
"message": "Ticket successfully answered",
"error": null,
"data": null
}
Bu endpoint ile sahip olduğunuz destek biletlerini kapatabilirsiniz.
POST https://api.ni.net.tr/v2/tickets/:id/close
URL de bulunan tickets kısmından sonra ticket id'sini (:id şeklinde yazan yere) yazmanız gerekmektedir.
{
"status": true,
"message": "Support ticket #222542 has been successfully closed",
"error": null,
"data": null
}