Files
velocity-pay-springboot/HotRecharge.postman_collection.json

525 lines
14 KiB
JSON

{
"info": {
"_postman_id": "b240d6e9-e5d3-43a1-8d73-170edd02d714",
"name": "HotRecharge",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "569823"
},
"item": [
{
"name": "Auth",
"event": [
{
"listen": "test",
"script": {
"exec": [
"// Parse the response JSON and extract the token",
"const jsonData = pm.response.json();",
"const token = jsonData.token;",
"",
"// Store the token in a collection variable",
"pm.collectionVariables.set(\"token\", token);"
],
"type": "text/javascript",
"packages": {},
"requests": {}
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"AccessCode\": \"vusumuzi@qantra.co.zw\",\n \"Password\": \"Stikbanch@50\"\n}\n",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://ssl.hot.co.zw/api/v3/identity/login",
"protocol": "https",
"host": [
"ssl",
"hot",
"co",
"zw"
],
"path": [
"api",
"v3",
"identity",
"login"
]
}
},
"response": []
},
{
"name": "Get Balance Zesa",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "https://ssl.hot.co.zw/api/v3/account/balance/4",
"protocol": "https",
"host": [
"ssl",
"hot",
"co",
"zw"
],
"path": [
"api",
"v3",
"account",
"balance",
"4"
]
}
},
"response": []
},
{
"name": "Get Balance Airtime",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "https://ssl.hot.co.zw/api/v3/account/balance/3",
"protocol": "https",
"host": [
"ssl",
"hot",
"co",
"zw"
],
"path": [
"api",
"v3",
"account",
"balance",
"3"
]
}
},
"response": []
},
{
"name": "Get Products",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "https://ssl.hot.co.zw/api/v3/products/",
"protocol": "https",
"host": [
"ssl",
"hot",
"co",
"zw"
],
"path": [
"api",
"v3",
"products",
""
]
}
},
"response": []
},
{
"name": "Check Available Stock",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "https://ssl.hot.co.zw/api/v3/query/stock/41",
"protocol": "https",
"host": [
"ssl",
"hot",
"co",
"zw"
],
"path": [
"api",
"v3",
"query",
"stock",
"41"
]
}
},
"response": []
},
{
"name": "Check Customer",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "https://ssl.hot.co.zw/api/v3/query/customer/41/07088597534",
"protocol": "https",
"host": [
"ssl",
"hot",
"co",
"zw"
],
"path": [
"api",
"v3",
"query",
"customer",
"41",
"07088597534"
]
}
},
"response": [
{
"name": "Check Customer",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "https://ssl.hot.co.zw/api/v3/query/customer/41/07088597534",
"protocol": "https",
"host": [
"ssl",
"hot",
"co",
"zw"
],
"path": [
"api",
"v3",
"query",
"customer",
"41",
"07088597534"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": null,
"header": [
{
"key": ":status",
"value": 200
},
{
"key": "content-length",
"value": "129"
},
{
"key": "content-type",
"value": "application/json; charset=utf-8"
},
{
"key": "server",
"value": ""
},
{
"key": "x-powered-by",
"value": "ASP.NET"
},
{
"key": "strict-transport-security",
"value": "max-age=0; includeSubDomains"
},
{
"key": "date",
"value": "Sat, 02 May 2026 08:29:13 GMT"
}
],
"cookie": [],
"body": "{\n \"accountNumber\": \"07088597534\",\n \"details\": {\n \"AccountName\": \"CHIRINDO LETWINA\\n2144 MARLBOROUGH\",\n \"Status\": \"Active\",\n \"Currency\": \"ZWG\"\n }\n}"
}
]
},
{
"name": "Recharge Airtime",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"AgentReference\": \"278917b4-4180-413d-9a31-59fcd4b9b654\",\n \"ProductId\": 101,\n \"Target\": \"0773591219\",\n \"Amount\": 0.1\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://ssl.hot.co.zw/api/v3/products/recharge",
"protocol": "https",
"host": [
"ssl",
"hot",
"co",
"zw"
],
"path": [
"api",
"v3",
"products",
"recharge"
]
}
},
"response": [
{
"name": "Recharge Airtime",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"AgentReference\": \"278917b4-4180-413d-9a31-59fcd4b9b654\",\n \"ProductId\": 101,\n \"Target\": \"0773591219\",\n \"Amount\": 0.1\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://ssl.hot.co.zw/api/v3/products/recharge",
"protocol": "https",
"host": [
"ssl",
"hot",
"co",
"zw"
],
"path": [
"api",
"v3",
"products",
"recharge"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": null,
"header": [
{
"key": ":status",
"value": 200
},
{
"key": "content-length",
"value": "218"
},
{
"key": "content-type",
"value": "application/json; charset=utf-8"
},
{
"key": "server",
"value": ""
},
{
"key": "x-powered-by",
"value": "ASP.NET"
},
{
"key": "strict-transport-security",
"value": "max-age=0; includeSubDomains"
},
{
"key": "date",
"value": "Sat, 02 May 2026 08:37:11 GMT"
}
],
"cookie": [],
"body": "{\n \"successful\": true,\n \"rechargeId\": 190356544,\n \"amount\": 0.1,\n \"discount\": 5,\n \"balance\": {\n \"accountTypeId\": 3,\n \"name\": \"USD\",\n \"balance\": 49.715\n },\n \"message\": \"OK\",\n \"rechargeData\": {\n \"Network\": \"Econet\",\n \"Target\": \"0773591219\",\n \"Cost\": \"0.09500\"\n }\n}"
}
]
},
{
"name": "Recharge ZESA",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"AgentReference\": \"{{$guid}}\",\n \"ProductId\": 41,\n \"Target\": \"07088597534\",\n \"Amount\": 5,\n \"RechargeOptions\": [\n {\n \"Name\": \"NotifyNumber\",\n \"ParameterType\": \"String\",\n \"Value\": \"0773591219\"\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://ssl.hot.co.zw/api/v3/products/recharge",
"protocol": "https",
"host": [
"ssl",
"hot",
"co",
"zw"
],
"path": [
"api",
"v3",
"products",
"recharge"
]
}
},
"response": [
{
"name": "Recharge ZESA",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"AgentReference\": \"{{$guid}}\",\n \"ProductId\": 41,\n \"Target\": \"07088597534\",\n \"Amount\": 5,\n \"RechargeOptions\": [\n {\n \"Name\": \"NotifyNumber\",\n \"ParameterType\": \"String\",\n \"Value\": \"0773591219\"\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://ssl.hot.co.zw/api/v3/products/recharge",
"protocol": "https",
"host": [
"ssl",
"hot",
"co",
"zw"
],
"path": [
"api",
"v3",
"products",
"recharge"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": null,
"header": [
{
"key": ":status",
"value": 200
},
{
"key": "content-length",
"value": "371"
},
{
"key": "content-type",
"value": "application/json; charset=utf-8"
},
{
"key": "server",
"value": ""
},
{
"key": "x-powered-by",
"value": "ASP.NET"
},
{
"key": "strict-transport-security",
"value": "max-age=0; includeSubDomains"
},
{
"key": "date",
"value": "Sat, 02 May 2026 08:34:46 GMT"
}
],
"cookie": [],
"body": "{\n \"successful\": true,\n \"rechargeId\": 190356513,\n \"amount\": 5,\n \"discount\": 1.2,\n \"balance\": {\n \"accountTypeId\": 4,\n \"name\": \"Utility USD\",\n \"balance\": 45.06\n },\n \"message\": \"Transaction processed successfully\",\n \"rechargeData\": {\n \"Network\": \"ZESA\",\n \"Target\": \"07088597534\",\n \"Cost\": \"4.9400\",\n \"Token\": \"0099 4439 8936 4293 1759\",\n \"Units\": \"57.86\",\n \"NetAmount\": \"125.29\",\n \"TaxAmount\": \"0\",\n \"Levy\": \"7.52\",\n \"Arrears\": \"0\"\n }\n}"
}
]
}
],
"variable": [
{
"key": "token",
"value": ""
}
]
}