## Endpoint 01: Get Services

### API
`POST https://extct.litedev.com/v1/services`

### Request

```json
{
  "prd_id": "ST04"
}
```

### Response

```json
{
  "status": 1000,
  "message": "Success",
  "data": {
    "packages": [
      {
        "id": "MPK5",
        "name": "Health Check Packages",
        "desc": "This test is considered as one of the significant tests that are done for the early diagnosis of anemia, and it is used to calculate the number of blood components, and analysing its characteristics. This test may not be an indication of any health problems, and other tests are usually requested along with it for more accurate results.",
        "img": "https://sanar-assets.com/mis/947bd91955ecbc7a1420922354ad52ec.png"
      }
    ],
    "Tests": [
      {
        "id": "MTE2",
        "name": "Random Blood Sugar",
        "desc": "random blood sugar"
      }
    ]
  }
}
```

## Endpoint 02: Get Service Details

### API
`POST https://extct.litedev.com/v1/details`

### Request

```json
{
  "id": "MPK5",
  "prd_id": "ST04"
}
```

### Response

```json
{
  "status": 1000,
  "message": "Success",
  "data": {
    "id": "MPK5",
    "name": "Health Check Packages",
    "img": "https://sanar-assets.com/mis/947bd91955ecbc7a1420922354ad52ec.png",
    "desc": "Your health should be your priority. Take care of your health by doing a comprehensive medical test to ensure healthy life and to prevent any sudden unexpected illness , or if you suffer from uncommon or common symptoms",
    "report_lbl": "Get reports in 24 hours",
    "Pkg_tests": [
      {
        "id": "MTE2",
        "name": "Random Blood Sugar"
      },
      {
        "id": "MTE3",
        "name": "glucose tolerance test"
      }
    ],
    "inst": [
      "You need to fast for 8 hours before a test. Do not to eat or drink anything (other than water).",
      "Any medication treatment for lab packages"
    ]
  }
}
```

## Endpoint 03: Get Providers and Slots

### API
`POST https://extct.litedev.com/v1/browse`

### Required Headers

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

### Request

```json
{
  "date": "2026-05-01",
  "prd_id": "ST04",
  "lat": "24.7135517",
  "lng": "46.6752957",
  "services": [
    "MPK5",
    "MTE2"
  ],
  "gnd": "M"
}
```

### Response

```json
{
  "status": 1000,
  "message": "",
  "data": [
    {
      "provider_id": "HSP90",
      "provider_name": "Sanar Care",
      "provider_img": "https://img.litedev.com/mis/5dca4718f9dca36dd84dd4e255ad6846.jfif",
      "service_type": "Home Visit",
      "usertype_nm": "Laboratory",
      "price": "200 SAR",
      "slots": [
        {
          "strt_tym": "13:30",
          "end_tym": "14:00",
          "slt_id": 122,
          "available": true
        },
        {
          "strt_tym": "14:00",
          "end_tym": "14:30",
          "slt_id": 123,
          "available": true
        }
      ],
      "testDetails": [
        {
          "id": "MTE2",
          "name": "Random Blood Sugar"
        },
        {
          "id": "MPK5",
          "name": "Health Check Packages",
          "img": "https://sanar-assets.com/mis/947bd91955ecbc7a1420922354ad52ec.png"
        }
      ]
    }
  ],
  "date": "2026-05-01"
}
```

## Endpoint 04: Book Appointment

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

### Required Headers

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

### Request

```json
{
  "eid": "HSP90",
  "date": "2026-05-01",
  "strt_tym": "14:00",
  "end_tym": "14:30",
  "services": ["MPK5", "MTE2"],
  "lat": "24.7135517",
  "lon": "46.6752957",
  "add": "PM7G+C4F, Al Olaya, Riyadh 12251, Saudi Arabia",
  "prd_id": "ST04",
  "gnd": "M"
}
```

### Response

```json
{
  "status": 1000,
  "message": "success",
  "data": {
    "booking_id": "dbfhdfbfh",
    "payment_url": "https://pcpayment.litedev.com/?pid=uHEuRxfQYB&sc=medgulf&card=true&applepay=true"
  }
}
```
