POST api/availablePackageOffers
Gets a list of all available package offers by sales date and tariff.
Request Information
URI Parameters
None.
Body Parameters
Cyberlogic.eTourism.Mappings.Web.Dto.Excursions.AvailablePackageOffersRequestDTOName | Description | Type | Additional information |
---|---|---|---|
SalesDate | string |
None. |
|
TariffId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "SalesDate": "sample string 1", "TariffId": 2 }
text/html
Sample:
{"SalesDate":"sample string 1","TariffId":2}
application/xml, text/xml
Sample:
<AvailablePackageOffersRequestDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Mappings.Web.Dto.Excursions"> <SalesDate>sample string 1</SalesDate> <TariffId>2</TariffId> </AvailablePackageOffersRequestDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
A collection of PackageOfferViewModel objects.
Collection of Cyberlogic.eTourism.Domain.ViewModels.Excursions.Offers.PackageOfferViewModelName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Name | string |
None. |
|
Excursions | Collection of Cyberlogic.eTourism.Domain.ViewModels.Excursions.Offers.PackageOfferViewModel+ExcursionViewModel |
None. |
|
CouponCode | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Id": 1, "Name": "sample string 2", "Excursions": [ { "Id": 1, "Name": "sample string 2", "TicketSupplierId": 3 }, { "Id": 1, "Name": "sample string 2", "TicketSupplierId": 3 } ], "CouponCode": "sample string 3" }, { "Id": 1, "Name": "sample string 2", "Excursions": [ { "Id": 1, "Name": "sample string 2", "TicketSupplierId": 3 }, { "Id": 1, "Name": "sample string 2", "TicketSupplierId": 3 } ], "CouponCode": "sample string 3" } ]
text/html
Sample:
[{"Id":1,"Name":"sample string 2","Excursions":[{"Id":1,"Name":"sample string 2","TicketSupplierId":3},{"Id":1,"Name":"sample string 2","TicketSupplierId":3}],"CouponCode":"sample string 3"},{"Id":1,"Name":"sample string 2","Excursions":[{"Id":1,"Name":"sample string 2","TicketSupplierId":3},{"Id":1,"Name":"sample string 2","TicketSupplierId":3}],"CouponCode":"sample string 3"}]
application/xml, text/xml
Sample:
<ArrayOfPackageOfferViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Excursions.Offers"> <PackageOfferViewModel> <CouponCode>sample string 3</CouponCode> <Excursions> <PackageOfferViewModel.ExcursionViewModel> <Id>1</Id> <Name>sample string 2</Name> <TicketSupplierId>3</TicketSupplierId> </PackageOfferViewModel.ExcursionViewModel> <PackageOfferViewModel.ExcursionViewModel> <Id>1</Id> <Name>sample string 2</Name> <TicketSupplierId>3</TicketSupplierId> </PackageOfferViewModel.ExcursionViewModel> </Excursions> <Id>1</Id> <Name>sample string 2</Name> </PackageOfferViewModel> <PackageOfferViewModel> <CouponCode>sample string 3</CouponCode> <Excursions> <PackageOfferViewModel.ExcursionViewModel> <Id>1</Id> <Name>sample string 2</Name> <TicketSupplierId>3</TicketSupplierId> </PackageOfferViewModel.ExcursionViewModel> <PackageOfferViewModel.ExcursionViewModel> <Id>1</Id> <Name>sample string 2</Name> <TicketSupplierId>3</TicketSupplierId> </PackageOfferViewModel.ExcursionViewModel> </Excursions> <Id>1</Id> <Name>sample string 2</Name> </PackageOfferViewModel> </ArrayOfPackageOfferViewModel>