POST api/Catering/InsertRestaurant

Request Information

URI Parameters

None.

Body Parameters

RestaurantInput
NameDescriptionTypeAdditional information
Disabled

boolean

Required

Name

string

Required

Description

string

None.

Address

string

Required

CityId

integer

Required

PostalCode

string

Required

LatLongInString

string

Required

Contact

string

Required

LineID

string

None.

PhoneNumber

string

Required

VATRegistered

boolean

Required

PeakContactCode

string

None.

PromoteWeeklyRecommend

boolean

None.

IsSaas

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "disabled": true,
  "name": "sample string 2",
  "description": "sample string 3",
  "address": "sample string 4",
  "cityId": 5,
  "postalCode": "sample string 6",
  "latLongInString": "sample string 7",
  "contact": "sample string 8",
  "lineID": "sample string 9",
  "phoneNumber": "sample string 10",
  "vatRegistered": true,
  "peakContactCode": "sample string 12",
  "promoteWeeklyRecommend": true,
  "isSaas": true
}

text/html

Sample:
{"disabled":true,"name":"sample string 2","description":"sample string 3","address":"sample string 4","cityId":5,"postalCode":"sample string 6","latLongInString":"sample string 7","contact":"sample string 8","lineID":"sample string 9","phoneNumber":"sample string 10","vatRegistered":true,"peakContactCode":"sample string 12","promoteWeeklyRecommend":true,"isSaas":true}

application/xml, text/xml

Sample:
<RestaurantInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EB.Service.Contracts.Api">
  <Address>sample string 4</Address>
  <CityId>5</CityId>
  <Contact>sample string 8</Contact>
  <Description>sample string 3</Description>
  <Disabled>true</Disabled>
  <IsSaas>true</IsSaas>
  <LatLongInString>sample string 7</LatLongInString>
  <LineID>sample string 9</LineID>
  <Name>sample string 2</Name>
  <PeakContactCode>sample string 12</PeakContactCode>
  <PhoneNumber>sample string 10</PhoneNumber>
  <PostalCode>sample string 6</PostalCode>
  <PromoteWeeklyRecommend>true</PromoteWeeklyRecommend>
  <VATRegistered>true</VATRegistered>
</RestaurantInput>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

RestaurantView
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

Description

string

None.

LogoPictureUrl

string

None.

ProfilePictureUrl

string

None.

Address

string

None.

CityId

integer

None.

CityName

string

None.

PostalCode

string

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

Contact

string

None.

LineID

string

None.

PhoneNumber

string

None.

VATRegistered

boolean

None.

PeakContactCode

string

None.

GreenPackaging

boolean

None.

PromoteWeeklyRecommend

boolean

None.

RestaurantHolidays

Collection of RestaurantHolidayView

None.

RestaurantOperationHours

Collection of RestaurantOperationHourView

None.

IsSaas

boolean

None.

Saas

SaasRestaurantView

None.

RestaurantSaasUrl

string

None.

AdminRating

decimal number

None.

UserRating

decimal number

None.

UserRatingNumber

integer

None.

RatingDescription

string

None.

Rating

decimal number

None.

CreatorId

string

None.

Created

date

None.

CreatorFullName

string

None.

Updated

date

None.

UpdatorId

string

None.

UpdatorFullName

string

None.

