จดทะเบียนโดเมน
การจดทะเบียน domain name คือกระบวนการสำรองชื่อเฉพาะบน Internet สำหรับช่วงเวลาหนึ่ง โดยทั่วไปจะ 1 ปีขึ้นไป
พารามิเตอร์คำขอ
| ชื่อพารามิเตอร์ | ประเภท | คำอธิบาย | ตัวอย่าง |
|---|---|---|---|
| domain | สตริง (3-60) | ชื่อโดเมน | example.com |
| year | จำนวนเต็ม (4) | ระยะเวลาจดทะเบียนอยู่ระหว่าง 1 ถึง 10 ปี โดยมีข้อยกเว้นสำหรับบางโดเมน | 1 |
| dns1 | เซิร์ฟเวอร์ | Nameserver หลัก | ns3.my-ndns.com |
| dns2 | เซิร์ฟเวอร์ | Nameserver สำรอง | 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",
}






