Transfer Masuk Domain
Operasi ini dapat mentransfer nama domain dari registrar lain ke NiceNIC
Content-Type
application/json
kategori
domain
action
transfer
Parameter Permintaan
| Nama Parameter | Tipe | Deskripsi | Contoh |
|---|---|---|---|
| domain | Teks (3–60) | Nama domain | example.com |
| authcode | Teks | Tahun kode transfer domain | Transfer and renew term |
| year | Bilangan bulat (4) | Periode pendaftaran adalah 1 hingga 10 tahun, dengan beberapa pengecualian untuk domain tertentu. | 1 |
| dns1 | Server | Nameserver utama | ns3.my-ndns.com |
| dns2 | Server | Nameserver sekunder | ns4.my-ndns.com |
| organization | Teks (1–255) | Nama organisasi / perusahaan | XXX Ltd. |
| name | Teks (1–16) | Nama pendaftar | Xiao Ming |
| country | Teks (1–255) | Kode Negara, misalnya CN | CN |
| state | Teks (1–255) | Provinsi / Negara Bagian | BeiJing |
| city | Teks (1–255) | Akronim Kota | BJ |
| address | Teks (1–255) | Alamat pos | BeiJing |
| postcode | Bilangan bulat (4–10) | Kode pos / Kode ZIP | 100000 |
| phone | Pisahkan angka dengan "." (30) | +Kode negara, kode area, dan nomor telepon | +86.13800000000 |
| fax | Pisahkan angka dengan "." (30) | +Kode negara, kode area, dan nomor faks | +86.13800000000 |
| Alamat email | Alamat email | [email protected] |
Contoh Permintaan
{
curl https://api.nicenic.net/v2/?category=domain&action=transfer&domain={domain}&authcode={authcode}&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}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
Hasil yang Dikembalikan
201 OK Respons berhasil
{
"code": 201,
"msg" : "Pending order, please wait for the order to be processed!",
"data" : {
}
}
400 Permintaan Buruk
{
"code": 400,
"msg" : "Request parameter error",
}