Disabled

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "name": "sample string 2",
  "description": "sample string 3",
  "logoPictureUrl": "sample string 4",
  "profilePictureUrl": "sample string 5",
  "address": "sample string 6",
  "cityId": 7,
  "cityName": "sample string 8",
  "postalCode": "sample string 9",
  "latitude": 1.1,
  "longitude": 1.1,
  "contact": "sample string 10",
  "lineID": "sample string 11",
  "phoneNumber": "sample string 12",
  "vatRegistered": true,
  "peakContactCode": "sample string 14",
  "greenPackaging": true,
  "promoteWeeklyRecommend": true,
  "restaurantHolidays": [
    {
      "id": 1,
      "holiday": "2025-08-29T01:13:47.5384183+00:00",
      "remarks": "sample string 3",
      "idTemp": 4
    },
    {
      "id": 1,
      "holiday": "2025-08-29T01:13:47.5384183+00:00",
      "remarks": "sample string 3",
      "idTemp": 4
    }
  ],
  "restaurantOperationHours": [
    {
      "id": 1,
      "day": 0,
      "dayText": "sample string 2",
      "openTime": "00:00:00.1234567",
      "closeTime": "00:00:00.1234567",
      "status": 0
    },
    {
      "id": 1,
      "day": 0,
      "dayText": "sample string 2",
      "openTime": "00:00:00.1234567",
      "closeTime": "00:00:00.1234567",
      "status": 0
    }
  ],
  "isSaas": true,
  "saas": {
    "lineID": "sample string 1",
    "phoneNumber": "sample string 2",
    "contactName": "sample string 3",
    "email": "sample string 4",
    "bankName": "sample string 5",
    "accountId": "sample string 6",
    "accountName": "sample string 7",
    "branchName": "sample string 8",
    "qrCodePictureUrl": "sample string 9",
    "saasTermOfUse": "sample string 10",
    "minimumDistanceFreeOfChargeEnabled": true,
    "minimumDistanceFreeOfCharge": 1.1,
    "deliveryFeePerKm": 12.0,
    "deliveryDiscountEnabled": true,
    "deliveryDiscount": 14.0,
    "minimumOrderDeliveryDiscount": 15.0
  },
  "restaurantSaasUrl": "sample string 18",
  "adminRating": 19.1,
  "userRating": 20.1,
  "userRatingNumber": 21,
  "ratingDescription": "sample string 22",
  "rating": 23.1,
  "creatorId": "sample string 24",
  "created": "2025-08-29T01:13:47.5384183+00:00",
  "creatorFullName": "sample string 26",
  "updated": "2025-08-29T01:13:47.5384183+00:00",
  "updatorId": "sample string 28",
  "updatorFullName": "sample string 29",
  "disabled": true
}

text/html

Sample:
{"id":1,"name":"sample string 2","description":"sample string 3","logoPictureUrl":"sample string 4","profilePictureUrl":"sample string 5","address":"sample string 6","cityId":7,"cityName":"sample string 8","postalCode":"sample string 9","latitude":1.1,"longitude":1.1,"contact":"sample string 10","lineID":"sample string 11","phoneNumber":"sample string 12","vatRegistered":true,"peakContactCode":"sample string 14","greenPackaging":true,"promoteWeeklyRecommend":true,"restaurantHolidays":[{"id":1,"holiday":"2025-08-29T01:13:47.5384183+00:00","remarks":"sample string 3","idTemp":4},{"id":1,"holiday":"2025-08-29T01:13:47.5384183+00:00","remarks":"sample string 3","idTemp":4}],"restaurantOperationHours":[{"id":1,"day":0,"dayText":"sample string 2","openTime":"00:00:00.1234567","closeTime":"00:00:00.1234567","status":0},{"id":1,"day":0,"dayText":"sample string 2","openTime":"00:00:00.1234567","closeTime":"00:00:00.1234567","status":0}],"isSaas":true,"saas":{"lineID":"sample string 1","phoneNumber":"sample string 2","contactName":"sample string 3","email":"sample string 4","bankName":"sample string 5","accountId":"sample string 6","accountName":"sample string 7","branchName":"sample string 8","qrCodePictureUrl":"sample string 9","saasTermOfUse":"sample string 10","minimumDistanceFreeOfChargeEnabled":true,"minimumDistanceFreeOfCharge":1.1,"deliveryFeePerKm":12.0,"deliveryDiscountEnabled":true,"deliveryDiscount":14.0,"minimumOrderDeliveryDiscount":15.0},"restaurantSaasUrl":"sample string 18","adminRating":19.1,"userRating":20.1,"userRatingNumber":21,"ratingDescription":"sample string 22","rating":23.1,"creatorId":"sample string 24","created":"2025-08-29T01:13:47.5384183+00:00","creatorFullName":"sample string 26","updated":"2025-08-29T01:13:47.5384183+00:00","updatorId":"sample string 28","updatorFullName":"sample string 29","disabled":true}

application/xml, text/xml

