Skip to content

Get Customer Details

Endpoint

GET /api/v1/subscriber/getCustomerDetails

This endpoint retrieves the details of the authenticated subscriber.


Authorization

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

Response

Success Response (200 OK)

{
  "success": true,
  "data": {
    "id": 1,
    "customer_id": "12345",
    "username": "subscriber123",
    "firstname": "John",
    "lastname": "Doe",
    "email": "johndoe@example.com",
    "phone": "1234567890",
    "status": "active"
  }
}

Explanation: - success - Indicates if the request was successful. - data - Contains the subscriber’s details: - id - Unique ID of the subscriber. - customer_id - Customer ID assigned. - username - Subscriber’s username. - firstname - Subscriber’s first name. - lastname - Subscriber’s last name. - email - Subscriber’s email address. - phone - Subscriber’s phone number. - status - Account status (e.g., active, inactive).


Error Response

404 Not Found

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

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


Example Request

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

Example Response

{
  "success": true,
  "data": {
    "id": 1,
    "customer_id": "12345",
    "username": "subscriber123",
    "firstname": "John",
    "lastname": "Doe",
    "email": "johndoe@example.com",
    "phone": "1234567890",
    "status": "active"
  }
}

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