Skip to content

Get Available Services

Endpoint

GET /api/v1/subscriber/getAvailableServices

This endpoint retrieves a list of services available for the authenticated subscriber.


Authorization

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

Example Request

curl -X GET "https://yourispcrmdomain/api/v1/subscriber/getAvailableServices" \
-H "Authorization: Bearer YOURAPITOKENHERE"

Response

Success Response (200 OK)

{
  "success": true,
  "data": [
    "Internet",
    "IPTV",
    "VoIP"
  ]
}

Explanation: - success - Indicates if the request was successful. - data - An array of available services: - Each service is represented as a string (e.g., Internet, IPTV, VoIP).


Error Responses

404 Not Found

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

Explanation: - This error occurs if the subscriber cannot be found.


Example Response

{
  "success": true,
  "data": [
    "Internet",
    "IPTV",
    "VoIP"
  ]
}

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