POST api/excursions/applyCoupon

Gets a list of coupon discounts per requested excursion.

Request Information

URI Parameters

None.

Body Parameters

An instance of the ApplyCouponDTO.

Cyberlogic.eTourism.Mappings.Web.Dto.Excursions.ApplyCouponDTO
NameDescriptionTypeAdditional information
Sales

Collection of Cyberlogic.eTourism.Mappings.Web.Dto.Excursions.ApplyCouponSaleDTO

None.

Coupon

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Sales": [
    {
      "ExcursionId": 1,
      "ExcursionDate": "sample string 2",
      "CustomerId": 3,
      "TariffId": 4,
      "PriceZoneId": 5,
      "Adults": 6,
      "Children": 7
    },
    {
      "ExcursionId": 1,
      "ExcursionDate": "sample string 2",
      "CustomerId": 3,
      "TariffId": 4,
      "PriceZoneId": 5,
      "Adults": 6,
      "Children": 7
    }
  ],
  "Coupon": "sample string 1"
}

text/html

Sample:
{"Sales":[{"ExcursionId":1,"ExcursionDate":"sample string 2","CustomerId":3,"TariffId":4,"PriceZoneId":5,"Adults":6,"Children":7},{"ExcursionId":1,"ExcursionDate":"sample string 2","CustomerId":3,"TariffId":4,"PriceZoneId":5,"Adults":6,"Children":7}],"Coupon":"sample string 1"}

application/xml, text/xml

Sample:
<ApplyCouponDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Mappings.Web.Dto.Excursions">
  <Coupon>sample string 1</Coupon>
  <Sales>
    <ApplyCouponSaleDTO>
      <Adults>6</Adults>
      <Children>7</Children>
      <CustomerId>3</CustomerId>
      <ExcursionDate>sample string 2</ExcursionDate>
      <ExcursionId>1</ExcursionId>
      <PriceZoneId>5</PriceZoneId>
      <TariffId>4</TariffId>
    </ApplyCouponSaleDTO>
    <ApplyCouponSaleDTO>
      <Adults>6</Adults>
      <Children>7</Children>
      <CustomerId>3</CustomerId>
      <ExcursionDate>sample string 2</ExcursionDate>
      <ExcursionId>1</ExcursionId>
      <PriceZoneId>5</PriceZoneId>
      <TariffId>4</TariffId>
    </ApplyCouponSaleDTO>
  </Sales>
</ApplyCouponDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

A list of HotelViewModelApplyCouponViewModel.

Cyberlogic.eTourism.Domain.ViewModels.Excursions.B2C.ApplyCouponViewModel
NameDescriptionTypeAdditional information
Sales

Collection of Cyberlogic.eTourism.Domain.ViewModels.Excursions.B2C.ApplyCouponSaleViewModel

None.

Coupon

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Sales": [
    {
      "ExcursionId": 1,
      "ExcursionDate": "sample string 2",
      "TotalAmount": 3.0,
      "TotalAmountAfterCoupon": 4.0
    },
    {
      "ExcursionId": 1,
      "ExcursionDate": "sample string 2",
      "TotalAmount": 3.0,
      "TotalAmountAfterCoupon": 4.0
    }
  ],
  "Coupon": "sample string 1"
}

text/html

Sample:
{"Sales":[{"ExcursionId":1,"ExcursionDate":"sample string 2","TotalAmount":3.0,"TotalAmountAfterCoupon":4.0},{"ExcursionId":1,"ExcursionDate":"sample string 2","TotalAmount":3.0,"TotalAmountAfterCoupon":4.0}],"Coupon":"sample string 1"}

application/xml, text/xml

Sample:
<ApplyCouponViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Excursions.B2C">
  <Coupon>sample string 1</Coupon>
  <Sales>
    <ApplyCouponSaleViewModel>
      <ExcursionDate>sample string 2</ExcursionDate>
      <ExcursionId>1</ExcursionId>
      <TotalAmount>3</TotalAmount>
      <TotalAmountAfterCoupon>4</TotalAmountAfterCoupon>
    </ApplyCouponSaleViewModel>
    <ApplyCouponSaleViewModel>
      <ExcursionDate>sample string 2</ExcursionDate>
      <ExcursionId>1</ExcursionId>
      <TotalAmount>3</TotalAmount>
      <TotalAmountAfterCoupon>4</TotalAmountAfterCoupon>
    </ApplyCouponSaleViewModel>
  </Sales>
</ApplyCouponViewModel>