{"id":331,"date":"2013-06-25T07:11:54","date_gmt":"2013-06-25T07:11:54","guid":{"rendered":"http:\/\/kb.digitalregistra.co.id\/?p=331"},"modified":"2013-06-25T07:17:56","modified_gmt":"2013-06-25T07:17:56","slug":"331","status":"publish","type":"post","link":"https:\/\/kb.srs-x.com\/id\/331\/","title":{"rendered":"Subsribe:insert"},"content":{"rendered":"<h2>Deskripsi<\/h2>\n<p>Create Subscription. Jika Anda belum membuat customer silahkan melihat referenci create customer di : <a href=\"http:\/\/kb.digitalregistra.co.id\/?page_id=237\" target=\"_blank\">http:\/\/kb.digitalregistra.co.id\/?page_id=237<\/a><\/p>\n<h2>Query<\/h2>\n<p>gapps\/subscribe\/insert<\/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 ><\/th>\n<\/tr>\n<\/thead>\n<tbody>\r\n<tr><td >domain<\/td>\n<td > String<\/td>\n<td > Required<\/td>\n<td > Nama Domain<\/td>\n<td ><\/td>\n<\/tr>\n\r\n<tr><td >email<\/td>\n<td > String<\/td>\n<td > Required<\/td>\n<td > Email<\/td>\n<td ><\/td>\n<\/tr>\n\r\n<tr><td >skuid<\/td>\n<td > String<\/td>\n<td > Required<\/td>\n<td > Produk Google Apps (Google-Apps-For-Business)<\/td>\n<td ><\/td>\n<\/tr>\n\r\n<tr><td >planname <\/td>\n<td >String<\/td>\n<td > Required <\/td>\n<td > ANNUAL<\/td>\n<td > FLEXIBLE<\/td>\n<td > TRIAL<\/td>\n<td ><\/td>\n<\/tr>\n\r\n<tr><td >maxnumberofseats<\/td>\n<td > Integer<\/td>\n<td > Required<\/td>\n<td > Jumlah Seats<\/td>\n<td ><\/td>\n<\/tr>\n\r\n<tr><td >orderid<\/td>\n<td > Integer<\/td>\n<td > Required<\/td>\n<td > Parameter terkait dengan order billing pihak ketiga<\/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;] = 'user@username.com'\r\n$post[&quot;password&quot;] = hash('password');\r\n$post[&quot;domain&quot;] = 'domain.com'\r\n$post[&quot;email&quot;] = 'email@domain.com'\r\n$post[&quot;skuid&quot;] = 'Google-Apps-For-Business'\r\n$post[&quot;planname&quot;] = 'TRIAL'\r\n$post[&quot;maxnumberofseats&quot;] = '10'\r\n$post[&quot;orderid&quot;] = '987'\r\n$url = 'http:\/\/[reseller url]\/api\/gapps\/subsribe\/insert';\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;Command Complete Successfully&lt;\/resultMsg&gt;\r\n  &lt;\/result&gt;\r\n&lt;\/epp&gt;\r\n<\/pre>\n<p>Gagal<\/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;1001&lt;\/resultCode&gt;\r\n    &lt;resultMsg&gt;Resource Exists&lt;\/resultMsg&gt;\r\n  &lt;\/result&gt;\r\n&lt;\/epp&gt;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Deskripsi Create Subscription. Jika Anda belum membuat customer silahkan melihat referenci create customer di : http:\/\/kb.digitalregistra.co.id\/?page_id=237 Query gapps\/subscribe\/insert List Variabel Contoh Respon Contoh Berhasil Gagal<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/posts\/331"}],"collection":[{"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/types\/post"}],"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=331"}],"version-history":[{"count":4,"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/posts\/331\/revisions"}],"predecessor-version":[{"id":339,"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/posts\/331\/revisions\/339"}],"wp:attachment":[{"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/media?parent=331"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/categories?post=331"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/tags?post=331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}