{ "info": { "_postman_id": "6bf0787e-be77-4ee1-a5bf-2923d5de84c3", "name": "03868091_AsrDadeh", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "21899837" }, "item": [ { "name": "00046742_VeneshToken", "event": [ { "listen": "test", "script": { "exec": [ "var ResponseJson;\r", "var Resultjson;\r", "var VisualJson;\r", "var Template;\r", "\r", "try{\r", " ResponseJson = pm.response.json();\r", " Resultjson = JSON.parse(ResponseJson.result.result);\r", " \r", " ResponseJson[\"result.result\"] = Resultjson;\r", " pm.globals.set(\"AsrDadehVeneshTest_AccessToken\", Resultjson.access_token);\r", "} catch(Ex){\r", " try{\r", " ResponseJson = pm.response.json();\r", " Resultjson = JSON.parse(ResponseJson.result.result);\r", " ResponseJson[\"result.result\"] = Resultjson;\r", " } catch(Ex){}\r", "}\r", "\r", "try{\r", " VisualJson = JSON.stringify(ResponseJson, \"\\n\", 4);\r", " VisualJson = VisualJson.replace(\" \\\"result.result\\\": {\", \"\\n \\\"result.result\\\": { // added as butified result\");\r", " Template = `
{{response}}
`;\r", " pm.visualizer.set(Template, {\r", " response: VisualJson\r", " });\r", "} catch(Ex){}\r", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "_token_", "type": "text", "value": "{{TokenSupport}}", "description": "Support-Production" }, { "key": "_token_issuer_", "type": "text", "value": "1" }, { "key": "Content-Type", "type": "text", "value": "application/x-www-form-urlencoded" } ], "body": { "mode": "urlencoded", "urlencoded": [ { "key": "scProductId", "value": "46742", "description": "Production", "type": "text" }, { "key": "scApiKey", "value": "{{ApiKey46742Support}}", "description": "Support-Production", "type": "text" } ] }, "url": { "raw": "https://api.pod.ir/srv/sc/nzh/doServiceCall", "protocol": "https", "host": [ "api", "pod", "ir" ], "path": [ "srv", "sc", "nzh", "doServiceCall" ] } }, "response": [ { "name": "00046742_Success", "originalRequest": { "method": "POST", "header": [ { "key": "_token_", "type": "text", "value": "c01***jI4", "description": "Support-Production" }, { "key": "_token_issuer_", "type": "text", "value": "1" }, { "key": "Content-Type", "type": "text", "value": "application/x-www-form-urlencoded" } ], "body": { "mode": "urlencoded", "urlencoded": [ { "key": "scProductId", "value": "46742", "description": "Production", "type": "text" }, { "key": "scApiKey", "value": "4fe***xMA", "description": "Support-Production", "type": "text" } ] }, "url": { "raw": "https://api.pod.ir/srv/sc/nzh/doServiceCall", "protocol": "https", "host": [ "api", "pod", "ir" ], "path": [ "srv", "sc", "nzh", "doServiceCall" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Sun, 22 Oct 2023 11:35:28 GMT" }, { "key": "Access-Control-Max-Age", "value": "86400" }, { "key": "Access-Control-Allow-Origin", "value": "*" }, { "key": "Access-Control-Allow-Methods", "value": "GET, PUT, POST, OPTIONS, DELETE, PATCH" }, { "key": "Access-Control-Allow-Headers", "value": "authorization, Access-Control-Allow-Headers, Origin, Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers, _token_, _token_issuer_, _ott_, _timestamp_, _timezone_, _calendar_, timeStamp, apiToken, idToken, refreshtoken, accesstoken, refreshToken, accessToken" }, { "key": "Content-Type", "value": "application/json;charset=utf-8" }, { "key": "Set-Cookie", "value": "JSESSIONID=node0fre9llzg7kqyltuneczk3p6r4898168.node0; Path=/; Secure" }, { "key": "Expires", "value": "Thu, 01 Jan 1970 00:00:00 GMT" }, { "key": "Content-Length", "value": "1527" } ], "cookie": [], "body": "{\n \"hasError\": false,\n \"messageId\": 0,\n \"referenceNumber\": \"112***044\",\n \"errorCode\": 0,\n \"count\": 0,\n \"ott\": \"ff2***e16\",\n \"result\": {\n \"result\": \"{\\\"token_type\\\":\\\"Bearer\\\",\\\"access_token\\\":\\\"eyJ***a3o\\\",\\\"expiration_time\\\":86400}\",\n \"header\": {\n \"Server\": \"nginx/1.20.1\",\n \"Cache-Control\": \"no-store, private\",\n \"Connection\": \"keep-alive\",\n \"Vary\": \"Accept-Encoding,User-Agent\",\n \"Upgrade\": \"h2,h2c\",\n \"Date\": \"Sun, 22 Oct 2023 11:35:29 GMT\",\n \"pragma\": \"no-cache\",\n \"Content-Type\": \"application/json; charset=UTF-8\",\n \"scReferenceNumber\": \"112***044\"\n },\n \"statusCode\": 200\n },\n \"scProductId\": 46742,\n\n \"result.result\": { // added as butified result\n \"token_type\": \"Bearer\",\n \"access_token\": \"eyJ***a3o\",\n \"expiration_time\": 86400\n }\n}" } ] }, { "name": "00055265_VeneshBillInquiry", "event": [ { "listen": "prerequest", "script": { "exec": [ "var RequestJson;\r", "var Authorization;\r", "\r", "RequestJson = pm.request.toJSON();\r", "Authorization = RequestJson.header.filter(function(element){ return element.key == \"Authorization\"; })[0];\r", "Authorization.value = Authorization.value.replace(/{{AsrDadehVeneshTest_AccessToken}}/g, pm.globals.get(\"AsrDadehVeneshTest_AccessToken\"));\r", "pm.test(\"AsrDadehVeneshTest_AccessToken: \\\"\" + pm.globals.get(\"AsrDadehVeneshTest_AccessToken\") + \"\\\"\", true);\r", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "var ResponseJson;\r", "var Resultjson;\r", "var VisualJson;\r", "var Template;\r", "\r", "try{\r", " ResponseJson = pm.response.json();\r", " Resultjson = JSON.parse(ResponseJson.result.result);\r", "\r", " ResponseJson[\"result.result\"] = Resultjson;\r", "} catch(Ex){\r", " try{\r", " ResponseJson = pm.response.json();\r", " Resultjson = JSON.parse(ResponseJson.result.result);\r", " ResponseJson[\"result.result\"] = Resultjson;\r", " } catch(Ex){}\r", "}\r", "\r", "try{\r", " VisualJson = JSON.stringify(ResponseJson, \"\\n\", 4);\r", " VisualJson = VisualJson.replace(\" \\\"result.result\\\": {\", \"\\n \\\"result.result\\\": { // added as butified result\");\r", " Template = `
{{response}}
`;\r", " pm.visualizer.set(Template, {\r", " response: VisualJson\r", " });\r", "} catch(Ex){}\r", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "_token_", "value": "{{TokenSupport}}", "type": "text", "description": "Support-Production" }, { "key": "_token_issuer_", "value": "1", "type": "text" }, { "key": "Authorization", "value": "Bearer {{AsrDadehVeneshTest_AccessToken}}", "type": "text", "description": "from 00046742_VeneshToken" } ], "body": { "mode": "urlencoded", "urlencoded": [ { "key": "scProductId", "value": "55265", "description": "Production", "type": "text" }, { "key": "scApiKey", "value": "{{ApiKey55265Support}}", "description": "Support-Production", "type": "text" }, { "key": "body", "value": "{ \"Type\": \"Mobile\", \"Parameter\": \"093***517\", \"SecondParameter\": \"Irancell\" }", "type": "text" } ] }, "url": { "raw": "https://api.pod.ir/srv/sc/nzh/doServiceCall", "protocol": "https", "host": [ "api", "pod", "ir" ], "path": [ "srv", "sc", "nzh", "doServiceCall" ] } }, "response": [ { "name": "00055265_Success", "originalRequest": { "method": "POST", "header": [ { "key": "_token_", "value": "c01***jI4", "type": "text", "description": "Support-Production" }, { "key": "_token_issuer_", "value": "1", "type": "text" }, { "key": "Authorization", "value": "Bearer eyJ***a3o", "type": "text", "description": "from 00046742_VeneshToken" } ], "body": { "mode": "urlencoded", "urlencoded": [ { "key": "scProductId", "value": "55265", "description": "Production", "type": "text" }, { "key": "scApiKey", "value": "b71***xMA", "description": "Support-Production", "type": "text" }, { "key": "body", "value": "{ \"Type\": \"Mobile\", \"Parameter\": \"093***517\" }", "type": "text" } ] }, "url": { "raw": "https://api.pod.ir/srv/sc/nzh/doServiceCall", "protocol": "https", "host": [ "api", "pod", "ir" ], "path": [ "srv", "sc", "nzh", "doServiceCall" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Sun, 22 Oct 2023 09:58:24 GMT" }, { "key": "Access-Control-Max-Age", "value": "86400" }, { "key": "Access-Control-Allow-Origin", "value": "*" }, { "key": "Access-Control-Allow-Methods", "value": "GET, PUT, POST, OPTIONS, DELETE, PATCH" }, { "key": "Access-Control-Allow-Headers", "value": "authorization, Access-Control-Allow-Headers, Origin, Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers, _token_, _token_issuer_, _ott_, _timestamp_, _timezone_, _calendar_, timeStamp, apiToken, idToken, refreshtoken, accesstoken, refreshToken, accessToken" }, { "key": "Content-Type", "value": "application/json;charset=utf-8" }, { "key": "Set-Cookie", "value": "JSESSIONID=node0jd31at4d24z83qovltzof8y1403191.node0; Path=/; Secure" }, { "key": "Expires", "value": "Thu, 01 Jan 1970 00:00:00 GMT" }, { "key": "Content-Length", "value": "646" } ], "cookie": [], "body": "{\n \"hasError\": false,\n \"messageId\": 0,\n \"referenceNumber\": \"112***348\",\n \"errorCode\": 0,\n \"count\": 0,\n \"ott\": \"83d***daa\",\n \"result\": {\n \"result\": \"{\\\"Status\\\":0,\\\"Message\\\":\\\"Success\\\",\\\"Data\\\":{\\\"Amount\\\":\\\"468000\\\",\\\"BillId\\\":\\\"0662889993556\\\",\\\"PayId\\\":\\\"46820501\\\",\\\"Date\\\":\\\"\\\"},\\\"payableCall\\\":true}\",\n \"header\": {\n \"expires\": \"-1\",\n \"Server\": \"nginx/1.20.1\",\n \"Cache-Control\": \"private, must-revalidate\",\n \"Connection\": \"keep-alive\",\n \"Vary\": \"Authorization,Accept-Encoding,User-Agent\",\n \"Upgrade\": \"h2,h2c\",\n \"Date\": \"Sun, 22 Oct 2023 09:58:25 GMT\",\n \"pragma\": \"no-cache\",\n \"Content-Type\": \"application/json\",\n \"scReferenceNumber\": \"112***348\"\n },\n \"statusCode\": 200\n },\n \"scProductId\": 55265,\n\n \"result.result\": { // added as butified result\n \"Status\": 0,\n \"Message\": \"Success\",\n \"Data\": {\n \"Amount\": \"468000\",\n \"BillId\": \"0662889993556\",\n \"PayId\": \"46820501\",\n \"Date\": \"\"\n },\n \"payableCall\": true\n }\n}" }, { "name": "00055265_Status158", "originalRequest": { "method": "POST", "header": [ { "key": "_token_", "value": "c01***jI4", "type": "text", "description": "Support-Production" }, { "key": "_token_issuer_", "value": "1", "type": "text" }, { "key": "Authorization", "value": "Bearer eyJ***a3o", "type": "text", "description": "from 00046742_VeneshToken" } ], "body": { "mode": "urlencoded", "urlencoded": [ { "key": "scProductId", "value": "55265", "description": "Production", "type": "text" }, { "key": "scApiKey", "value": "b71***xMA", "description": "Support-Production", "type": "text" }, { "key": "body", "value": "{ \"Type\": \"Mobile\", \"Parameter\": \"091***309\" }", "type": "text" } ] }, "url": { "raw": "https://api.pod.ir/srv/sc/nzh/doServiceCall", "protocol": "https", "host": [ "api", "pod", "ir" ], "path": [ "srv", "sc", "nzh", "doServiceCall" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Sun, 22 Oct 2023 09:59:58 GMT" }, { "key": "Access-Control-Max-Age", "value": "86400" }, { "key": "Access-Control-Allow-Origin", "value": "*" }, { "key": "Access-Control-Allow-Methods", "value": "GET, PUT, POST, OPTIONS, DELETE, PATCH" }, { "key": "Access-Control-Allow-Headers", "value": "authorization, Access-Control-Allow-Headers, Origin, Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers, _token_, _token_issuer_, _ott_, _timestamp_, _timezone_, _calendar_, timeStamp, apiToken, idToken, refreshtoken, accesstoken, refreshToken, accessToken" }, { "key": "Content-Type", "value": "application/json;charset=utf-8" }, { "key": "Set-Cookie", "value": "JSESSIONID=node01hwc0rn0o5qkjy8temw27g0rg4680798.node0; Path=/; Secure" }, { "key": "Expires", "value": "Thu, 01 Jan 1970 00:00:00 GMT" }, { "key": "Content-Length", "value": "623" } ], "cookie": [], "body": "{\n \"hasError\": false,\n \"messageId\": 0,\n \"referenceNumber\": \"112***757\",\n \"errorCode\": 0,\n \"count\": 0,\n \"ott\": \"62c***bc1\",\n \"result\": {\n \"result\": \"{\\\"Status\\\":158,\\\"Message\\\":\\\"The Entered Parameter Does Not Belong To This Operator or Is Not Permanent Number\\\",\\\"payableCall\\\":true}\",\n \"header\": {\n \"expires\": \"-1\",\n \"Server\": \"nginx/1.20.1\",\n \"Cache-Control\": \"private, must-revalidate\",\n \"Connection\": \"keep-alive\",\n \"Vary\": \"Authorization,Accept-Encoding,User-Agent\",\n \"Upgrade\": \"h2,h2c\",\n \"Date\": \"Sun, 22 Oct 2023 10:00:00 GMT\",\n \"pragma\": \"no-cache\",\n \"Content-Type\": \"application/json\",\n \"scReferenceNumber\": \"112***757\"\n },\n \"statusCode\": 200\n },\n \"scProductId\": 55265,\n\n \"result.result\": { // added as butified result\n \"Status\": 158,\n \"Message\": \"The Entered Parameter Does Not Belong To This Operator or Is Not Permanent Number\",\n \"payableCall\": true\n }\n}" }, { "name": "00055265_SuccessWithTarabord", "originalRequest": { "method": "POST", "header": [ { "key": "_token_", "value": "c01***jI4", "type": "text", "description": "Support-Production" }, { "key": "_token_issuer_", "value": "1", "type": "text" }, { "key": "Authorization", "value": "Bearer eyJ***a3o", "type": "text", "description": "from 00046742_VeneshToken" } ], "body": { "mode": "urlencoded", "urlencoded": [ { "key": "scProductId", "value": "55265", "description": "Production", "type": "text" }, { "key": "scApiKey", "value": "b71***xMA", "description": "Support-Production", "type": "text" }, { "key": "body", "value": "{ \"Type\": \"Mobile\", \"Parameter\": \"091***309\", \"SecondParameter\": \"Irancell\" }", "type": "text" } ] }, "url": { "raw": "https://api.pod.ir/srv/sc/nzh/doServiceCall", "protocol": "https", "host": [ "api", "pod", "ir" ], "path": [ "srv", "sc", "nzh", "doServiceCall" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Sun, 22 Oct 2023 10:07:03 GMT" }, { "key": "Access-Control-Max-Age", "value": "86400" }, { "key": "Access-Control-Allow-Origin", "value": "*" }, { "key": "Access-Control-Allow-Methods", "value": "GET, PUT, POST, OPTIONS, DELETE, PATCH" }, { "key": "Access-Control-Allow-Headers", "value": "authorization, Access-Control-Allow-Headers, Origin, Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers, _token_, _token_issuer_, _ott_, _timestamp_, _timezone_, _calendar_, timeStamp, apiToken, idToken, refreshtoken, accesstoken, refreshToken, accessToken" }, { "key": "Content-Type", "value": "application/json;charset=utf-8" }, { "key": "Set-Cookie", "value": "JSESSIONID=node0u6fru4zjgjgw1rnwtro9xkpyj1417392.node0; Path=/; Secure" }, { "key": "Expires", "value": "Thu, 01 Jan 1970 00:00:00 GMT" }, { "key": "Content-Length", "value": "646" } ], "cookie": [], "body": "{\n \"hasError\": false,\n \"messageId\": 0,\n \"referenceNumber\": \"112***601\",\n \"errorCode\": 0,\n \"count\": 0,\n \"ott\": \"c49***865\",\n \"result\": {\n \"result\": \"{\\\"Status\\\":0,\\\"Message\\\":\\\"Success\\\",\\\"Data\\\":{\\\"Amount\\\":\\\"462000\\\",\\\"BillId\\\":\\\"0823041893555\\\",\\\"PayId\\\":\\\"46220575\\\",\\\"Date\\\":\\\"\\\"},\\\"payableCall\\\":true}\",\n \"header\": {\n \"expires\": \"-1\",\n \"Server\": \"nginx/1.20.1\",\n \"Cache-Control\": \"private, must-revalidate\",\n \"Connection\": \"keep-alive\",\n \"Vary\": \"Authorization,Accept-Encoding,User-Agent\",\n \"Upgrade\": \"h2,h2c\",\n \"Date\": \"Sun, 22 Oct 2023 10:07:17 GMT\",\n \"pragma\": \"no-cache\",\n \"Content-Type\": \"application/json\",\n \"scReferenceNumber\": \"112***601\"\n },\n \"statusCode\": 200\n },\n \"scProductId\": 55265,\n\n \"result.result\": { // added as butified result\n \"Status\": 0,\n \"Message\": \"Success\",\n \"Data\": {\n \"Amount\": \"462000\",\n \"BillId\": \"0823041893555\",\n \"PayId\": \"46220575\",\n \"Date\": \"\"\n },\n \"payableCall\": true\n }\n}" } ] }, { "name": "43962-استعلام دسته ای", "request": { "method": "POST", "header": [ { "key": "_token_", "value": "{{API_TOKEN}}", "type": "text" }, { "key": "_token_issuer_", "value": "1", "type": "text" }, { "key": "Content-Type", "value": "application/x-www-form-urlencoded", "type": "text" }, { "key": "Authorization", "value": "[token_type] [access_token]", "type": "text", "description": "دریافتی از سرویس دریافت توکن - [token_type] [access_token]" } ], "body": { "mode": "urlencoded", "urlencoded": [ { "key": "scProductId", "value": "43962", "description": "*", "type": "text" }, { "key": "scApiKey", "value": "", "description": "*", "type": "text" }, { "key": "body", "value": "{\"Bills\":[{\"Type\":\"Electricity\",\"Parameter\":\"\"},{\"Type\":\"Electricity\",\"Parameter\":\"\"}]}", "description": "*Type : نوع قبض
قبض آب - Water
قبض برق - Electricity
قبض گاز - Gas
تلفن ثابت (پایان دوره) - Tel
تلفن ثابت (بروز) - TelNow
تلفن همراه (پایان دوره) - Mobile
تلفن همراه (بروز) - MobileNow
خلافی خودرو - DrivingOffense *** Parameter : مقدار مورد استعلام
قبض آب: شناسه قبض
قبض برق: شناسه قبض
قبض گاز: شماره اشتراک
تلفن ثابت: شماره تلفن به همراه کد
تلفن همراه: شماره تلفن همراه
خلافی خودرو: شماره 8 یا 9 رقمی پشت کارت خودرو *** مقدار دوم استعلام
قبض آب: 6 رقم آخر شماره شناسایی در قبض
قبض تلفن: شماره دوره دو ماهه (برای سال 98: از 981 الی 986) *** جزئیات قبض
(مقدار: \"0\" برای غیرفعال بودن Info و \"1\" برای فعال بودن Info) ---- دو پارامتر آخر اختیاری ", "type": "text" } ] }, "url": { "raw": "https://api.pod.ir/srv/sc/nzh/doServiceCall", "protocol": "https", "host": [ "api", "pod", "ir" ], "path": [ "srv", "sc", "nzh", "doServiceCall" ] } }, "response": [] }, { "name": "44093-تاریخچه قبوض", "request": { "method": "POST", "header": [ { "key": "_token_", "type": "text", "value": "{{API_TOKEN}}" }, { "key": "_token_issuer_", "type": "text", "value": "1" }, { "key": "Content-Type", "type": "text", "value": "application/x-www-form-urlencoded" }, { "description": "دریافتی از سرویس دریافت توکن - [token_type] [access_token]", "key": "Authorization", "type": "text", "value": "[token_type] [access_token]" } ], "body": { "mode": "urlencoded", "urlencoded": [ { "key": "scProductId", "value": "44093", "description": "*", "type": "text" }, { "key": "scApiKey", "value": "", "description": "*", "type": "text" }, { "key": "body", "value": "{ \"Type\": \"Electricity\", \"Parameter\": \"\" }", "description": "*Type : نوع قبض
قبض آب – Water
قبض برق – Electricity
قبض گاز – Gas *** Parameter: مقدار مورد استعلام
قبض آب : شناسه قبض
قبض برق: شناسه قبض
قبض گاز: شماره اشتراک", "type": "text" } ] }, "url": { "raw": "https://api.pod.ir/srv/sc/nzh/doServiceCall", "protocol": "https", "host": [ "api", "pod", "ir" ], "path": [ "srv", "sc", "nzh", "doServiceCall" ] } }, "response": [] } ] }