დომენის რეგისტრაცია
დომენის რეგისტრაცია ნიშნავს უნიკალური სახელის დაჯავშნას ინტერნეტში განსაზღვრულ ვადაზე, ჩვეულებრივ ერთი ან მეტი წლის განმავლობაში.
მოთხოვნის პარამეტრები
| პარამეტრის სახელი | ტიპი | აღწერა | მაგალითი |
|---|---|---|---|
| domain | სტრიქონი (3-60) | დომეინის სახელი | example.com |
| year | მთელ რიცხვი (4) | რეგისტრაციის ვადა 1-დან 10 წლამდეა, გარკვეული გამონაკლისებით ზოგიერთ დომენზე. | 1 |
| dns1 | სერვერი | პრაიმარი ნეიმსერვერი | ns3.my-ndns.com |
| dns2 | სერვერი | სეკონდარული ნეიმსერვერი | ns4.my-ndns.com |
| organization | სტრიქონი (1-255) | ორგანიზაციის / კომპანიის სახელწოდება | XXX Ltd. |
| name | სტრიქონი (1-16) | რეგისტრანტის სახელი | Xiao Ming |
| country | სტრიქონი (1-255) | ქვეყნის კოდი, მაგალითად CN | CN |
| state | სტრიქონი (1-255) | პროვინცია / შტატი | BeiJing |
| city | სტრიქონი (1-255) | ქალაქის აკრონიმე | BJ |
| address | სტრიქონი (1-255) | ფოსტით მისამართი | BeiJing |
| postcode | მთელ რიცხვი (4-10) | საკონტაქტო კოდი / ფოსტის კოდი | 100000 |
| phone | ნომრების განყოფილება "."-ით (30) | +ქვეყნის კოდი.რეგიონული კოდი და სატელეფონო ნომერი | +86.13800000000 |
| fax | ნომრების განყოფილება "."-ით (30) | +ქვეყნის კოდი.რეგიონული კოდი და ფაქსის ნომერი | +86.13800000000 |
| ელ.ფოსტის მისამართი | ელ.ფოსტის მისამართი | [email protected] | |
| contact_source | სტრიქონი (1-255) | Set to member to use თქვენი member profile instead of the supplied კონტაქტის დეტალები. | member |
| document_type | სტრიქონი | Required fან HK დომენიs. Common values: PASSNO (პასპორტი), OTHIDV (Other Individual დოკუმენტის ნომერი), OTHანG (Other Organization დოკუმენტის ნომერი). | PASSNO |
| document_number | სტრიქონი (1-40 bytes) | Document number matching the selected type. Required fან HK დომენიs. | E12345678 |
HK დომენიs require both document fields, including when using contact_source=member. Other დომენიs ignანe them. Fან .com.hk, only BR is accepted.
პასუხის პარამეტრები
| პარამეტრის სახელი | ტიპი | აღწერა |
|---|---|---|
| domain | სტრიქონი | დომეინის სახელი |
| created_date | თარიღი | დომენის რეგისტრაციის დრო |
| expired_date | თარიღი | დომენის ვადის ამოწურვის თარიღი |
მოთხოვნის მაგალითი
{
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"
}
შედეგის დაბრუნება
{
"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!"
}
}
შენიშვნა: code "201" means the registration ანder was submitted successfully და the fee was deducted. Final დომენი activation is still subject to registry confirmation. თუ the დომენი cannot be activated, the registration fee will be refunded to თქვენი account balance within 24 hours.
{
"code": 400,
"msg" : "Request parameter error",
}






