GET api/BookingPromotion/GetCateringOrderPromotions?promotionId={promotionId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
promotionId

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of CateringPromotionView
NameDescriptionTypeAdditional information
CateringOrderId

integer

None.

Customer

string

None.

Restaurant

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:
[
  {
    "cateringOrderId": 1,
    "customer": "sample string 2",
    "restaurant": "sample string 3",
    "bookingPromotionId": 4,
    "promotionCode": "sample string 5",
    "promotionDiscountType": 0,
    "promotionDiscountTypeName": "sample string 6",
    "promotionDiscountAmount": 7,
    "promotionTotalDiscountAmount": 8,
    "beforeDiscountRate": 1,
    "afterDiscountRate": 1
  },
  {
    "cateringOrderId": 1,
    "customer": "sample string 2",
    "restaurant": "sample string 3",
    "bookingPromotionId": 4,
    "promotionCode": "sample string 5",
    "promotionDiscountType": 0,
    "promotionDiscountTypeName": "sample string 6",
    "promotionDiscountAmount": 7,
    "promotionTotalDiscountAmount": 8,
    "beforeDiscountRate": 1,
    "afterDiscountRate": 1
  }
]

text/html

Sample:
[{"cateringOrderId":1,"customer":"sample string 2","restaurant":"sample string 3","bookingPromotionId":4,"promotionCode":"sample string 5","promotionDiscountType":0,"promotionDiscountTypeName":"sample string 6","promotionDiscountAmount":7,"promotionTotalDiscountAmount":8,"beforeDiscountRate":1,"afterDiscountRate":1},{"cateringOrderId":1,"customer":"sample string 2","restaurant":"sample string 3","bookingPromotionId":4,"promotionCode":"sample string 5","promotionDiscountType":0,"promotionDiscountTypeName":"sample string 6","promotionDiscountAmount":7,"promotionTotalDiscountAmount":8,"beforeDiscountRate":1,"afterDiscountRate":1}]

application/xml, text/xml

Sample:
<ArrayOfCateringPromotionView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EB.Service.Contracts.Api">
  <CateringPromotionView>
    <AfterDiscountRate>1</AfterDiscountRate>
    <BeforeDiscountRate>1</BeforeDiscountRate>
    <BookingPromotionId>4</BookingPromotionId>
    <PromotionCode>sample string 5</PromotionCode>
    <PromotionDiscountAmount>7</PromotionDiscountAmount>
    <PromotionDiscountType>Percentage</PromotionDiscountType>
    <PromotionDiscountTypeName>sample string 6</PromotionDiscountTypeName>
    <PromotionTotalDiscountAmount>8</PromotionTotalDiscountAmount>
    <CateringOrderId>1</CateringOrderId>
    <Customer>sample string 2</Customer>
    <Restaurant>sample string 3</Restaurant>
  </CateringPromotionView>
  <CateringPromotionView>
    <AfterDiscountRate>1</AfterDiscountRate>
    <BeforeDiscountRate>1</BeforeDiscountRate>
    <BookingPromotionId>4</BookingPromotionId>
    <PromotionCode>sample string 5</PromotionCode>
    <PromotionDiscountAmount>7</PromotionDiscountAmount>
    <PromotionDiscountType>Percentage</PromotionDiscountType>
    <PromotionDiscountTypeName>sample string 6</PromotionDiscountTypeName>
    <PromotionTotalDiscountAmount>8</PromotionTotalDiscountAmount>
    <CateringOrderId>1</CateringOrderId>
    <Customer>sample string 2</Customer>
    <Restaurant>sample string 3</Restaurant>
  </CateringPromotionView>
</ArrayOfCateringPromotionView>