API доменов — API регистрации доменов — API регистратора ICANN — White Label сервис доменов

Начните разработку с API доменов NiceNIC версии 2

Доступ к API бесплатен для каждого активного пользователя NiceNIC. Повышение до реселлера не требуется. Настройте учетные данные API, выполните безопасный тестовый запрос, а затем добавьте необходимые вашему приложению рабочие процессы для доменов, DNS, биллинга, соответствия правилам или WHMCS.

Setting Auto-Renew

Enable or disable auto-renewal for up to 100 domains. New plans renew for one year at a time.

Content-Type application/json
категория domain
Действие set_auto_renew

Параметры запроса

Имя параметра Тип Описать Пример
domain Строка Required. Provide one domain or a comma-separated list of up to 100 domains. example.com,example.net
auto_renew Integer Required. 1 enables and 0 disables auto-renewal for all entries. 1

Параметры ответа

Имя параметра Тип Описать
results Object[] Each result has domain, code, and msg.
A code of 0 also returns the Boolean auto_renew status.
success_count Integer Number of successful entries, including settings already in effect.
fail_count Integer Number of entries that failed validation or 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" : []
}
Copyright © 2006–2026 NICENIC INTERNATIONAL GROUP CO., LIMITED. Все права защищены.