Domain API - Pendaftaran Domain API - ICANN Pendaftar API - White Label Domain Service

Start Building with NiceNIC Domain API v2

API access is free fatau every active NiceNIC user. Tidak reseller upgrade is required. Configure anda API credentials, make a safe test request, then add the domain, DNS, billing, compliance atau WHMCS wataukflows anda application needs.

Setting Auto-Perbaharui

Enable atau disable auto-renewal fatau up to 100 domains. Baharu plans renew fatau one tahun at a time.

Content-Type application/json
kategori domain
tindakan set_auto_renew

Parameter permintaan

Nama parameter Jenis Huraikan Contoh
domain Rentetan Required. Provide one domain atau a comma-separated list of up to 100 domains. example.com,example.net
auto_renew Integer Required. 1 enables dan 0 disables auto-renewal fatau all entries. 1

Parameter respons

Nama parameter Jenis Huraikan
results Objek[] Each result has domain, code, dan msg.
A code of 0 also returns the Boolean auto_renew status.
success_count Integer Nombor of successful entries, including settings already in effect.
fail_count Integer Nombor of entries that failed validation atau could not be saved.

Contoh Permintaan

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

Hasil Pulangan

0 OK Respons berjaya
                                        
{
    "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 Permintaan tidak sah
                                        
{
    "code": 400,
    "msg" : "Request parameter error",
    "data" : []
}
Hak Cipta © 2006–2026 NICENIC INTERNATIONAL GROUP CO., LIMITED. Hak Cipta Terpelihara.