Move Service

Description

Move service a domain from one customer to another, within the same registrar.

Query

domain/moveservice

List Variable

Name Data Type Required/Optional Description
domain varchar(255) Required Domain name
user_userid Integer(11) Required Userid of new customer (destination)
user_username email Required Username of new customer (destination)
epp_code varchar(255) Required EPP code/key
current_contact boolean Required Toggle between using current contact information or not

Example

$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);

Example Response

Succeed:

<?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>

Failed:

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