{"id":248,"date":"2013-04-29T07:36:09","date_gmt":"2013-04-29T07:36:09","guid":{"rendered":"http:\/\/kb.digitalregistra.co.id\/?page_id=248"},"modified":"2015-02-16T06:55:24","modified_gmt":"2015-02-16T06:55:24","slug":"move-service","status":"publish","type":"page","link":"https:\/\/kb.srs-x.com\/id\/api\/move-service\/","title":{"rendered":"Move Service"},"content":{"rendered":"<h2>Deskripsi<\/h2>\n<p>Melakukan move service domain dari customer satu ke customer lainnya, dalam satu registrar<\/p>\n<h2>Query<\/h2>\n<p>domain\/moveservice<\/p>\n<h2>List Variabel<\/h2>\n<div class=\"table-responsive\"><table  style=\"width:100%; \"  class=\"easy-table easy-table-cuscosky \" >\n<thead>\r\n<tr><th >Nama<\/th>\n<th >Tipe Data<\/th>\n<th > Required\/Optional<\/th>\n<th >Deksripsi<\/th>\n<\/tr>\n<\/thead>\n<tbody>\r\n<tr><td >domain<\/td>\n<td >varchar(255)<\/td>\n<td >Required<\/td>\n<td >Nama domain<\/td>\n<\/tr>\n\r\n<tr><td >user_userid<\/td>\n<td >Integer(11)<\/td>\n<td >Required<\/td>\n<td >Userid Customer Tujuan<\/td>\n<\/tr>\n\r\n<tr><td >user_username<\/td>\n<td >email<\/td>\n<td >Required<\/td>\n<td >Username Customer Tujuan<\/td>\n<\/tr>\n\r\n<tr><td >epp_code<\/td>\n<td >varchar(255)<\/td>\n<td >Required<\/td>\n<td >AuthCode domain<\/td>\n<\/tr>\n\r\n<tr><td >current_contact<\/td>\n<td >boolean<\/td>\n<td >Required<\/td>\n<td >Menggunakan kontak asal atau tidak<\/td>\n<\/tr>\n<\/tbody><\/table><\/div>\n<p>Contoh<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n$post['username'] = 'apiusername';\r\n$post['password'] = hash('sha256','apipassword');\r\n$post['user_userid'] = '106601';\r\n$post['user_username'] = 'username@email.com';\r\n$post['domain'] = 'domain.co.id';\r\n$post['epp_code'] = '97w123qawe67676';\r\n$post['current_contact'] = true;\r\n$url = 'http:\/\/[reseller url]\/api\/domain\/moveservice';\r\n\r\n$ch = curl_init();\r\ncurl_setopt($ch, CURLOPT_URL, $apiurl);\r\ncurl_setopt($ch, CURLOPT_POST, 1);\r\ncurl_setopt($ch, CURLOPT_TIMEOUT, 100);\r\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\r\ncurl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post));\r\n$response = curl_exec($ch);\r\ncurl_close($ch);\r\n<\/pre>\n<h2>Respon Contoh<\/h2>\n<p>Berhasil<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\r\n&lt;epp&gt;\r\n  &lt;result&gt;\r\n    &lt;resultCode&gt;1000&lt;\/resultCode&gt;\r\n    &lt;resultMsg&gt;This domain service successfully moved. From now on, you can manage this domain under your new customer domain panel.&lt;\/resultMsg&gt;\r\n  &lt;\/result&gt;\r\n  &lt;resultData\/&gt;\r\n&lt;\/epp&gt;\r\n\r\nGagal\r\n\r\n\r\n&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\r\n&lt;epp&gt;\r\n  &lt;result&gt;\r\n    &lt;resultCode&gt;2400&lt;\/resultCode&gt;\r\n    &lt;resultMsg&gt;Command Failed&lt;\/resultMsg&gt;\r\n  &lt;\/result&gt;\r\n&lt;\/epp&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Deskripsi Melakukan move service domain dari customer satu ke customer lainnya, dalam satu registrar Query domain\/moveservice List Variabel Contoh Respon Contoh Berhasil<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":423,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/pages\/248"}],"collection":[{"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/comments?post=248"}],"version-history":[{"count":2,"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/pages\/248\/revisions"}],"predecessor-version":[{"id":431,"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/pages\/248\/revisions\/431"}],"up":[{"embeddable":true,"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/pages\/423"}],"wp:attachment":[{"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/media?parent=248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}