---
# System prepended metadata

title: Foodman Slotting(Supply API)

---

# Foodman Slotting(Supply API)

## List all subzone polygons by city id
- API: `/api/v1/subzones`
- Method: `GET`
- Query Param:
  - `city_id`: Required.
  - `hash`: Optional. If provided, then based on this we will determine response is modified or not. If not modified, then status code will be `304` without data, otherwise `200` with data.
- Request Body: n/a
- Response:
  - code: `200`
    ```json
    {
        "success": true,
        "message": "...",
        "hash": "dfdsfdsf",
        "data": [
            {
                "city_id": 1,
                "zone_id": 1,
                "subzone_id": 1,
                "polygon_points": [
                    {
                    "latitude": 23.7806881188067,
                    "longitude": 90.4254029762162
                    },
                    {
                    "latitude": 23.7760539823181,
                    "longitude": 90.425853587303
                    },
                    {
                    "latitude": 23.7735601201866,
                    "longitude": 90.4257677566198
                    },
                    {
                    "latitude": 23.7720284331277,
                    "longitude": 90.4254458915578
                    }
                ]
            },
            {
                "city_id": 1,
                "zone_id": 1,
                "subzone_id": 2,
                "polygon_points": [
                    {
                    "latitude": 23.7806881188067,
                    "longitude": 90.4254029762162
                    },
                    {
                    "latitude": 23.7760539823181,
                    "longitude": 90.425853587303
                    },
                    {
                    "latitude": 23.7735601201866,
                    "longitude": 90.4257677566198
                    },
                    {
                    "latitude": 23.7720284331277,
                    "longitude": 90.4254458915578
                    }
                ]
            },
        ]
    }
    ```

## List booked drivers by city id for the current time slot
- API: `/api/v1/booked/drivers`
- Method: `GET`
- Query Param:
  - `city_id`: Required.
  - `hash`: Optional. If provided, then based on this we will determine response is modified or not. If not modified, then status code will be `304` without data, otherwise `200` with data.
- Request Body: n/a
- Response:
  - code: `200`
    ```json
    {
        "success": true,
        "message": "...",
        "hash": "dfdsfdsf",
        "data": [
            {
                "city_id": 1,
                "zone_id": 1,
                "subzone_id": 1,
                "driver_ids": [1,3,4]
            },
            {
                "city_id": 1,
                "zone_id": 1,
                "subzone_id": 2,
                "driver_ids": [10,13,14]
            },
        ]
    }
    ```

