Skip to content

HashCNet V2

This document provides the necessary information for interacting with the HashCNet V2 API, detailing the required parameters and expected responses for fetching user details.

Note: Below is the list of ISPs under HashCNet and their service slugs:

  1. Airson Internet: airson-internet
  2. Broadband Solutions: broadband-solutions
  3. Everest Wireless: everest-wireless
  4. Fast Speed: fast-speed
  5. Fiberworld Communication: fiberworld-communication
  6. Hons: hons
  7. Janaki Cable Network: janaki-cable-network
  8. Sahaj Network: sahaj-network
  9. Super Eight Networks: super-eight-networks
  10. Ultra Net: ultra-net
  11. Unified Communication ISP: unified-communication-isp
  12. BBN Internet: bbn-internet
  13. Pokhara Internet Lekhnath: pokhara-internet-lekhnath
  14. VNS: vns

Type: Multi Step API

User Detail Fetch API

  • Request URL: {{base_url}}/api/servicegroup/details/hashcnet-v2/
  • Request Method: POST

Service Params


{
    "token": "token",
    "reference": "unique reference",
    "username": "jeetenaug4",
    "service_slug": "\ service_slug\ "  // Service slug from above list
}

Response Example


{
    "customer_name": "jeetenaug4(23123213)",
    "current_plan": "Fiber Gold",
    "accept_advance_payment": true,
    "days_remaining": 314,
    "has_due": "false",
    "plan_detail": [
        {
            "duration": "1 month(s)",
            "duration_title": "1 month",
            "total_cost": 1232.0,
            "duration_code": "1"
        },
        {
            "duration": "3 month(s)",
            "duration_title": "3 months",
            "total_cost": 7876.0,
            "duration_code": "3"
        },
        {
            "duration": "6 month(s)",
            "duration_title": "6 months",
            "total_cost": 15750.0,
            "duration_code": "6"
        },
        {
            "duration": "12 month(s)",
            "duration_title": "12 months",
            "total_cost": 15750.0,
            "duration_code": "12"
        },
        {
            "duration": "custom_2 month(s)",
            "duration_title": "15 Days",
            "total_cost": 1634.0,
            "duration_code": "custom_2"
        },
        {
            "duration": "custom_3 month(s)",
            "duration_title": "60 Days",
            "total_cost": 859.0,
            "duration_code": "custom_3"
        }
    ],
    "available_packages": [
        {
            "title": "Fiber Gold",
            "package_code": 9,
            "duration": [
                {
                    "total_cost": 1232,
                    "duration_code": "1",
                    "duration_title": "1 Month"
                },
                {
                    "total_cost": 7876,
                    "duration_code": "3",
                    "duration_title": "3 Months"
                },
                {
                    "total_cost": 15750,
                    "duration_code": "6",
                    "duration_title": "6 Months"
                },
                {
                    "total_cost": 15750,
                    "duration_code": "12",
                    "duration_title": "12 Months"
                },
                {
                    "total_cost": 1634,
                    "duration_code": "custom_2",
                    "duration_title": "15 Days"
                },
                {
                    "total_cost": 859,
                    "duration_code": "custom_3",
                    "duration_title": "60 Days"
                }
            ]
        },
        {
            "title": "FTTH-50Mbps",
            "package_code": 9,
            "duration": [
                {
                    "total_cost": 999,
                    "duration_code": "1",
                    "duration_title": "1 Month"
                },
                {
                    "total_cost": 2800,
                    "duration_code": "3",
                    "duration_title": "3 Months"
                },
                {
                    "total_cost": 5300,
                    "duration_code": "6",
                    "duration_title": "6 Months"
                },
                {
                    "total_cost": 9999,
                    "duration_code": "12",
                    "duration_title": "12 Months"
                },
                {
                    "total_cost": 13500,
                    "duration_code": "custom_1",
                    "duration_title": "12M + 1 IPTV"
                }
            ]
        },
        {
            "title": "TESTING",
            "package_code": 71,
            "duration": [
                {
                    "total_cost": 2,
                    "duration_code": "1",
                    "duration_title": "1 Month"
                }
            ]
        }
    ],
    "session_id": 6466,
    "status": true
}

Payment API

Request URL: {{base_url}}/api/servicegroup/commit/hashcnet-v2/

Request Method: POST

Service Params:


{  
    "session id": 6466, \\ session id from detail fetch API     
    “reference”: “unique identifier”,  
    "token": "Test token",  
    "package code": “9”,  
    “duration code”:”1”,  
    “amount": 999.00  
}

Response:


{  
    "status": true,  
    "state": "Success",  
    "message": "Successfully Completed Transaction",  
    "extra data": {},  
    "detail": "2532",  
    "credits consumed": 999.0,  
    "credits available": 9995285594.37663,  
    "id": 70704  
}