GET api/BookingPromotion/GetRoomBookingPromotions?promotionId={promotionId}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
promotionId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of RoomBookingPromotionName | Description | Type | Additional information |
---|---|---|---|
BookingID | integer |
None. |
|
Customer | string |
None. |
|
Venue | string |
None. |
|
Room | string |
None. |
|
Guest | integer |
None. |
|
Date | string |
None. |
|
StartTime | string |
None. |
|
EndTime | string |
None. |
|
BookingPromotionId | integer |
None. |
|
PromotionCode | string |
None. |
|
PromotionDiscountType | BookingPromotionDiscountType |
None. |
|
PromotionDiscountTypeName | string |
None. |
|
PromotionDiscountAmount | integer |
None. |
|
PromotionTotalDiscountAmount | integer |
None. |
|
BeforeDiscountRate | integer |
None. |
|
AfterDiscountRate | integer |
None. |
Response Formats
application/json, text/json
Sample:
[ { "bookingID": 1, "customer": "sample string 2", "venue": "sample string 3", "room": "sample string 4", "guest": 5, "date": "sample string 6", "startTime": "sample string 7", "endTime": "sample string 8", "bookingPromotionId": 9, "promotionCode": "sample string 10", "promotionDiscountType": 0, "promotionDiscountTypeName": "sample string 11", "promotionDiscountAmount": 12, "promotionTotalDiscountAmount": 13, "beforeDiscountRate": 1, "afterDiscountRate": 1 }, { "bookingID": 1, "customer": "sample string 2", "venue": "sample string 3", "room": "sample string 4", "guest": 5, "date": "sample string 6", "startTime": "sample string 7", "endTime": "sample string 8", "bookingPromotionId": 9, "promotionCode": "sample string 10", "promotionDiscountType": 0, "promotionDiscountTypeName": "sample string 11", "promotionDiscountAmount": 12, "promotionTotalDiscountAmount": 13, "beforeDiscountRate": 1, "afterDiscountRate": 1 } ]
text/html
Sample:
[{"bookingID":1,"customer":"sample string 2","venue":"sample string 3","room":"sample string 4","guest":5,"date":"sample string 6","startTime":"sample string 7","endTime":"sample string 8","bookingPromotionId":9,"promotionCode":"sample string 10","promotionDiscountType":0,"promotionDiscountTypeName":"sample string 11","promotionDiscountAmount":12,"promotionTotalDiscountAmount":13,"beforeDiscountRate":1,"afterDiscountRate":1},{"bookingID":1,"customer":"sample string 2","venue":"sample string 3","room":"sample string 4","guest":5,"date":"sample string 6","startTime":"sample string 7","endTime":"sample string 8","bookingPromotionId":9,"promotionCode":"sample string 10","promotionDiscountType":0,"promotionDiscountTypeName":"sample string 11","promotionDiscountAmount":12,"promotionTotalDiscountAmount":13,"beforeDiscountRate":1,"afterDiscountRate":1}]
application/xml, text/xml
Sample:
<ArrayOfRoomBookingPromotion xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EB.Service.Contracts.Api"> <RoomBookingPromotion> <AfterDiscountRate>1</AfterDiscountRate> <BeforeDiscountRate>1</BeforeDiscountRate> <BookingPromotionId>9</BookingPromotionId> <PromotionCode>sample string 10</PromotionCode> <PromotionDiscountAmount>12</PromotionDiscountAmount> <PromotionDiscountType>Percentage</PromotionDiscountType> <PromotionDiscountTypeName>sample string 11</PromotionDiscountTypeName> <PromotionTotalDiscountAmount>13</PromotionTotalDiscountAmount> <BookingID>1</BookingID> <Customer>sample string 2</Customer> <Date>sample string 6</Date> <EndTime>sample string 8</EndTime> <Guest>5</Guest> <Room>sample string 4</Room> <StartTime>sample string 7</StartTime> <Venue>sample string 3</Venue> </RoomBookingPromotion> <RoomBookingPromotion> <AfterDiscountRate>1</AfterDiscountRate> <BeforeDiscountRate>1</BeforeDiscountRate> <BookingPromotionId>9</BookingPromotionId> <PromotionCode>sample string 10</PromotionCode> <PromotionDiscountAmount>12</PromotionDiscountAmount> <PromotionDiscountType>Percentage</PromotionDiscountType> <PromotionDiscountTypeName>sample string 11</PromotionDiscountTypeName> <PromotionTotalDiscountAmount>13</PromotionTotalDiscountAmount> <BookingID>1</BookingID> <Customer>sample string 2</Customer> <Date>sample string 6</Date> <EndTime>sample string 8</EndTime> <Guest>5</Guest> <Room>sample string 4</Room> <StartTime>sample string 7</StartTime> <Venue>sample string 3</Venue> </RoomBookingPromotion> </ArrayOfRoomBookingPromotion>