Домен API - Доменді тіркеу API - ICANN Тіркеуші API - White Label Домен Service

Start Building with NiceNIC Домен API v2

API access is free fнемесе every active NiceNIC user. Жоқ reseller upgrade is required. Configure сіздің API credentials, make a safe test request, then add the домен, DNS, billing, compliance немесе WHMCS wнемесеkflows сіздің application needs.

Setting Auto-Жаңарту

Enable немесе disable auto-renewal fнемесе up to 100 доменs. Жаңа plans renew fнемесе one жыл at a time.

Content-Type application/json
санат domain
әрекет set_auto_renew

Сұрау параметрлері

Параметр атауы Түрі Сипаттама Мысал
domain Жол Required. Provide one домен немесе a comma-separated list of up to 100 доменs. example.com,example.net
auto_renew Бүтін сан Required. 1 enables және 0 disables auto-renewal fнемесе all entries. 1

Жауап параметрлері

Параметр атауы Түрі Сипаттама
results Объект[] Each result has domain, code, және msg.
A code of 0 also returns the Булев auto_renew status.
success_count Бүтін сан Нөмір of successful entries, including settings already in effect.
fail_count Бүтін сан Нөмір of entries that failed validation немесе could not be saved.

Сұрау үлгісі

                                    
{
    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"
}

Нәтижені қайтару

0 OK Сәтті жауап
                                        
{
    "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 Қате сұрау
                                        
{
    "code": 400,
    "msg" : "Request parameter error",
    "data" : []
}
Авторлық құқық © 2006–2026 NICENIC INTERNATIONAL GROUP CO., LIMITED. Барлық құқықтар қорғалған.