{"id":1773,"date":"2019-04-18T03:35:10","date_gmt":"2019-04-18T03:35:10","guid":{"rendered":"http:\/\/kb.srs-x.com\/en\/?page_id=1773"},"modified":"2019-04-18T03:40:31","modified_gmt":"2019-04-18T03:40:31","slug":"add-subreseller-direct-fund","status":"publish","type":"page","link":"https:\/\/kb.srs-x.com\/en\/api\/55281-2\/add-subreseller-direct-fund","title":{"rendered":"Add Subreseller Direct Fund"},"content":{"rendered":"<p><a href=\"https:\/\/kb.srs-x.com\/id\/add-subreseller-direct-fund\"><strong>Versi Bahasa Indonesia<\/strong><\/a><\/p>\n<h2>Description<\/h2>\n<p>Add Fund to your subreseller<\/p>\n<h2>Query<\/h2>\n<p>billing\/addsubresellerfund<\/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 >Name<\/th>\n<th >Type Data<\/th>\n<th > Required\/Optional<\/th>\n<th >Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\r\n<tr><td >resellerid<\/td>\n<td >Integer(11)<\/td>\n<td >Required<\/td>\n<td >ID Subreseller<\/td>\n<\/tr>\n\r\n<tr><td >amount<\/td>\n<td >Integer(11)<\/td>\n<td >Required<\/td>\n<td >Nominal FUN<\/td>\n<\/tr>\n<\/tbody><\/table><\/div>\n<p>Example<\/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;] = '12'\r\n$post[&quot;amount&quot;] = '110000'\r\n$url = 'http:\/\/[reseller url]\/api\/billing\/addsubresellerfund';\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>Sample Respond<\/h2>\n<p>Success<\/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;2400&lt;\/resultCode&gt;\r\n        &lt;resultMsg&gt;Deposit has been added. Invoiceid # 122499&lt;\/resultMsg&gt;\r\n    &lt;\/result&gt;\r\n    &lt;resultData\/&gt;\r\n&lt;\/epp&gt;\r\n<\/pre>\n<p>Failed<\/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;2400&lt;\/resultCode&gt;\r\n        &lt;resultMsg&gt;Invalid reseller&lt;\/resultMsg&gt;\r\n    &lt;\/result&gt;\r\n    &lt;resultData\/&gt;\r\n&lt;\/epp&gt;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Versi Bahasa Indonesia Description Add Fund to your subreseller Query billing\/addsubresellerfund List Variabel Example Sample Respond Success Failed<\/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\/1773"}],"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=1773"}],"version-history":[{"count":4,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages\/1773\/revisions"}],"predecessor-version":[{"id":1777,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages\/1773\/revisions\/1777"}],"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=1773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}