Express Transfer

Description

This function is used to transfer a domain to SRS-X. Identical with transfer domain but doesn’t require contact data and user information. Only nickhandle and userid required.

Query

domain/expresstransfer

List Variable

Name Data Type Required/Optional Description
domain String(63) Required Domain name
api_id Integer(11) Required Any unique value/ID to link this domain with your billing system
periode Integer(2) Required registration period, required value: 1
userid Integer(2) Required userid of registrant
contact_registrant String(63) Required nickhandle of regsitrant
contact_admin String(63) Required nickhandle of admin
contact_billing String(63) Required nickhandle of billing
contact_tech String(63) Required nickhandle of tech
ns1 String(63) Required Nameserver 1
ns2 String(63) Required Nameserver 2
ns3 String(63) Optional Nameserver 3
randomhash String(63) Optional random value, will be used as unique URL for uploading documents

Example

$params['username'] = 'apiusername';
$params['password'] = hash('sha256','apipassword');
$params['domain'] = 'domainid.com'
$params['api_id'] = 12;
$params['periode'] = 1;
$params['userid'] = 4;
$params['contact_registrant'] = '0127g8';
$params['contact_admin'] = '0147emkh';
$params['contact_billing'] = '0155cgrx';
$params['contact_tech'] = '0156ele2';
$params['randomhash'] = 'sembarang';
$params['ns1'] = 'ns2.rumahweb.com';
$params['ns2'] = 'ns1.rumahweb.com';

$url = 'http://[reseller url]/api/domain/expresstransfer';

$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>Transfer initiated succesfully</resultMsg>
</result>
</epp>

Failed:


<?xml version="1.0" encoding="UTF-8"?>
<epp>
<result>
<resultCode>1001</resultCode>
<resultMsg>Transfer Domain Failed</resultMsg>
</result>
</epp>