Skip to content

Get Plan Details

Endpoint

GET /api/v1/subscriber/getPlanDetails

This endpoint retrieves detailed information about a specific plan for the authenticated subscriber.


Authorization

  • Type: Bearer Token
  • Header:
    Authorization: Bearer <your_token_here>
    

Query Parameters

Parameter Type Required Description
id integer Yes ID of the plan to retrieve.

Example Request

curl -X GET "https://yourispcrmdomain/api/v1/subscriber/getPlanDetails?id=1" \
-H "Authorization: Bearer YOURAPITOKENHERE"

Response

Success Response (200 OK)

{
  "success": true,
  "data": {
    "plan_id": 1,
    "name": "Basic Plan",
    "price": 20.00,
    "speed": "50Mbps",
    "description": "Affordable plan for casual browsing",
    "data_limit": "100GB",
    "validity": "30 days",
    "additional_benefits": ["Free Wi-Fi router", "No installation fee"]
  }
}

Explanation: - success - Indicates if the request was successful. - data - Contains detailed information about the plan: - plan_id - Unique ID of the plan. - name - Name of the plan. - price - Monthly cost of the plan. - speed - Internet speed offered. - description - Brief description of the plan. - data_limit - Monthly data limit. - validity - Duration of the plan. - additional_benefits - List of extra benefits included in the plan.


Error Responses

404 Not Found

{
  "success": false,
  "message": "Plan not found"
}

Explanation: - This error occurs if the specified plan ID does not exist.


Example Response

{
  "success": true,
  "data": {
    "plan_id": 1,
    "name": "Basic Plan",
    "price": 20.00,
    "speed": "50Mbps",
    "description": "Affordable plan for casual browsing",
    "data_limit": "100GB",
    "validity": "30 days",
    "additional_benefits": ["Free Wi-Fi router", "No installation fee"]
  }
}

For further assistance, contact our support team at support@netgroot.com.