Transfer Domain

Versi Bahasa Indonesia


This function is used to transfer a domain to SRS-X, and will create new account if provided email address is not yet registered.



List Variable

Name Data Type Required/Optional Description
domain String(63) Required Domain name
transfersecret base64encode String Required EPP code
api_id Integer(11) Required Unique domain ID
periode Integer(2) Required Registration period
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 First name
lname String(32) Optional Last name
address1 String(255) Required Address
address2 String(255) Optional Address 2
city String(32) Required City name
state String(32) Required Province/State
country String(3) Required Country code, ie: ID, MY, SG, AU
postcode String(8) Required Zip code
phonenumber String(14) Required Phone number, including country code but without "+"
email String(63) Required Contact email address
user_username String(63) Required Username for SRS-X
user_fname String(32) Required First name
user_lname String(32) Optional Last name
user_company String(32) Required Company name, or use "personal"
user_address String(255) Required Address
user_address2 String(255) Optional Address 2
user_city String(32) Required City name
user_province String(32) Required Province/State
user_country String(3) Required Country code, ie: ID, MY, SG, AU
user_postal_code String(8) Required Zip code


$post["username"] = 'apiusername';
$post["password"] = hash('sha256','apipassword');
$post["domain"] = '’
$post["periode"] = 1;
$post["ns1"] = '’;
$post["ns2"] = '’;
$post["transfersecret"] = base64_encode('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"] = '<a href=""></a>’;

$post['user_username'] = '’;
$post['user_fname'] = 'Budi’;
$post['user_lname'] = 'Santosa’;
$post['user_email'] = '’;
$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);

Example Response


<?xml version="1.0" encoding="UTF-8"?>
    <resultMsg>Domain under queue processing</resultMsg>

Failed (wrong EPP key)

<?xml version="1.0" encoding="UTF-8"?>
<resultMsg>Invalid authorization information</resultMsg>