---
# System prepended metadata

title: HourLocked deliver fee api changes

---

# HourLocked deliver fee api changes

### Create restaurant
- API: `/admin/api/v1/restaurants`
- Method: `POST`
- Query Param: n/a
- Request Body: Multipart Form
  - fields: `parse_id`, `name`, `address`, `latitude`, `longitude`, `min_delivery_time`, `min_order_value`, `min_delivery_fee`, `delivery_discount_percent`, `global_delivery_fee`, `global_delivery_fee_discount_percent`, `vat`, `service_charge`, `phone`, `email`, `website`, `discount_type`, `discount`, `max_discount_amount`, `min_discount_order_amount`, `visible_in_app`, `is_flagged`, `search_score`, `radius_promotion`, `city`, `is_resto`, `marketplace_fee`, `is_partner`, `currency`, `group_id`, `is_supershop`, `is_sc_inclusive`, `is_vat_inclusive`,
	`is_sd_inclusive`, `custom_radius`, `is_tong`,`is_pharma`,
  `hour_locked_delivery_fee`, `hour_locked_delivery_discount`,`hour_locked_start_time`, `hour_locked_end_time`
  - new fields:
      - `hour_locked_delivery_fee`: float or nullable
      - `hour_locked_delivery_discount`: float or nullable
      - `hour_locked_start_time`: string or nullable. 24 hour format: `HH:MM:SS`
      - `hour_locked_end_time`: string or nullable. 24 hour format: `HH:MM:SS`
  - image file fields: `logo`, `banner`
  - fields:
    - `tags`: JSON Array string.
    ```json
    [
      {
        "title": "choco chips",
        "description": ""
      },
      {
        "title": "crunchy toppings",
        "description": ""
      }
    ]
    ```
    - `badges`: JSON Array string.
    ```json
    [
      {
        "name": "choco chips"
      },
      {
        "name": "crunchy toppings"
      }
    ]
    ```
- Response:
  - code: `200`
  ```json
  {
    "success": true,
    "message": "request is successful"
  }
  ```

### Update restaurant
- API: `/admin/api/v1/restaurants/<restaurant_id>`
- Method: `PUT`
- Query Param: n/a
- Request Body: Multipart Form
  - fields(Required): `parse_id`, `name`, `address`, `latitude`, `longitude`, `min_order_value`, `min_delivery_fee`, `delivery_discount_percent`, `global_delivery_fee`, `global_delivery_fee_discount_percent`, `vat`, `service_charge`, `phone`, `email`, `discount_type`, `discount`, `visible_in_app`, `is_flagged`, `marketplace_fee`, `is_partner`,
  `is_supershop`, `is_sc_inclusive`, `is_vat_inclusive`, `is_sd_inclusive`, `custom_radius`, `is_tong`,`is_pharma`,
  `max_discount_amount`, `min_discount_order_amount`, `radius_promotion`,
  `hour_locked_delivery_fee`, `hour_locked_delivery_discount`,`hour_locked_start_time`, `hour_locked_end_time`
  - new fields:
      - `hour_locked_delivery_fee`: float or nullable
      - `hour_locked_delivery_discount`: float or nullable
      - `hour_locked_start_time`: string or nullable. 24 hour format: `HH:MM:SS`
      - `hour_locked_end_time`: string or nullable. 24 hour format: `HH:MM:SS`
  - image file fields: `new_logo`, `new_banner`
  - fields:
    - `tags`: JSON Array string.
    ```json
    [
      {
        "title": "choco chips",
        "description": ""
      },
      {
        "title": "crunchy toppings",
        "description": ""
      }
    ]
    ```
    - `badges`: JSON Array string.
    ```json
    [
      {
        "name": "choco chips"
      },
      {
        "name": "crunchy toppings"
      }
    ]
    ```
- Response:
  - code: `200`
  ```json
  {
    "success": true,
    "message": "request is successful"
  }
  ```

### Get restaurant by id
- API: `/admin/api/v1/restaurants/<id>`
- Method: `GET`
- Query Param: n/a
- Request Body: n/a
- Response:
  - code: `200`
  ```json
  {
    "success": true,
    "message": "request is successful",
    "data": {
        "id": "000369fa-c126-49d5-b996-bd0ca5dc32c3",
        "parse_id": 20127,
        "name": "Saltbae updated",
        "address": "Kazi Aspharagus Food Court, Zindabazar",
        "latitude": 24.895700454711914,
        "longitude": 91.87020111083984,
        "logo": null,
        "banner": "http://food-m.p-stageenv.xyz/food/20127_banner.jpeg",
        "min_delivery_time": "60 min",
        "min_order_value": 50,
        "min_delivery_fee": 0,
        "delivery_discount_percent": 33.33,
        "global_delivery_fee": 0,
        "global_delivery_fee_discount_percent": 60,
        "vat": 0,
        "service_charge": 0,
        "phone": "01312005531",
        "email": "",
        "website": "",
        "store_front": null,
        "long_shot": null,
        "discount_type": "PERCENTAGE",
        "discount": 0,
        "max_discount_amount": null,
        "min_discount_order_amount": 0,
        "visible_in_app": true,
        "is_flagged": false,
        "search_score": 0,
        "radius_promotion": false,
        "city": 3,
        "is_resto": false,
        "accepting_orders": true,
        "average_rating": null,
        "rating_count": 0,
        "marketplace_fee": 0,
        "is_partner": false,
        "is_supershop": false,
        "currency": "BDT",
        "sd": 0,
        "created_at": "2021-03-05T23:09:48+0000",
        "modified_at": "2022-01-16T01:00:51+0000",
        "is_chain": false,
        "is_manual_dispatch": false,
        "popularity_score": 0,
        "is_tong": false,
        "is_pharma": false,
        "custom_radius": null,
        "badges": null,
        "tags": null,
        "mpf": 0,
        "upfront": false,
        "subsidy_resto_share": 0,
        "subsidy_pathao_share": 0,
        "is_featured": true,
        "is_sc_inclusive": false,
        "is_vat_inclusive": false,
        "is_sd_inclusive": false,
        "hour_locked_delivery_fee": 112, // nullable
        "hour_locked_delivery_discount": 5, // nullable
        "hour_locked_start_time": "09:00:00", // nullable
        "hour_locked_end_time": "20:00:00", // nullable
    }
  }
  ```