Bu endpoint ile sahip olduğunuz bütün ürünleri listeleyebilirsiniz.
GET https://api.ni.net.tr/v2/services
Herhangi bir parametre göndermenize gerek yoktur.
{
"status": true,
"message": "Service list",
"error": null,
"data": [
{
"id": 00001,
"product": "SSD VDS II",
"recurring_amount": "23.50$",
"first_amount": "16.45$",
"cycle": "1",
"next_due_date": "2024-09-16 17:53:26",
"status": "Pending"
},
{
"id": 00002,
"product": "Başlangıç",
"recurring_amount": "1.59$",
"first_amount": "1.59$",
"cycle": "1",
"next_due_date": "2024-09-16 17:53:26",
"status": "Pending"
},
{
"id": 00003,
"product": "SSD VDS I",
"recurring_amount": "17.50$",
"first_amount": "12.25$",
"cycle": "1",
"next_due_date": "2024-10-16 19:11:55",
"status": "Active"
}
]
}
Yukarıdaki sorguda aldığımız ürün id'lerini kullanarak tek bir ürün için arama yapabilirsiniz.
GET https://api.ni.net.tr/v2/services/00001
Services kısmından sonra sahip olduğunuz ürünün id numarasını yazmanız gerekmektedir.
{
"status": true,
"message": "Service detail",
"error": null,
"data": {
"id": 00001,
"product": "SSD VDS II",
"recurring_amount": "23.50$",
"first_amount": "16.45$",
"cycle": "1",
"next_due_date": "2024-09-16 17:53:26",
"status": "Pending"
}
}