Registriraj domeno
Registracija domenskega imena je postopek rezervacije edinstvenega imena na internetu za določeno obdobje, običajno eno leto ali več.
Zahtevani parametri
| Ime parametra | Vrsta | Opis | Primer |
|---|---|---|---|
| domain | Niz (3-60) | Ime domene | example.com |
| year | Celo število (4) | Obdobje registracije je od 1 do 10 let, z nekaterimi izjemami za določene domene. | 1 |
| dns1 | Strežnik | Primarni imenski strežnik | ns3.my-ndns.com |
| dns2 | Strežnik | Sekundarni imenski strežnik | ns4.my-ndns.com |
| organization | Niz (1-255) | Ime organizacije / podjetja | XXX Ltd. |
| name | Niz (1-16) | Ime registranta | Xiao Ming |
| country | Niz (1-255) | Koda države, na primer CN | CN |
| state | Niz (1-255) | Pokrajina / država | BeiJing |
| city | Niz (1-255) | Okraj mesta | BJ |
| address | Niz (1-255) | Poštni naslov | BeiJing |
| postcode | Celo število (4-10) | Poštna številka | 100000 |
| phone | "." za ločevanje številk (30) | +Koda države.koda območja in telefonska številka | +86.13800000000 |
| fax | "." za ločevanje številk (30) | +Koda države.koda območja in številka faksa | +86.13800000000 |
| E-poštni naslov | E-poštni naslov | [email protected] | |
| contact_source | Niz (1-255) | Set to member to use vašega member profile instead of the supplied kontaktni podatki. | member |
| document_type | Niz | Required fali HK domenas. Common values: PASSNO (Potni list), OTHIDV (Other Individual Številka dokumenta), OTHALIG (Other Organization Številka dokumenta). | PASSNO |
| document_number | Niz (1-40 bytes) | Document number matching the selected type. Required fali HK domenas. | E12345678 |
HK domenas require both document fields, including when using contact_source=member. Other domenas ignalie them. Fali .com.hk, only BR is accepted.
Parametri odgovora
| Ime parametra | Vrsta | Opis |
|---|---|---|
| domain | Niz | Ime domene |
| created_date | Datum | Čas registracije domene |
| expired_date | Datum | Datum poteka domene |
Primer zahteve
{
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"
}
Rezultat vrnitve
{
"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!"
}
}
Opomba: code "201" means the registration alider was submitted successfully in the fee was deducted. Final domena activation is still subject to registry confirmation. Če the domena cannot be activated, the registration fee will be refunded to vašega account balance within 24 hours.
{
"code": 400,
"msg" : "Request parameter error",
}






