{"info":{"_postman_id":"a63c0969-bbd2-44d1-b2be-389e9d65224e","name":"Electricity-Fetch-Bill","description":"<html><head></head><body><p>Electricity is one of the crucial things in our lives not only for households but for large industries as well. Paying electricity bill on time is very important to avoid disrupted services. paythrough.in provides you with the easiest and fastest method to know and pay your electricity bill. Just a few taps and your electricity bill payment is done. <strong>Electricity-Fetch-Bill</strong> process requires the following headers</p>\n<ul>\n<li>SANDBOX-API-KEY</li>\n<li>SANDBOX-PRODUCT-KEY</li>\n<li>MERCHANT-CODE</li>\n<li>SERVICE-CODE</li>\n</ul>\n<h1 id=\"request-number\">REQUEST NUMBER</h1>\n<h1 id=\"vendor\">VENDOR</h1>\n<h1 id=\"api-method\">API METHOD</h1>\n<h1 id=\"extraparam\">EXTRAPARAM</h1>\n<h1 id=\"basic\">BASIC</h1>\n<p>This API service is used to fetch the electricity bill.</p>\n<p>URL:-{{base-url}}/electricity-payment</p>\n<h2 id=\"electricity-fetch-bill-status\">ELECTRICITY FETCH BILL STATUS</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>204</td>\n<td>Failure</td>\n</tr>\n<tr>\n<td>200</td>\n<td>Success</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>POST</strong> VERIFICATION API<br><code>{{base-url}}/electricity-fetch-bill</code></p>\n<h2 id=\"request-json\">REQUEST JSON</h2>\n<h3 id=\"body-params\">BODY PARAMS</h3>\n<ul>\n<li>Request Number required:-Request Number needs to be verified.</li>\n<li>Vendor required:-Vendor needs to be verified.</li>\n<li>API Method required:-API Method needs to be verified.</li>\n<li>Extra Param required:-EXTRA PARAM needs to be verified</li>\n</ul>\n<h2 id=\"output\">OUTPUT</h2>\n<h3 id=\"invalid-request-number\">INVALID REQUEST NUMBER</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-css\">\n{\n  \"responseCode\": \"204\",\n  \"responseMessage\": \"Please provide a Request Number.\"\n}\n\n\n</code></pre>\n<h3 id=\"invalid-vendor\">INVALID VENDOR</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-css\">\n{\n  \"responseCode\": \"204\",\n  \"responseMessage\": \"Please provide the Vendor Name.\"\n}\n\n\n</code></pre>\n<h3 id=\"invalid-api-method\">INVALID API METHOD</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-css\">{\n  \"responseCode\": \"204\",\n  \"responseMessage\": \"Please provide a Method.\"\n}\n\n\n</code></pre>\n<h3 id=\"invalid-request\">INVALID REQUEST</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-css\">{\n  \"responseCode\": \"405\",\n  \"responseMessage\": \"GET METHOD NOT ALLOWED\"\n}\n\n\n</code></pre>\n<h3 id=\"electricity-fetch-bill-successful\">Electricity-Fetch-Bill successful</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-css\">{\n  \"responseCode\": \"200\",\n  \"responseMessage\": \"success\",\n  \"billFetchPrice\": \"10000\"\n}\n</code></pre>\n<h6 id=\"sandbox-api-key\">SANDBOX-API-KEY</h6>\n<p>J2CMd8V2VvQtYM72ch</p>\n<h6 id=\"sandbox-product-key\">SANDBOX-PRODUCT-KEY</h6>\n<p>{{Product_key_value}}</p>\n<h6 id=\"merchant-code\">MERCHANT-CODE</h6>\n<p>{{Merchant-Code value}}</p>\n<h6 id=\"service-code\">SERVICE-CODE</h6>\n<p>{{Service-Code value}}</p>\n<p>BODY raw</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-css\"> {\n    \"RequestNumber\":\"&lt;&lt;Request Number&gt;&gt;\",\n    \"vendor\":\"&lt;&lt;vendor&gt;&gt;\",\n    \"apiMethod\":\"&lt;&lt;api Method&gt;&gt;\",\n    \"extraParam\":\"&lt;&lt;extra Param&gt;&gt;\"\n}\n</code></pre>\n<p>Example Request<br><code>Verification API</code></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-css\"> curl--location--request POST '{{base_url}}/electricity-fetch-bill'\\\n --header 'SANDBOX-API-KEY:J2CMd8V2VvQtYM72ch' \\\n --header 'SANDBOX-PRODUCT-KEY:{{SANDBOX-PRODUCT-KEY_value}}' \\\n --header 'MERCHANT-CODE:{{MERCHANT-CODE}}' \\\n  --header 'SERVICE-CODE:{{SERVICE-CODE}}' \\\n --data-raw '{\n          \n                   \n            \"RequestNumber\":\"&lt;&lt;Request Number&gt;&gt;\",\n            \"vendor\":\"&lt;&lt;vendor&gt;&gt;\",\n            \"apiMethod\":\"&lt;&lt;api Method&gt;&gt;\",\n            \"extraParam\":\"&lt;&lt;extra Param&gt;&gt;\"\n                    \n}'\n\n\n</code></pre>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"REQUEST NUMBER","slug":"request-number"},{"content":"VENDOR","slug":"vendor"},{"content":"API METHOD","slug":"api-method"},{"content":"EXTRAPARAM","slug":"extraparam"},{"content":"BASIC","slug":"basic"}],"owner":"10534662","collectionId":"a63c0969-bbd2-44d1-b2be-389e9d65224e","publishedId":"SzYgRaKq","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-04-10T13:02:32.000Z"},"item":[{"name":"http://emer.sudipchatterjee.com/PaythroughPlatformAPIServices/sandbox/api/v1/services/electricity/v1/electricity-fetch-bill","id":"d3b537df-eb45-4798-97cd-0df7eba1c945","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"http://emer.sudipchatterjee.com/PaythroughPlatformAPIServices/sandbox/api/v1/services/electricity/v1/electricity-fetch-bill","description":"<p>MAIN URL</p>\n","urlObject":{"protocol":"http","path":["PaythroughPlatformAPIServices","sandbox","api","v1","services","electricity","v1","electricity-fetch-bill"],"host":["emer","sudipchatterjee","com"],"query":[],"variable":[]}},"response":[{"id":"77e686a1-a7f9-4173-986f-41e2fe6e3642","name":"Default","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"http://emer.sudipchatterjee.com/PaythroughPlatformAPIServices/sandbox/api/v1/services/electricity/v1/electricity-fetch-bill"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":""}],"_postman_id":"d3b537df-eb45-4798-97cd-0df7eba1c945"}]}