Domen API - Domen Qeydiyyatı API - ICANN Qeydiyyatçı API - White Label Domen Service

Start Building with NiceNIC Domen API v2

API access is free fvə ya every active NiceNIC user. Xeyr reseller upgrade is required. Configure sizin API credentials, make a safe test request, then add the domen, DNS, billing, compliance və ya WHMCS wvə yakflows sizin application needs.

Setting Auto-Yenilə

Enable və ya disable auto-renewal fvə ya up to 100 domens. Yeni plans renew fvə ya one il at a time.

Content-Type application/json
kateqoriya domain
əməl set_auto_renew

Sorğu parametrləri

Parametrin adı Növ Təsvir et Nümunə
domain Sətr Required. Provide one domen və ya a comma-separated list of up to 100 domens. example.com,example.net
auto_renew Tam ədəd Required. 1 enables və 0 disables auto-renewal fvə ya all entries. 1

Cavab parametrləri

Parametrin adı Növ Təsvir et
results Obyekt[] Each result has domain, code, və msg.
A code of 0 also returns the Bulean auto_renew status.
success_count Tam ədəd Sayı of successful entries, including settings already in effect.
fail_count Tam ədəd Sayı of entries that failed validation və ya could not be saved.

Sorgu Nümunəsi

                                    
{
    curl -g -X POST 'https://api.nicenic.net/v2/?category=domain&action=set_auto_renew&domain={domain}&auto_renew=1'
      -H "Authorization: username:api_secret"
      -H "Content-Type: application/json"
}

Nəticənin qayıdışı

0 OK Uğurlu cavab
                                        
{
    "code": 0,
    "msg" : "success",
    "data" : {
        "results" : [
            {
                "domain" : "example.com",
                "code" : 0,
                "msg" : "success",
                "auto_renew" : true
            },
            {
                "domain" : "example.net",
                "code" : 404,
                "msg" : "Domain not found"
            }
        ],
        "success_count" : 1,
        "fail_count" : 1        
    }
}
400 Yanlış Sorğu
                                        
{
    "code": 400,
    "msg" : "Request parameter error",
    "data" : []
}
Müəllif Hüququ © 2006–2026 NICENIC INTERNATIONAL GROUP CO., LIMITED. Bütün Hüquqlar Qorunur.