Classic Tech¶
Overview¶
The Classic Tech API provides two main endpoints to manage user details and process payments:
- User Detail API: Retrieves details about a user's available plans and session information.
- Payment API: Commits a payment using the details obtained from the User Detail API.
User Detail API¶
URL: {{base_url}}/api/servicegroup/details/classictech-isp/
METHOD: POST
Service Params:
{
"token": "provided_token",
"reference": "unique reference id",
"username": "classitech_username, e.g., ctdeveloper"
}
Response:
Success¶
{
"status": true,
"token": "d95f1f947faf32d131c01a6e77d75938",
"session_id": 8,
"available_plans": [
{
"package": "Classic-30Mbps",
"duration": "1",
"amount": 1695
},
{
"package": "Classic-30Mbps",
"duration": "3",
"amount": 4403.61
},
{
"package": "Classic-30Mbps",
"duration": "15",
"amount": 12430
}
]
}
Payment API¶
URL: {{base_url}}/api/servicegroup/commit/classictech-isp/
METHOD: POST
Service Params:
{
"token": "",
"session_id": "",
"plan_id": ""
}
Sample Response:
Success Response¶
{
"state": "Success",
"message": "Successfully Completed Transaction",
"extra_data": {},
"status": true,
"id": 2420
}