## Endpoint 01: Get Specialities

### API
`GET https://api.litedev.com/v1/specialities`


### Response

```json
{
  "status": 1000,
  "message": "data found",
  "data": {
    "info": {
      "specialities": [
        {
          "id": "DP1",
          "name": "Psychiatrist"
        },
        {
          "id": "DP34",
          "name": "Family Medicine"
        },
        {
          "id": "DP6",
          "name": "Pediatrician"
        }
      ]
    }
  }
}
```

## Endpoint 02: Get Speciality Doctors

### API
`GET https://api.litedev.com/v1/doctors?spec_id=DP34`

### Response

```json
{
  "status": "1000",
  "message": "data found",
  "data": {
    "info": {
      "doctor": [
        {
          "doctor_id": "EMP86190",
          "spec_id": "DP34",
          "speciality": "Family medicine",
          "rating": 4.1,
          "classification": "Consultant",
          "first_name": "Prince",
          "last_name": "George",
          "img": "https://static.sanar.sa/mis/db3463232ba2b75706ebe1cf026330fa.jpg",
          "gender": "Male",
          "title": "Dr.",
          "available_slot": "14:00",
          "lang_spoken": "Arabic, English",
          "sub_speciality": "Addiction",
          "name": "Dr. Prince George",
          "license_number": "37287377",
          "national_id": "11737367",
          "qualifications": [
            "Bachelor of dental surgery"
          ],
          "pay_amount": "SAR 90",
          "total_experience": "10 years of experience"
        }
      ]
    }
  }
}
```

## Endpoint 03: Get Doctor Slots

### API
`GET https://api.litedev.com/v1/slots?doctor_id=EMP86190&date=2026-04-28`

### Required Headers

```json
{
  "Authorization": "<partner_token>",
  "Cmt": "<computed_signature>",
  "Content-Type": "application/json"
}
```

### Request

```json
{
  "doctor_id": "EMP86190",
  "date": "2026-04-28"
}
```

### Response

```json
{
  "status": "1000",
  "message": "slots found",
  "data": {
    "info": {
      "doctor_id": "EMP86190",
      "spec_id": "DP34",
      "date": "2026-04-28",
      "department": "Family medicine",
      "classification": "Consultant",
      "image": "https://static.sanar.sa/mis/db3463232ba2b75706ebe1cf026330fa.jpg",
      "amount_with_duration": "90 Riyals for 5 minutes",
      "slots": [
        {
          "start_time": "16:00",
          "end_time": "16:15",
          "slt_id": "1",
          "available": true
        },
        {
          "start_time": "16:15",
          "end_time": "16:30",
          "slt_id": "2",
          "available": true
        }
      ]
    }
  }
}
```

## Endpoint 04: Book Appointment

### API
`POST https://api.litedev.com/v1/book`

### Required Headers

```json
{
  "Authorization": "<partner_token>",
  "Cmt": "<computed_signature>",
  "Content-Type": "application/json"
}
```

### Request

```json
{
  "time": "17:00",
  "date": "2026-05-01",
  "doctor_id": "EMP86190",
  "spec_id": "DP34",
  "patient": {
    "first_name": "Abdul",
    "last_name": "Aziz",
    "dob": "2026-05-01",
    "gender": "M",
    "nationality": "Saudi Arabia",
    "document_id": "1079902217",
    "mid": "1079902217",
    "document_type": "1",
    "maritalStatus": "1",
    "phone_code": "966",
    "phone_no": "556834555"
  }
}
```

### Response

```json
{
  "status": 1000,
  "message": "slot blocked.",
  "data": {
    "booking_id": "dshhshsh",
    "payment_url": "https://pcpayment.litedev.com/?pid=dshhshsh&sc=medgulf&card=true&applepay=true",
    "date": "2026-05-01",
    "start_time": "18:00",
    "end_time": "18:15",
    "spec_id": "DP34",
    "appointment_type": "Video Consultation",
    "status": "Blocked.",
    "fee": 90,
    "vat": 0,
    "toatal": 90,
    "patient": {
      "first_name": "Abdul",
      "last_name": "Aziz"
    },
    "doctor": {
      "doctor_id": "EMP86190",
      "first_name": "Prince",
      "last_name": "George",
      "dept_name": "Family medicine",
      "class_name": "Consultant"
    },
    "insuranceAvailable": true,
    "isFollowUp": false
  }
}
```
