Move Service

Deskripsi

Melakukan move service domain dari customer satu ke customer lainnya, dalam satu registrar

Query

domain/moveservice

List Variabel

Nama Tipe Data Required/Optional Deksripsi
domain varchar(255) Required Nama domain
user_userid Integer(11) Required Userid Customer Tujuan
user_username email Required Username Customer Tujuan
epp_code varchar(255) Required AuthCode domain
current_contact boolean Required Menggunakan kontak asal atau tidak

Contoh

$post['username'] = 'apiusername';
$post['password'] = hash('sha256','apipassword');
$post['user_userid'] = '106601';
$post['user_username'] = 'username@email.com';
$post['domain'] = 'domain.co.id';
$post['epp_code'] = '97w123qawe67676';
$post['current_contact'] = true;
$url = 'http://[reseller url]/api/domain/moveservice';

$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

<?xml version="1.0" encoding="UTF-8"?>
<epp>
  <result>
    <resultCode>1000</resultCode>
    <resultMsg>This domain service successfully moved. From now on, you can manage this domain under your new customer domain panel.</resultMsg>
  </result>
  <resultData/>
</epp>

Gagal


<?xml version="1.0" encoding="UTF-8"?>
<epp>
  <result>
    <resultCode>2400</resultCode>
    <resultMsg>Command Failed</resultMsg>
  </result>
</epp>