ドメインAPI - ドメイン登録API - ICANNレジストラAPI - ホワイトラベルドメインサービス

NiceNICドメインAPI v2で構築を始めましょう

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
action set_auto_renew

リクエストパラメータ

パラメータ名 型 説明 例
domain String Required. Provide one domain or a comma-separated list of up to 100 domains. example.com,example.net
auto_renew 整数 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 整数 Number of successful entries, including settings already in effect.
fail_count 整数 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" : []
}
© 2006–2026 NICENIC INTERNATIONAL GROUP CO., LIMITED. 無断転載を禁じます。