PUT api/BookingPromotion/UpdateGeneralPromotion?promotionId={promotionId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
promotionId

integer

Required

Body Parameters

BookingPromotionInput
NameDescriptionTypeAdditional information
Disabled

boolean

Required

DomainTypeId

BookingPromotionDomainType

None.

Name

string

Required

Description

string

None.

Code

string

Required

DiscountType

BookingPromotionDiscountType

Required

DiscountAmount

integer

Required

Range: inclusive between 0 and 2147483647

TotalQuantity

integer

Required

Range: inclusive between 1 and 2147483647

Start

date

Required

Finish

date

Required

MinimumRate

integer

Required

Range: inclusive between 1 and 2147483647

Partner

string

None.

Request Formats

application/json, text/json

Sample:
{
  "disabled": true,
  "domainTypeId": 0,
  "name": "sample string 2",
  "description": "sample string 3",
  "code": "sample string 4",
  "discountType": 0,
  "discountAmount": 5,
  "totalQuantity": 6,
  "start": "2025-08-26T19:31:07.0623205+00:00",
  "finish": "2025-08-26T19:31:07.0623205+00:00",
  "minimumRate": 9,
  "partner": "sample string 10"
}

text/html

Sample:
{"disabled":true,"domainTypeId":0,"name":"sample string 2","description":"sample string 3","code":"sample string 4","discountType":0,"discountAmount":5,"totalQuantity":6,"start":"2025-08-26T19:31:07.0623205+00:00","finish":"2025-08-26T19:31:07.0623205+00:00","minimumRate":9,"partner":"sample string 10"}

application/xml, text/xml

Sample:
<BookingPromotionInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EB.Service.Contracts.Api">
  <Code>sample string 4</Code>
  <Description>sample string 3</Description>
  <Disabled>true</Disabled>
  <DiscountAmount>5</DiscountAmount>
  <DiscountType>Percentage</DiscountType>
  <DomainTypeId>MeetingRoom</DomainTypeId>
  <Finish>2025-08-26T19:31:07.0623205+00:00</Finish>
  <MinimumRate>9</MinimumRate>
  <Name>sample string 2</Name>
  <Partner>sample string 10</Partner>
  <Start>2025-08-26T19:31:07.0623205+00:00</Start>
  <TotalQuantity>6</TotalQuantity>
</BookingPromotionInput>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BookingPromotionView
NameDescriptionTypeAdditional 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-26T19:31:07.0779415+00:00",
  "finish": "2025-08-26T19:31:07.0779415+00:00",
  "minimumRate": 14,
  "partner": "sample string 15",
  "creatorId": "sample string 16",
  "created": "2025-08-26T19:31:07.0779415+00:00",
  "creatorFullName": "sample string 18",
  "updated": "2025-08-26T19:31:07.0779415+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-26T19:31:07.0779415+00:00","finish":"2025-08-26T19:31:07.0779415+00:00","minimumRate":14,"partner":"sample string 15","creatorId":"sample string 16","created":"2025-08-26T19:31:07.0779415+00:00","creatorFullName":"sample string 18","updated":"2025-08-26T19:31:07.0779415+00:00","updatorId":"sample string 20","updatorFullName":"sample string 21"}

application/xml, text/xml

Sample:
<BookingPromotionView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EB.Service.Contracts.Api">
  <Created>2025-08-26T19:31:07.0779415+00:00</Created>
  <CreatorFullName>sample string 18</CreatorFullName>
  <CreatorId>sample string 16</CreatorId>
  <Disabled>false</Disabled>
  <Updated>2025-08-26T19:31:07.0779415+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-26T19:31:07.0779415+00:00</Finish>
  <Id>1</Id>
  <MinimumRate>14</MinimumRate>
  <Name>sample string 5</Name>
  <Partner>sample string 15</Partner>
  <Start>2025-08-26T19:31:07.0779415+00:00</Start>
  <TotalQuantity>10</TotalQuantity>
  <Type>General</Type>
  <TypeName>sample string 3</TypeName>
  <UsedQuantity>11</UsedQuantity>
</BookingPromotionView>