Bu endpoint ile sahip olduğunuz bütün alan adlarını listeleyebilirsiniz.
GET https://api.ni.net.tr/v1/domains
Göndermeniz gereken herhangi bir parametre yoktur.
{
"data": [
{
"id": 00000000,
"type": "Transfer",
"registrationdate": "2018-12-21 00:00:00",
"domain": "test.com",
"firstpaymentamount": "10.02",
"recurringamount": "10.02",
"registrationperiod": 1,
"expirydate": "-0001-11-30 00:00:00",
"status": "Pending",
"nextduedate": "2018-12-21 00:00:00",
"idprotection": 0,
"donotrenew": 0,
"autopayment": null
},
{
"id": 00000000,
"type": "Transfer",
"registrationdate": "2018-12-21 00:00:00",
"domain": "test2.com",
"firstpaymentamount": "10.02",
"recurringamount": "10.02",
"registrationperiod": 1,
"expirydate": "-0001-11-30 00:00:00",
"status": "Pending",
"nextduedate": "2018-12-21 00:00:00",
"idprotection": 0,
"donotrenew": 0,
"autopayment": null
},
{
"id": 0000000,
"type": "Register",
"registrationdate": "2018-12-21 00:00:00",
"domain": "test3.com",
"firstpaymentamount": "10.02",
"recurringamount": "10.02",
"registrationperiod": 1,
"expirydate": "-0001-11-30 00:00:00",
"status": "Pending",
"nextduedate": "2018-12-21 00:00:00",
"idprotection": 0,
"donotrenew": 0,
"autopayment": null
}
]
}
Yukarıdaki sorgu da aldığımız alan adı idlerini kullanarak tek bir ürün için arama yapabilirsiniz.
GET https://api.ni.net.tr/v1/domains/00000000
Domains kısmından sonra sahip olduğunuz alan adının id numarasını yazmanız gerekmektedir.
{
"data": {
"id": 00000000,
"type": "Register",
"registrationdate": "2019-01-30 00:00:00",
"domain": "test.net",
"firstpaymentamount": "13.56",
"recurringamount": "13.56",
"registrationperiod": 1,
"expirydate": "-0001-11-30 00:00:00",
"status": "Pending",
"nextduedate": "2018-02-07 00:00:00",
"idprotection": 0,
"donotrenew": 0,
"autopayment": null
}
}