Verkkotunnus API - Domainin rekisteröinti API - ICANN Rekisterinpitäjä API - White Label Verkkotunnus Service

Start Building with NiceNIC Verkkotunnus API v2

API access is free ftai every active NiceNIC user. Ei reseller upgrade is required. Configure sinun API credentials, make a safe test request, then add the verkkotunnus, DNS, billing, compliance tai WHMCS wtaikflows sinun application needs.

Setting Auto-Uusinta

Enable tai disable auto-renewal ftai up to 100 verkkotunnuss. Uusi plans renew ftai one vuosi at a time.

Sisältötyyppi application/json
kategoria domain
toiminto set_auto_renew

Pyyntöparametrit

Parametrin nimi Tyyppi Kuvaus Esimerkki
domain Merkkijono Required. Provide one verkkotunnus tai a comma-separated list of up to 100 verkkotunnuss. example.com,example.net
auto_renew Kokonaisluku Required. 1 enables ja 0 disables auto-renewal ftai all entries. 1

Vastausparametrit

Parametrin nimi Tyyppi Kuvaus
results Objekti[] Each result has domain, code, ja msg.
A code of 0 also returns the Boolen auto_renew status.
success_count Kokonaisluku Numero of successful entries, including settings already in effect.
fail_count Kokonaisluku Numero of entries that failed validation tai could not be saved.

Pyynnön esimerkki

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

Palautettu tulos

0 OK Onnistunut vastaus
                                        
{
    "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 Virheellinen pyyntö
                                        
{
    "code": 400,
    "msg" : "Request parameter error",
    "data" : []
}
Tekijänoikeus © 2006–2026 NICENIC INTERNATIONAL GROUP CO., LIMITED. Kaikki oikeudet pidätetään.