POST api/b2c/excursions/available
Gets a list of available excursions depending on the type of the request (station / excursion) for a default b2c seller
Request Information
URI Parameters
None.
Body Parameters
An instance of the ExcursionSearchRequestDTO.
Cyberlogic.eTourism.Mappings.Web.Dto.Excursions.ExcursionSearchRequestDTOName | Description | Type | Additional information |
---|---|---|---|
DateFrom | string |
None. |
|
DateTo | string |
None. |
|
RemoveHtml | boolean |
None. |
|
CustomerId | integer |
None. |
|
TariffId | integer |
None. |
|
SellerId | integer |
None. |
|
Suggestion | Cyberlogic.eTourism.Mappings.Web.Dto.Excursions.ExcursionSearchSuggestionDTO |
None. |
|
DescriptionLanguageId | integer |
None. |
|
ScheduleLanguageId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "DateFrom": "sample string 1", "DateTo": "sample string 2", "RemoveHtml": true, "CustomerId": 3, "TariffId": 4, "SellerId": 5, "Suggestion": { "Id": 1, "Name": "sample string 2", "Type": "sample string 3" }, "DescriptionLanguageId": 6, "ScheduleLanguageId": 7 }
text/html
Sample:
{"DateFrom":"sample string 1","DateTo":"sample string 2","RemoveHtml":true,"CustomerId":3,"TariffId":4,"SellerId":5,"Suggestion":{"Id":1,"Name":"sample string 2","Type":"sample string 3"},"DescriptionLanguageId":6,"ScheduleLanguageId":7}
application/xml, text/xml
Sample:
<ExcursionSearchRequestDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Mappings.Web.Dto.Excursions"> <CustomerId>3</CustomerId> <DateFrom>sample string 1</DateFrom> <DateTo>sample string 2</DateTo> <DescriptionLanguageId>6</DescriptionLanguageId> <RemoveHtml>true</RemoveHtml> <ScheduleLanguageId>7</ScheduleLanguageId> <SellerId>5</SellerId> <Suggestion> <Id>1</Id> <Name>sample string 2</Name> <Type>sample string 3</Type> </Suggestion> <TariffId>4</TariffId> </ExcursionSearchRequestDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
A list of ExcursionSearchViewModel objects.
Collection of Cyberlogic.eTourism.Domain.ViewModels.Excursions.ExcursionSearchViewModelName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Name | string |
None. |
|
Duration | string |
None. |
|
MainDescription | string |
None. |
|
Schedules | Collection of Cyberlogic.eTourism.Domain.ViewModels.Excursions.ExcursionScheduleViewModel |
None. |
|
FromPrice | decimal number |
None. |
|
PhotoUrl | string |
None. |
|
SupplierId | integer |
None. |
|
DurationDays | integer |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Id": 1, "Name": "sample string 2", "Duration": "sample string 3", "MainDescription": "sample string 4", "Schedules": [ { "From": "2024-11-19T15:21:20.1780995+02:00", "To": "2024-11-19T15:21:20.1780995+02:00", "Monday": true, "Tuesday": true, "Wednesday": true, "Thursday": true, "Friday": true, "Saturday": true, "Sunday": true, "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" } }, { "From": "2024-11-19T15:21:20.1780995+02:00", "To": "2024-11-19T15:21:20.1780995+02:00", "Monday": true, "Tuesday": true, "Wednesday": true, "Thursday": true, "Friday": true, "Saturday": true, "Sunday": true, "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" } } ], "FromPrice": 5.0, "PhotoUrl": "sample string 6", "SupplierId": 7, "DurationDays": 8 }, { "Id": 1, "Name": "sample string 2", "Duration": "sample string 3", "MainDescription": "sample string 4", "Schedules": [ { "From": "2024-11-19T15:21:20.1780995+02:00", "To": "2024-11-19T15:21:20.1780995+02:00", "Monday": true, "Tuesday": true, "Wednesday": true, "Thursday": true, "Friday": true, "Saturday": true, "Sunday": true, "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" } }, { "From": "2024-11-19T15:21:20.1780995+02:00", "To": "2024-11-19T15:21:20.1780995+02:00", "Monday": true, "Tuesday": true, "Wednesday": true, "Thursday": true, "Friday": true, "Saturday": true, "Sunday": true, "Language": { "Id": 1, "Name": "sample string 2", "InternetCode": "sample string 3" } } ], "FromPrice": 5.0, "PhotoUrl": "sample string 6", "SupplierId": 7, "DurationDays": 8 } ]
text/html
Sample:
[{"Id":1,"Name":"sample string 2","Duration":"sample string 3","MainDescription":"sample string 4","Schedules":[{"From":"2024-11-19T15:21:20.1780995+02:00","To":"2024-11-19T15:21:20.1780995+02:00","Monday":true,"Tuesday":true,"Wednesday":true,"Thursday":true,"Friday":true,"Saturday":true,"Sunday":true,"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"}},{"From":"2024-11-19T15:21:20.1780995+02:00","To":"2024-11-19T15:21:20.1780995+02:00","Monday":true,"Tuesday":true,"Wednesday":true,"Thursday":true,"Friday":true,"Saturday":true,"Sunday":true,"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"}}],"FromPrice":5.0,"PhotoUrl":"sample string 6","SupplierId":7,"DurationDays":8},{"Id":1,"Name":"sample string 2","Duration":"sample string 3","MainDescription":"sample string 4","Schedules":[{"From":"2024-11-19T15:21:20.1780995+02:00","To":"2024-11-19T15:21:20.1780995+02:00","Monday":true,"Tuesday":true,"Wednesday":true,"Thursday":true,"Friday":true,"Saturday":true,"Sunday":true,"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"}},{"From":"2024-11-19T15:21:20.1780995+02:00","To":"2024-11-19T15:21:20.1780995+02:00","Monday":true,"Tuesday":true,"Wednesday":true,"Thursday":true,"Friday":true,"Saturday":true,"Sunday":true,"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"}}],"FromPrice":5.0,"PhotoUrl":"sample string 6","SupplierId":7,"DurationDays":8}]
application/xml, text/xml
Sample:
<ArrayOfExcursionSearchViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Excursions"> <ExcursionSearchViewModel> <Duration>sample string 3</Duration> <DurationDays>8</DurationDays> <FromPrice>5</FromPrice> <Id>1</Id> <MainDescription>sample string 4</MainDescription> <Name>sample string 2</Name> <PhotoUrl>sample string 6</PhotoUrl> <Schedules> <ExcursionScheduleViewModel> <Friday>true</Friday> <From>2024-11-19T15:21:20.1780995+02:00</From> <Language xmlns:d5p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared"> <d5p1:Id>1</d5p1:Id> <d5p1:InternetCode>sample string 3</d5p1:InternetCode> <d5p1:Name>sample string 2</d5p1:Name> </Language> <Monday>true</Monday> <Saturday>true</Saturday> <Sunday>true</Sunday> <Thursday>true</Thursday> <To>2024-11-19T15:21:20.1780995+02:00</To> <Tuesday>true</Tuesday> <Wednesday>true</Wednesday> </ExcursionScheduleViewModel> <ExcursionScheduleViewModel> <Friday>true</Friday> <From>2024-11-19T15:21:20.1780995+02:00</From> <Language xmlns:d5p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared"> <d5p1:Id>1</d5p1:Id> <d5p1:InternetCode>sample string 3</d5p1:InternetCode> <d5p1:Name>sample string 2</d5p1:Name> </Language> <Monday>true</Monday> <Saturday>true</Saturday> <Sunday>true</Sunday> <Thursday>true</Thursday> <To>2024-11-19T15:21:20.1780995+02:00</To> <Tuesday>true</Tuesday> <Wednesday>true</Wednesday> </ExcursionScheduleViewModel> </Schedules> <SupplierId>7</SupplierId> </ExcursionSearchViewModel> <ExcursionSearchViewModel> <Duration>sample string 3</Duration> <DurationDays>8</DurationDays> <FromPrice>5</FromPrice> <Id>1</Id> <MainDescription>sample string 4</MainDescription> <Name>sample string 2</Name> <PhotoUrl>sample string 6</PhotoUrl> <Schedules> <ExcursionScheduleViewModel> <Friday>true</Friday> <From>2024-11-19T15:21:20.1780995+02:00</From> <Language xmlns:d5p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared"> <d5p1:Id>1</d5p1:Id> <d5p1:InternetCode>sample string 3</d5p1:InternetCode> <d5p1:Name>sample string 2</d5p1:Name> </Language> <Monday>true</Monday> <Saturday>true</Saturday> <Sunday>true</Sunday> <Thursday>true</Thursday> <To>2024-11-19T15:21:20.1780995+02:00</To> <Tuesday>true</Tuesday> <Wednesday>true</Wednesday> </ExcursionScheduleViewModel> <ExcursionScheduleViewModel> <Friday>true</Friday> <From>2024-11-19T15:21:20.1780995+02:00</From> <Language xmlns:d5p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared"> <d5p1:Id>1</d5p1:Id> <d5p1:InternetCode>sample string 3</d5p1:InternetCode> <d5p1:Name>sample string 2</d5p1:Name> </Language> <Monday>true</Monday> <Saturday>true</Saturday> <Sunday>true</Sunday> <Thursday>true</Thursday> <To>2024-11-19T15:21:20.1780995+02:00</To> <Tuesday>true</Tuesday> <Wednesday>true</Wednesday> </ExcursionScheduleViewModel> </Schedules> <SupplierId>7</SupplierId> </ExcursionSearchViewModel> </ArrayOfExcursionSearchViewModel>