Registra dominio
La registrazione di un nome di dominio è il processo di riservare un nome unico su Internet per un periodo specifico, solitamente di un anno o più
Parametri della richiesta
| Nome parametro | Tipo | Descrizione | Esempio |
|---|---|---|---|
| domain | Stringa (3-60) | Nome dominio | example.com |
| year | Numero intero (4) | Il periodo di registrazione va da 1 a 10 anni, con alcune eccezioni per specifici domini. | 1 |
| dns1 | Server | Nameserver primario | ns3.my-ndns.com |
| dns2 | Server | Nameserver secondario | ns4.my-ndns.com |
| organization | Stringa (1-255) | Nome dell'organizzazione / azienda | XXX Ltd. |
| name | Stringa (1-16) | Nome del registrante | Xiao Ming |
| country | Stringa (1-255) | Codice Paese, come CN | CN |
| state | Stringa (1-255) | Provincia / Stato | BeiJing |
| city | Stringa (1-255) | Sigla della città | BJ |
| address | Stringa (1-255) | Indirizzo postale | BeiJing |
| postcode | Numero intero (4-10) | CAP / Codice postale | 100000 |
| phone | "." per separare i numeri (30) | +Prefisso paese.prefisso locale e numero di telefono | +86.13800000000 |
| fax | "." per separare i numeri (30) | +Prefisso paese.prefisso locale e numero di fax | +86.13800000000 |
| Indirizzo email | Indirizzo email | [email protected] | |
| contact_source | Stringa (1-255) | Set to member to use tuo member profile instead of the supplied dati di contatto. | member |
| document_type | Stringa | Required fo HK dominios. Common values: PASSNO (Passaporto), OTHIDV (Other Individual Numero del documento), OTHOPPUREG (Other Organization Numero del documento). | PASSNO |
| document_number | Stringa (1-40 bytes) | Document number matching the selected type. Required fo HK dominios. | E12345678 |
HK dominios require both document fields, including when using contact_source=member. Other dominios ignoe them. Fo .com.hk, only BR is accepted.
Parametri di risposta
| Nome parametro | Tipo | Descrizione |
|---|---|---|
| domain | Stringa | Nome dominio |
| created_date | Data | Data di registrazione del dominio |
| expired_date | Data | Data di scadenza del dominio |
Esempio di richiesta
{
curl https://api.nicenic.net/v2/?category=domain&action=register&domain={domain}&year={year}&dns1={dns1}&dns2={dns2}&organization={organization}&name={name}&country={country}&state={state}&city={city}&address={address}&postcode={postcode}&phone={phone}&fax={fax}&email={email}&contact_source={contact_source}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
Risultato restituito
{
"code": 0,
"msg" : "success",
"data" : {
"domain":"example.com",
"created_date":"2025-01-21",
"expired_date":"2026-01-21"
}
}
{
"code": 201,
"msg" : "Pending order, please wait for the order to be processed!"
}
}
Nota: code "201" means the registration oder was submitted successfully e the fee was deducted. Final dominio activation is still subject to registry confirmation. Se the dominio cannot be activated, the registration fee will be refunded to tuo account balance within 24 hours.
{
"code": 400,
"msg" : "Request parameter error",
}






