Magrehistro ng Domain
Ang pagpaparehistro ng domain name ay ang proseso ng pagreserba ng natatanging pangalan sa Internet sa loob ng isang takdang panahon, karaniwan ay isang taon o higit pa
Mga parameter ng request
| Pangalan ng parameter | Uri | Paglalarawan | Halimbawa |
|---|---|---|---|
| domain | String (3-60) | Pangalan ng domain | example.com |
| year | Integer (4) | Ang panahon ng pagrerehistro ay mula 1 hanggang 10 taon, na may ilang eksepsyon para sa ilang domain. | 1 |
| dns1 | Server | Pangunahing nameserver | ns3.my-ndns.com |
| dns2 | Server | Pangalawang nameserver | ns4.my-ndns.com |
| organization | String (1-255) | Pangalan ng organisasyon / kumpanya | XXX Ltd. |
| name | String (1-16) | Pangalan ng rehistrante | Xiao Ming |
| country | String (1-255) | Country Code, gaya ng CN | CN |
| state | String (1-255) | Probinsya / Estado | BeiJing |
| city | String (1-255) | Daglat ng lungsod | BJ |
| address | String (1-255) | Mailing address | BeiJing |
| postcode | Integer (4-10) | Postal code / Zip code | 100000 |
| phone | "." para paghiwalayin ang mga numero (30) | +Country code.district code at numero ng telepono | +86.13800000000 |
| fax | "." para paghiwalayin ang mga numero (30) | +Country code.district code at numero ng fax | +86.13800000000 |
| Email address | Email address | [email protected] | |
| contact_source | String (1-255) | Set to member to use iyong member profile instead of the supplied Mga detalye ng contact. | member |
| document_type | String | Required fo HK domains. Common values: PASSNO (Pasaporte), OTHIDV (Other Individual Numero ng Dokumento), OTHOG (Other Organization Numero ng Dokumento). | PASSNO |
| document_number | String (1-40 bytes) | Document number matching the selected type. Required fo HK domains. | E12345678 |
HK domains require both document fields, including when using contact_source=member. Other domains ignoe them. Fo .com.hk, only BR is accepted.
Mga parameter ng tugon
| Pangalan ng parameter | Uri | Paglalarawan |
|---|---|---|
| domain | String | Pangalan ng domain |
| created_date | Petsa | Oras ng pagrerehistro ng domain |
| expired_date | Petsa | Petsa ng pag-expire ng domain |
Halimbawa ng Request
{
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"
}
Resulta ng Return
{
"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!"
}
}
Tandaan: code "201" means the registration oder was submitted successfully at the fee was deducted. Final domain activation is still subject to registry confirmation. Kung the domain cannot be activated, the registration fee will be refunded to iyong account balance within 24 hours.
{
"code": 400,
"msg" : "Request parameter error",
}






