Deskripsi
Api yang berfungsi untuk melakukan transfer domain ke SRS-X dan Registrar. API ini juga sekaligus akan membuat user di SRS-X jika email yang digunakan belum pernah didaftarkan di SRS-X
Query
domain/transfer
List Variabel
Nama | Tipe Data | Required/Optional | Deksripsi |
---|---|---|---|
domain | String(63) | Required | Nama domain |
transfersecret | String(16) | Required | Kode EPP |
api_id | Integer(11) | Required | Nilai bebas untuk membuat relasi domain dengan sistem di luar |
periode | Integer(2) | Required | periode untuk registrasi |
ns1 | String(63) | Required | Nameserver 1 |
ns2 | String(63) | Required | Nameserver 2 |
ns3 | String(63) | Optional | Nameserver 3 |
ns4 | String(63) | Optional | Nameserver 4 |
fname | String(32) | Required | Nama depan |
lname | String(32) | Optional | Nama belakang |
address1 | String(255) | Required | Alamat |
address2 | String(255) | Optional | Alamat 2 |
city | String(32) | Required | Nama Kota |
state | String(32) | Required | Nama Propinsi / Negara bagian |
country | String(3) | Required | Kode negara contoh : ID, MY, SG, AU |
postcode | String(8) | Required | Kodepos |
phonenumber | String(14) | Required | Nomor Telepon sertakan kode negara tanpa tanda "+" |
String(63) | Required | Email contact | |
user_username | String(63) | Required | username (email) untuk login ke SRS-X |
user_fname | String(32) | Required | Nama depan |
user_lname | String(32) | Optional | Nama belakang |
user_company | String(32) | Required | Nama Perusahaan, jika untuk pribadi masukkan "personal" |
user_address | String(255) | Required | Alamat |
user_address2 | String(255) | Optional | Alamat 2 |
user_city | String(32) | Required | Nama Kota |
user_province | String(32) | Required | Nama Propinsi / Negara bagian |
user_country | String(3) | Required | Kode negara contoh : ID, MY, SG, AU |
user_postal_code | String(8) | Required | Kodepos |
Contoh
$post["username"] = 'apiusername'; $post["password"] = hash('sha256','apipassword'); $post["domain"] = 'domainid.com'; $post["periode"] = 1; $post["ns1"] = 'ns1.mydomain.com'; $post["ns2"] = 'ns2.mydomain.com'; $post["transfersecret"] = 'KJGKHKHK'; $post["fname"] = 'Adi'; $post["lname"] = 'Waluyo; $post["address1"] = 'Jl. Arjuna 33'; $post["city"] = 'Jakarta'; $post["state"] = 'DKI Jakarta'; $post["postcode"] = '10000'; $post["country"] = 'ID'; $post["phonenumber"] = 622145345; $post["email"] = 'client@email.com'; $post['user_username'] = 'client@email.com'; $post['user_fname'] = 'Budi'; $post['user_lname'] = 'Santosa'; $post['user_email'] = 'budix@mmail.com'; $post['user_company'] = 'personal'; $post['user_address'] = 'Jl. Nangka 65'; $post['user_city'] = 'Jakarta'; $post['user_province'] = 'DKI Jakarta'; $post['user_phone'] = 6221878787; $post['user_country'] = 'ID'; $post['user_postal_code'] = '100000'; $post["api_id"] = 74; $post["randomhash"] = 'IUYKHJKJHJHKJHIUYJ7686'; $url = 'http://[reseller url]/api/domain/transfer'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $apiurl); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 100); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post)); $response = curl_exec($ch); curl_close($ch);
Respon Contoh
Berhasil
</pre> <?xml version="1.0" encoding="UTF-8"?> <epp> <result> <resultCode>1000</resultCode> <resultMsg>Domain under queue processing</resultMsg> </result> <resultData/> </epp> <pre>
Gagal (kode epp salah)
</pre> <?xml version="1.0" encoding="UTF-8"?> <epp> <result> <resultCode>2400</resultCode> <resultMsg>Invalid authorization information</resultMsg> </result> </epp> <pre>