Sample:
<RestaurantView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EB.Service.Contracts.Api">
  <Created>2025-08-29T01:13:47.5384183+00:00</Created>
  <CreatorFullName>sample string 26</CreatorFullName>
  <CreatorId>sample string 24</CreatorId>
  <Disabled>true</Disabled>
  <Updated>2025-08-29T01:13:47.5384183+00:00</Updated>
  <UpdatorFullName>sample string 29</UpdatorFullName>
  <UpdatorId>sample string 28</UpdatorId>
  <Address>sample string 6</Address>
  <AdminRating>19.1</AdminRating>
  <CityId>7</CityId>
  <CityName>sample string 8</CityName>
  <Contact>sample string 10</Contact>
  <Description>sample string 3</Description>
  <GreenPackaging>true</GreenPackaging>
  <Id>1</Id>
  <IsSaas>true</IsSaas>
  <Latitude>1.1</Latitude>
  <LineID>sample string 11</LineID>
  <LogoPictureUrl>sample string 4</LogoPictureUrl>
  <Longitude>1.1</Longitude>
  <Name>sample string 2</Name>
  <PeakContactCode>sample string 14</PeakContactCode>
  <PhoneNumber>sample string 12</PhoneNumber>
  <PostalCode>sample string 9</PostalCode>
  <ProfilePictureUrl>sample string 5</ProfilePictureUrl>
  <PromoteWeeklyRecommend>true</PromoteWeeklyRecommend>
  <Rating>23.1</Rating>
  <RatingDescription>sample string 22</RatingDescription>
  <RestaurantHolidays>
    <RestaurantHolidayView>
      <Holiday>2025-08-29T01:13:47.5384183+00:00</Holiday>
      <Id>1</Id>
      <Remarks>sample string 3</Remarks>
      <idTemp>4</idTemp>
    </RestaurantHolidayView>
    <RestaurantHolidayView>
      <Holiday>2025-08-29T01:13:47.5384183+00:00</Holiday>
      <Id>1</Id>
      <Remarks>sample string 3</Remarks>
      <idTemp>4</idTemp>
    </RestaurantHolidayView>
  </RestaurantHolidays>
  <RestaurantOperationHours>
    <RestaurantOperationHourView>
      <CloseTime>PT0.1234567S</CloseTime>
      <Day>Sunday</Day>
      <DayText>sample string 2</DayText>
      <Id>1</Id>
      <OpenTime>PT0.1234567S</OpenTime>
      <Status>Close</Status>
    </RestaurantOperationHourView>
    <RestaurantOperationHourView>
      <CloseTime>PT0.1234567S</CloseTime>
      <Day>Sunday</Day>
      <DayText>sample string 2</DayText>
      <Id>1</Id>
      <OpenTime>PT0.1234567S</OpenTime>
      <Status>Close</Status>
    </RestaurantOperationHourView>
  </RestaurantOperationHours>
  <RestaurantSaasUrl>sample string 18</RestaurantSaasUrl>
  <Saas>
    <AccountId>sample string 6</AccountId>
    <AccountName>sample string 7</AccountName>
    <BankName>sample string 5</BankName>
    <BranchName>sample string 8</BranchName>
    <ContactName>sample string 3</ContactName>
    <DeliveryDiscount>14</DeliveryDiscount>
    <DeliveryDiscountEnabled>true</DeliveryDiscountEnabled>
    <DeliveryFeePerKm>12</DeliveryFeePerKm>
    <Email>sample string 4</Email>
    <LineID>sample string 1</LineID>
    <MinimumDistanceFreeOfCharge>1.1</MinimumDistanceFreeOfCharge>
    <MinimumDistanceFreeOfChargeEnabled>true</MinimumDistanceFreeOfChargeEnabled>
    <MinimumOrderDeliveryDiscount>15</MinimumOrderDeliveryDiscount>
    <PhoneNumber>sample string 2</PhoneNumber>
    <QrCodePictureUrl>sample string 9</QrCodePictureUrl>
    <SaasTermOfUse>sample string 10</SaasTermOfUse>
  </Saas>
  <UserRating>20.1</UserRating>
  <UserRatingNumber>21</UserRatingNumber>
  <VATRegistered>true</VATRegistered>
</RestaurantView>