Skip to content

Get Customer Tickets

Endpoint

GET /api/v1/subscriber/getCustomerTickets

This endpoint retrieves a list of support tickets created by the authenticated subscriber.


Authorization

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

Example Request

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

Response

Success Response (200 OK)

{
  "success": true,
  "data": [
    {
      "ticket_id": 101,
      "subject": "Internet not working",
      "status": "Open",
      "priority": "High",
      "created_at": "2023-12-01T10:00:00Z",
      "updated_at": "2023-12-01T12:00:00Z"
    },
    {
      "ticket_id": 102,
      "subject": "Billing issue",
      "status": "Closed",
      "priority": "Medium",
      "created_at": "2023-11-15T09:00:00Z",
      "updated_at": "2023-11-20T10:00:00Z"
    }
  ]
}

Explanation: - success - Indicates if the request was successful. - data - An array of support tickets: - ticket_id - Unique ID of the support ticket. - subject - Subject of the ticket. - status - Current status of the ticket (e.g., Open, Closed). - priority - Priority level of the ticket (e.g., High, Medium, Low). - created_at - Date and time when the ticket was created. - updated_at - Date and time when the ticket was last updated.


Error Responses

401 Unauthorized

{
  "success": false,
  "message": "Unauthorized"
}

Explanation: - This error occurs if the Bearer Token is invalid or missing.


404 Not Found

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

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


Example Response

{
  "success": true,
  "data": [
    {
      "ticket_id": 101,
      "subject": "Internet not working",
      "status": "Open",
      "priority": "High",
      "created_at": "2023-12-01T10:00:00Z",
      "updated_at": "2023-12-01T12:00:00Z"
    },
    {
      "ticket_id": 102,
      "subject": "Billing issue",
      "status": "Closed",
      "priority": "Medium",
      "created_at": "2023-11-15T09:00:00Z",
      "updated_at": "2023-11-20T10:00:00Z"
    }
  ]
}

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