{"id":1781,"date":"2019-05-02T04:20:48","date_gmt":"2019-05-02T04:20:48","guid":{"rendered":"http:\/\/kb.srs-x.com\/en\/?page_id=1781"},"modified":"2019-05-02T08:26:02","modified_gmt":"2019-05-02T08:26:02","slug":"info-subreseller","status":"publish","type":"page","link":"https:\/\/kb.srs-x.com\/en\/api\/55281-2\/info-subreseller","title":{"rendered":"Info subreseller"},"content":{"rendered":"<p><a href=\"http:\/\/kb.srs-x.com\/id\/api\/55281-2\/info-subreseller\/\"><strong>Versi bahasa Indonesia<\/strong><\/a><\/p>\n<h2>Deskripsi<\/h2>\n<p>Get detail subreseller<\/p>\n<h2>Query<\/h2>\n<p>v2\/reseller\/subreseller<\/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 >resellerid<\/td>\n<td > Integer(10)<\/td>\n<td >Required<\/td>\n<td >resellerID<\/td>\n<\/tr>\n<\/tbody><\/table><\/div>\n<p>Contoh<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n$post[&quot;username&quot;] = 'apiusername';\r\n$post[&quot;password&quot;] = hash('sha256','apipassword');\r\n$post[&quot;resellerid&quot;] = '123'\r\n$url = 'http:\/\/[reseller url]\/api\/v2\/reseller\/subreseller';\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; standalone=&quot;yes&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;Get sub-reseller success&lt;\/resultMsg&gt;\r\n  &lt;\/result&gt;\r\n  &lt;resultData&gt;\r\n    &lt;resellerNum&gt;1&lt;\/resellerNum&gt;\r\n    &lt;reseller&gt;\r\n      &lt;username&gt;email@reseller.id&lt;\/username&gt;\r\n      &lt;username&gt;email@reseller.id&lt;\/username&gt;\r\n      &lt;email&gt;email@reseller.id&lt;\/email&gt;\r\n      &lt;fname&gt;Sample&lt;\/fname&gt;\r\n      &lt;lname\/&gt;\r\n      &lt;company&gt;N\/A&lt;\/company&gt;\r\n      &lt;address&gt;Sample Address&lt;\/address&gt;\r\n      &lt;address2\/&gt;\r\n      &lt;address3\/&gt;\r\n      &lt;city&gt;Sample City&lt;\/city&gt;\r\n      &lt;province&gt;Sample Province&lt;\/province&gt;\r\n      &lt;phone&gt;62.0000000-&lt;\/phone&gt;\r\n      &lt;mphone\/&gt;\r\n      &lt;fax\/&gt;\r\n      &lt;country&gt;95&lt;\/country&gt;\r\n      &lt;postal_code&gt;50241&lt;\/postal_code&gt;\r\n      &lt;tax_status\/&gt;\r\n      &lt;ns1&gt;ns1.mysrsx.com&lt;\/ns1&gt;\r\n      &lt;ns2&gt;ns2.mysrsx.net&lt;\/ns2&gt;\r\n      &lt;ns3&gt;ns3.mysrsx.biz&lt;\/ns3&gt;\r\n      &lt;ns4&gt;ns4.mysrsx.org&lt;\/ns4&gt;\r\n      &lt;ns5\/&gt;\r\n      &lt;ns6\/&gt;\r\n      &lt;ns7\/&gt;\r\n      &lt;ns8\/&gt;\r\n    &lt;\/reseller&gt;\r\n  &lt;\/resultData&gt;\r\n&lt;\/epp&gt;\r\n\r\n\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Versi bahasa Indonesia Deskripsi Get detail subreseller Query v2\/reseller\/subreseller List Variabel Contoh Respon Contoh Berhasil<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":204,"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\/1781"}],"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=1781"}],"version-history":[{"count":2,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages\/1781\/revisions"}],"predecessor-version":[{"id":1784,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages\/1781\/revisions\/1784"}],"up":[{"embeddable":true,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages\/204"}],"wp:attachment":[{"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/media?parent=1781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}