API de domaine - API d'enregistrement de domaine - API de bureau d'enregistrement ICANN - Service de domaine en marque blanche

Commencer à développer avec l’API de domaine v2 NiceNIC

L'accès à l'API est gratuit pour chaque utilisateur actif de NiceNIC. Aucune mise à niveau vers un compte revendeur n'est requise. Configurez vos identifiants d'API, effectuez une requête de test sécurisée, puis ajoutez les flux de travail de domaine, DNS, facturation, conformité ou WHMCS dont votre application a besoin.

Renouveler le domaine

Domain name renewal is the process of extending a domain name registration for an additional period beyond its current expiration date. It is important to renew a domain name in order to retain ownership and keep your website, mail services or other related services up and running

Content-Type application/json
category domain
action renew

Request parameters

Parameter Name Type Describe Example
domain String (3-60) Domain name example.com
deaddate Date Domain expiration date 2025-01-01
year Integer (4) The registration period is from 1 to 10 years, with some exceptions for certain domains. 1

Response parameters

Parameter Name Type Describe
domain String Domain name
old_expired_date Date Old domain expiration date
new_expired_date Date New domain expiration date

Request Example

                                    
{
    curl https://api.nicenic.net/v2/?category=domain&action=renew&domain={domain}&deaddate={deaddate}&year={year} 
      -H "Authorization: username:api_secret" 
      -H "Content-Type: application/json" 
}

Return result

0 OK Successful response
                                        
{
    "code": 0,
    "msg" : "success",
    "data" : {
        "domain" : "example.com",
        "old_expired_date" : "2025-01-31",
        "new_expired_date" : "2026-01-01"
                
    }
}
400 Bad Request
                                        
{
    "code": 400,
    "msg" : "Request parameter error",
}
Copyright © 2006–2026 NICENIC INTERNATIONAL GROUP CO., LIMITED. Tous droits réservés.