GET api/Catering/GetBookingPromotionDiscount?code={code}&totalPrice={totalPrice}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| code | string |
Required |
|
| totalPrice | decimal number |
Required |
Body Parameters
None.
Response Information
Resource Description
BookingPromotionDiscount| Name | Description | Type | Additional information |
|---|---|---|---|
| BeforeDiscountRate | integer |
None. |
|
| BookingPromotionId | integer |
None. |
|
| PromotionCode | string |
None. |
|
| PromotionDiscountType | BookingPromotionDiscountType |
None. |
|
| PromotionDiscountAmount | integer |
None. |
|
| PromotionTotalDiscountAmount | integer |
None. |
|
| AfterDiscountRate | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"beforeDiscountRate": 1,
"bookingPromotionId": 1,
"promotionCode": "sample string 1",
"promotionDiscountType": 0,
"promotionDiscountAmount": 1,
"promotionTotalDiscountAmount": 1,
"afterDiscountRate": 1
}
text/html
Sample:
{"beforeDiscountRate":1,"bookingPromotionId":1,"promotionCode":"sample string 1","promotionDiscountType":0,"promotionDiscountAmount":1,"promotionTotalDiscountAmount":1,"afterDiscountRate":1}
application/xml, text/xml
Sample:
<BookingPromotionDiscount xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EB.Service.Contracts.Api"> <AfterDiscountRate>1</AfterDiscountRate> <BeforeDiscountRate>1</BeforeDiscountRate> <BookingPromotionId>1</BookingPromotionId> <PromotionCode>sample string 1</PromotionCode> <PromotionDiscountAmount>1</PromotionDiscountAmount> <PromotionDiscountType>Percentage</PromotionDiscountType> <PromotionTotalDiscountAmount>1</PromotionTotalDiscountAmount> </BookingPromotionDiscount>