Domen Ro‘yxatdan O‘tkazish
Domen nomini ro‘yxatdan o‘tkazish — Internetda noyob nomni ma’lum vaqtga, odatda bir yil yoki undan ko‘proq muddatga band qilish jarayonidir
So‘rov parametrlari
| Parametr nomi | Turi | Tavsif | Misol |
|---|---|---|---|
| domain | Satrlik (3-60) | Domen nomi | example.com |
| year | Butun son (4) | Ro‘yxatdan o‘tish muddati 1 yildan 10 yilgacha bo‘ladi, ayrim domenlar uchun istisnolar mavjud. | 1 |
| dns1 | Server | Asosiy nameserver | ns3.my-ndns.com |
| dns2 | Server | Zaxira nameserver | ns4.my-ndns.com |
| organization | Satrlik (1-255) | Tashkilot / Kompaniya nomi | XXX Ltd. |
| name | Satrlik (1-16) | Ro‘yxatdan o‘tkazgan shaxsning ismi | Xiao Ming |
| country | Satrlik (1-255) | Masalan, CN kabi davlat kodi | CN |
| state | Satrlik (1-255) | Viloyat / Shtat | BeiJing |
| city | Satrlik (1-255) | Shahar qisqartmasi | BJ |
| address | Satrlik (1-255) | Pochta manzili | BeiJing |
| postcode | Butun son (4-10) | Pochta indeksi / Zip kodi | 100000 |
| phone | Raqamlarni ajratish uchun "." (30) | +Davlat kodi.hudud kodi va telefon raqami | +86.13800000000 |
| fax | Raqamlarni ajratish uchun "." (30) | +Davlat kodi.hudud kodi va faks raqami | +86.13800000000 |
| Elektron pochta manzili | Elektron pochta manzili | [email protected] | |
| contact_source | Satrlik (1-255) | Set to member to use sizning member profile instead of the supplied Bog‘lanish ma’lumotlari. | member |
| document_type | Satrlik | Required fyoki HK domains. Common values: PASSNO (Pasport), OTHIDV (Other Individual Hujjat raqami), OTHYOKIG (Other Organization Hujjat raqami). | PASSNO |
| document_number | Satrlik (1-40 bytes) | Document number matching the selected type. Required fyoki HK domains. | E12345678 |
HK domains require both document fields, including when using contact_source=member. Other domains ignyokie them. Fyoki .com.hk, only BR is accepted.
Javob parametrlar
| Parametr nomi | Turi | Tavsif |
|---|---|---|
| domain | Satrlik | Domen nomi |
| created_date | Sana | Domen ro‘yxatga olish vaqti |
| expired_date | Sana | Domen amal qilish muddati tugash sanasi |
So‘rov namunasi
{
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"
}
Natijani qaytarish
{
"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!"
}
}
Eslatma: code "201" means the registration yokider was submitted successfully va the fee was deducted. Final domain activation is still subject to registry confirmation. Agar the domain cannot be activated, the registration fee will be refunded to sizning account balance within 24 hours.
{
"code": 400,
"msg" : "Request parameter error",
}






