GET api/BookingPromotion/GetPromotions?promotionType={promotionType}&searchType={searchType}&keyword={keyword}&domainType={domainType}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
promotionType | BookingPromotionType |
Required |
|
searchType | SearchType |
Required |
|
keyword | string |
Default value is |
|
domainType | BookingPromotionDomainType |
Default value is MeetingRoom |
Body Parameters
None.
Response Information
Resource Description
Collection of BookingPromotionViewName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
DomainType | BookingPromotionDomainType |
None. |
|
DomainTypeName | string |
None. |
|
Type | BookingPromotionType |
None. |
|
TypeName | string |
None. |
|
Disabled | boolean |
None. |
|
Name | string |
None. |
|
Description | string |
None. |
|
Code | string |
None. |
|
DiscountType | BookingPromotionDiscountType |
None. |
|
DiscountTypeName | string |
None. |
|
DiscountAmount | integer |
None. |
|
TotalQuantity | integer |
None. |
|
UsedQuantity | integer |
None. |
|
Start | date |
None. |
|
Finish | date |
None. |
|
MinimumRate | integer |
None. |
|
Partner | string |
None. |
|
CreatorId | string |
None. |
|
Created | date |
None. |
|
CreatorFullName | string |
None. |
|
Updated | date |
None. |
|
UpdatorId | string |
None. |
|
UpdatorFullName | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "id": 1, "domainType": 0, "domainTypeName": "sample string 2", "type": 0, "typeName": "sample string 3", "disabled": true, "name": "sample string 5", "description": "sample string 6", "code": "sample string 7", "discountType": 0, "discountTypeName": "sample string 8", "discountAmount": 9, "totalQuantity": 10, "usedQuantity": 11, "start": "2025-08-27T13:29:39.5785222+00:00", "finish": "2025-08-27T13:29:39.5785222+00:00", "minimumRate": 14, "partner": "sample string 15", "creatorId": "sample string 16", "created": "2025-08-27T13:29:39.5785222+00:00", "creatorFullName": "sample string 18", "updated": "2025-08-27T13:29:39.5785222+00:00", "updatorId": "sample string 20", "updatorFullName": "sample string 21" }, { "id": 1, "domainType": 0, "domainTypeName": "sample string 2", "type": 0, "typeName": "sample string 3", "disabled": true, "name": "sample string 5", "description": "sample string 6", "code": "sample string 7", "discountType": 0, "discountTypeName": "sample string 8", "discountAmount": 9, "totalQuantity": 10, "usedQuantity": 11, "start": "2025-08-27T13:29:39.5785222+00:00", "finish": "2025-08-27T13:29:39.5785222+00:00", "minimumRate": 14, "partner": "sample string 15", "creatorId": "sample string 16", "created": "2025-08-27T13:29:39.5785222+00:00", "creatorFullName": "sample string 18", "updated": "2025-08-27T13:29:39.5785222+00:00", "updatorId": "sample string 20", "updatorFullName": "sample string 21" } ]
text/html
Sample:
[{"id":1,"domainType":0,"domainTypeName":"sample string 2","type":0,"typeName":"sample string 3","disabled":true,"name":"sample string 5","description":"sample string 6","code":"sample string 7","discountType":0,"discountTypeName":"sample string 8","discountAmount":9,"totalQuantity":10,"usedQuantity":11,"start":"2025-08-27T13:29:39.5785222+00:00","finish":"2025-08-27T13:29:39.5785222+00:00","minimumRate":14,"partner":"sample string 15","creatorId":"sample string 16","created":"2025-08-27T13:29:39.5785222+00:00","creatorFullName":"sample string 18","updated":"2025-08-27T13:29:39.5785222+00:00","updatorId":"sample string 20","updatorFullName":"sample string 21"},{"id":1,"domainType":0,"domainTypeName":"sample string 2","type":0,"typeName":"sample string 3","disabled":true,"name":"sample string 5","description":"sample string 6","code":"sample string 7","discountType":0,"discountTypeName":"sample string 8","discountAmount":9,"totalQuantity":10,"usedQuantity":11,"start":"2025-08-27T13:29:39.5785222+00:00","finish":"2025-08-27T13:29:39.5785222+00:00","minimumRate":14,"partner":"sample string 15","creatorId":"sample string 16","created":"2025-08-27T13:29:39.5785222+00:00","creatorFullName":"sample string 18","updated":"2025-08-27T13:29:39.5785222+00:00","updatorId":"sample string 20","updatorFullName":"sample string 21"}]
application/xml, text/xml
Sample:
<ArrayOfBookingPromotionView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EB.Service.Contracts.Api"> <BookingPromotionView> <Created>2025-08-27T13:29:39.5785222+00:00</Created> <CreatorFullName>sample string 18</CreatorFullName> <CreatorId>sample string 16</CreatorId> <Disabled>false</Disabled> <Updated>2025-08-27T13:29:39.5785222+00:00</Updated> <UpdatorFullName>sample string 21</UpdatorFullName> <UpdatorId>sample string 20</UpdatorId> <Code>sample string 7</Code> <Description>sample string 6</Description> <Disabled>true</Disabled> <DiscountAmount>9</DiscountAmount> <DiscountType>Percentage</DiscountType> <DiscountTypeName>sample string 8</DiscountTypeName> <DomainType>MeetingRoom</DomainType> <DomainTypeName>sample string 2</DomainTypeName> <Finish>2025-08-27T13:29:39.5785222+00:00</Finish> <Id>1</Id> <MinimumRate>14</MinimumRate> <Name>sample string 5</Name> <Partner>sample string 15</Partner> <Start>2025-08-27T13:29:39.5785222+00:00</Start> <TotalQuantity>10</TotalQuantity> <Type>General</Type> <TypeName>sample string 3</TypeName> <UsedQuantity>11</UsedQuantity> </BookingPromotionView> <BookingPromotionView> <Created>2025-08-27T13:29:39.5785222+00:00</Created> <CreatorFullName>sample string 18</CreatorFullName> <CreatorId>sample string 16</CreatorId> <Disabled>false</Disabled> <Updated>2025-08-27T13:29:39.5785222+00:00</Updated> <UpdatorFullName>sample string 21</UpdatorFullName> <UpdatorId>sample string 20</UpdatorId> <Code>sample string 7</Code> <Description>sample string 6</Description> <Disabled>true</Disabled> <DiscountAmount>9</DiscountAmount> <DiscountType>Percentage</DiscountType> <DiscountTypeName>sample string 8</DiscountTypeName> <DomainType>MeetingRoom</DomainType> <DomainTypeName>sample string 2</DomainTypeName> <Finish>2025-08-27T13:29:39.5785222+00:00</Finish> <Id>1</Id> <MinimumRate>14</MinimumRate> <Name>sample string 5</Name> <Partner>sample string 15</Partner> <Start>2025-08-27T13:29:39.5785222+00:00</Start> <TotalQuantity>10</TotalQuantity> <Type>General</Type> <TypeName>sample string 3</TypeName> <UsedQuantity>11</UsedQuantity> </BookingPromotionView> </ArrayOfBookingPromotionView>