Դոմեն 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. Բոլոր իրավունքները պաշտպանված են.