GET api/Discount/GetDiscount

Gets currency information for an IP address of what currency this person should pay in.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Discount
NameDescriptionTypeAdditional information
ID

integer

None.

BookingDateFrom

date

None.

BookingDateTo

date

None.

PromoCode

string

None.

Name

string

None.

Description

string

None.

QualifyingPassengers

integer

None.

QualifyingPreRequisitTours

integer

None.

QualifyingTours

integer

None.

PricingComment

string

None.

AgeCategories

Collection of Discount_AgeCategory

None.

Amounts

Collection of Discount_Amount

None.

BlockOutDates

Collection of Discount_BlockOutDate

None.

DepartureDates

Collection of Discount_DepartureDate

None.

ISOCurrency_Regions

Collection of Discount_ISOCurrency_Region

None.

PreRequsit_Tours

Collection of Discount_PreRequisit_Tour

None.

Rooms

Collection of Discount_Room

None.

Tours

Collection of Discount_Tour

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected for property 'Discount' with type 'Radical.Entities.Web.Tour.Discount.Discount'. Path 'AgeCategories[0]'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected for property 'Discount' with type 'Radical.Entities.Web.Tour.Discount.Discount'. Path 'AgeCategories[0]'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'Radical.Entities.Web.Tour.Discount.Discount_AgeCategory' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'Radical.Entities.Web.Tour.Discount.Discount_AgeCategory' contains cycles and cannot be serialized if reference tracking is disabled.