Registrar domini
El registre d'un nom de domini és el procés de reservar un nom únic a Internet durant un període determinat, normalment un any o més
Paràmetres de la sol·licitud
| Nom del paràmetre | Tipus | Descripció | Exemple |
|---|---|---|---|
| domain | Text (3-60) | Nom de domini | example.com |
| year | Enter (4) | El període de registre és d’1 a 10 anys, amb algunes excepcions per a determinats dominis. | 1 |
| dns1 | Servidor | Servidor de noms principal | ns3.my-ndns.com |
| dns2 | Servidor | Servidor de noms secundari | ns4.my-ndns.com |
| organization | Text (1-255) | Nom de l’organització / empresa | XXX Ltd. |
| name | Text (1-16) | Nom del registrant | Xiao Ming |
| country | Text (1-255) | Codi de país, com CN | CN |
| state | Text (1-255) | Província / Estat | BeiJing |
| city | Text (1-255) | Sigla de la ciutat | BJ |
| address | Text (1-255) | Adreça postal | BeiJing |
| postcode | Enter (4-10) | Codi postal | 100000 |
| phone | Utilitza “.” per separar nombres (30) | +Codi de país.codi d’àrea i número de telèfon | +86.13800000000 |
| fax | Utilitza “.” per separar nombres (30) | +Codi de país.codi d’àrea i número de fax | +86.13800000000 |
| Adreça electrònica | Adreça electrònica | [email protected] | |
| contact_source | Text (1-255) | Set to member to use el teu member profile instead of the supplied dades de contacte. | member |
| document_type | Text | Required fo HK dominis. Common values: PASSNO (Passaport), OTHIDV (Other Individual Número de document), OTHOG (Other Organization Número de document). | PASSNO |
| document_number | Text (1-40 bytes) | Document number matching the selected type. Required fo HK dominis. | E12345678 |
HK dominis require both document fields, including when using contact_source=member. Other dominis ignoe them. Fo .com.hk, only BR is accepted.
Paràmetres de resposta
| Nom del paràmetre | Tipus | Descripció |
|---|---|---|
| domain | Text | Nom de domini |
| created_date | Data | Data de registre del domini |
| expired_date | Data | Data de caducitat del domini |
Exemple de sol·licitud
{
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"
}
Resultat retornat
{
"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 i the fee was deducted. Final domini activation is still subject to registry confirmation. Si the domini cannot be activated, the registration fee will be refunded to el teu account balance within 24 hours.
{
"code": 400,
"msg" : "Request parameter error",
}






