{"id":1809,"date":"2021-02-08T03:37:41","date_gmt":"2021-02-08T03:37:41","guid":{"rendered":"https:\/\/kb.srs-x.com\/en\/?page_id=1809"},"modified":"2021-02-08T03:38:03","modified_gmt":"2021-02-08T03:38:03","slug":"premium-express-register","status":"publish","type":"page","link":"https:\/\/kb.srs-x.com\/en\/api\/domain\/premium-express-register","title":{"rendered":"Premium Express Register"},"content":{"rendered":"<p><a href=\"http:\/\/kb.srs-x.com\/id\/api\/domain\/premium-express-register\/\"><strong>Versi Bahasa Indonesia<\/strong><\/a><\/p>\n<h2>Description<\/h2>\n<p>This function will register a premium domain name to SRS-X and Registrar, almost identical with <a href=\"\/?page_id=10\">register domain<\/a>. This function doesn&#8217;t require contact data nor user, only nickhandle and userid is required.<\/p>\n<h2>Query<\/h2>\n<p>domain\/premium_expressregister<\/p>\n<h2>List Variable<\/h2>\n<div class=\"table-responsive\"><table  style=\"width:100%; \"  class=\"easy-table easy-table-cuscosky \" >\n<thead>\r\n<tr><th >Name<\/th>\n<th >Data Type<\/th>\n<th > Required\/Optional<\/th>\n<th >Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\r\n<tr><td >domain<\/td>\n<td >String(63)<\/td>\n<td >Required<\/td>\n<td >Domain name<\/td>\n<\/tr>\n\r\n<tr><td >api_id<\/td>\n<td >Integer(11)<\/td>\n<td >Required<\/td>\n<td >Any unique ID to link this domain with your billing system<\/td>\n<\/tr>\n\r\n<tr><td >periode<\/td>\n<td >Integer(2)<\/td>\n<td >Required<\/td>\n<td >registration period<\/td>\n<\/tr>\n\r\n<tr><td >userid<\/td>\n<td >Integer(2)<\/td>\n<td >Required<\/td>\n<td >userid of registrant<\/td>\n<\/tr>\n\r\n<tr><td >contact_registrant<\/td>\n<td >String(63)<\/td>\n<td >Required<\/td>\n<td >nickhandle of registrant<\/td>\n<\/tr>\n\r\n<tr><td >contact_admin<\/td>\n<td >String(63)<\/td>\n<td >Required<\/td>\n<td >nickhandle of admin<\/td>\n<\/tr>\n\r\n<tr><td >contact_billing<\/td>\n<td >String(63)<\/td>\n<td >Required<\/td>\n<td >nickhandle of billing<\/td>\n<\/tr>\n\r\n<tr><td >contact_tech<\/td>\n<td >String(63)<\/td>\n<td >Required<\/td>\n<td >nickhandle of tech<\/td>\n<\/tr>\n\r\n<tr><td >ns1<\/td>\n<td >String(63)<\/td>\n<td >Required<\/td>\n<td >Nameserver 1<\/td>\n<\/tr>\n\r\n<tr><td >ns2<\/td>\n<td >String(63)<\/td>\n<td >Required<\/td>\n<td >Nameserver 2<\/td>\n<\/tr>\n\r\n<tr><td >ns3<\/td>\n<td >String(63)<\/td>\n<td >Optional<\/td>\n<td >Nameserver 3<\/td>\n<\/tr>\n\r\n<tr><td >ns4<\/td>\n<td >String(63)<\/td>\n<td >Optional<\/td>\n<td >Nameserver 4<\/td>\n<\/tr>\n\r\n<tr><td >autoactive<\/td>\n<td >enum(\"on\")<\/td>\n<td >Optional<\/td>\n<td >set value to \u201con\u201d to activate auto provisioning<\/td>\n<\/tr>\n\r\n<tr><td >domaindescription<\/td>\n<td >text<\/td>\n<td >Optional<\/td>\n<td >Domain description, to label domain and required documents<\/td>\n<\/tr>\n\r\n<tr><td >randomhash<\/td>\n<td >String(63)<\/td>\n<td >Optional<\/td>\n<td >random value, will be used as URL for uploading documents<\/td>\n<\/tr>\n\r\n<tr><td >category<\/td>\n<td >String(63)<\/td>\n<td >Required for .ID<\/td>\n<td >Only required for anything.id, options are personal, company, school, university, organization<\/td>\n<\/tr>\n<\/tbody><\/table><\/div>\n<h2>Example<\/h2>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\n$post[&quot;username&quot;] = 'apiusername';\n$post[&quot;password&quot;] = hash('sha256','apipassword');\n$post['domain'] = 'abc.id'\n$params['api_id'] = 12;\n$params['periode'] = 1;\n$params['userid'] = 4;\n$params['contact_registrant'] = '0127g8';\n$params['contact_admin'] = '0147emkh';\n$params['contact_billing'] = '0155cgrx';\n$params['contact_tech'] = '0156ele2';\n$params['autoactive'] = 'on';\n$params['ns1'] = 'ns2.rumahweb.com';\n$params['ns2'] = 'ns1.rumahweb.com';\n\n$url = 'http:\/\/[reseller url]\/api\/domain\/premium_expressregister';\n\n$ch = curl_init();\ncurl_setopt($ch, CURLOPT_URL, $apiurl);\ncurl_setopt($ch, CURLOPT_POST, 1);\ncurl_setopt($ch, CURLOPT_TIMEOUT, 100);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post));\n$response = curl_exec($ch);\ncurl_close($ch);\n<\/pre>\n<h2>Example Response<\/h2>\n<p>Success:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?--&gt;\n&lt;epp&gt;\n&lt;result&gt;\n&lt;resultcode&gt;1000&lt;\/resultcode&gt;\n&lt;resultmsg&gt;Command completed successfully&lt;\/resultmsg&gt;\n&lt;\/result&gt;\n&lt;resultdata&gt;\n&lt;status&gt;1&lt;\/status&gt;\n&lt;crdate&gt;2012-09-13&lt;\/crdate&gt;\n&lt;exdate&gt;2013-09-13&lt;\/exdate&gt;\n&lt;\/resultdata&gt;\n&lt;\/epp&gt;\n<\/pre>\n<p>Failed:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?--&gt;\n&lt;epp&gt;\n&lt;result&gt;\n&lt;resultcode&gt;1001&lt;\/resultcode&gt;\n&lt;resultmsg&gt;Create Domain Failed&lt;\/resultmsg&gt;\n&lt;\/result&gt;\n&lt;\/epp&gt;\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Versi Bahasa Indonesia Description This function will register a premium domain name to SRS-X and Registrar, almost identical with register domain. This function doesn&#8217;t require contact data nor user, only nickhandle and userid is required. Query domain\/premium_expressregister List Variable Example &hellip; <a href=\"https:\/\/kb.srs-x.com\/en\/api\/domain\/premium-express-register\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":8,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages\/1809"}],"collection":[{"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/comments?post=1809"}],"version-history":[{"count":2,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages\/1809\/revisions"}],"predecessor-version":[{"id":1811,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages\/1809\/revisions\/1811"}],"up":[{"embeddable":true,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages\/8"}],"wp:attachment":[{"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/media?parent=1809"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}