HashCNet V1¶
This document provides the necessary information for interacting with the HashCNet APIs, detailing the required parameters and expected responses for both fetching user details and processing payments.
Note: Below is the list of ISPs under HashCNet and their service slugs:
-
Askina:
askina
¶ -
Kshireshwar Network:
kshireshwar-network
¶ -
Life Net:
life-net
¶ -
Limpid ICT Solution:
limpid-ict-solution
¶ -
LNT Infotech:
lnt-infotech
¶ -
Mega Cable Net:
mega-cable-net
¶ -
Nepalink:
nepalink
¶
Type: Multi Step API¶
User Detail Fetch API¶
- Request URL:
{{base_url}}/api/servicegroup/details/hashcnet/
- Request Method: POST
Service Params¶
{
"token": "token",
"reference": "\ unique reference\ ",
"username": "pnt_test",
"service_slug": "lnt-infotech" // Service slug from above list
}
Response Example¶
{
"package_name": "FOC users / 6M",
"total_amount": 10,
"session_id": 21,
"status": true
}
Payment API¶
- Request URL:
{{base_url}}/api/servicegroup/commit/hashcnet/
- Request Method: POST
Service Params¶
{
"session_id": 172,
"reference": "reference123",
"token": "Test_token",
"package_name": "FOC users / 6M", // Package name from the service params in detail fetch API
"amount": 1150.00
}
Response Example¶
{
"status": true,
"state": "Success",
"message": "Successfully Completed Transaction",
"extra_data": {},
"detail": "Payment successfully created.",
"credits_consumed": 1150.0,
"credits_available": 96790035.7550002,
"id": 5884
}