Methods
-
SearchDeals
|
SearchDeals
Returns all Active deals
Request
| Name | Type | Description | Required |
|---|
| request | DealsRequest | SearchDealsRequest with required ApiKey value | | | Category | String | Deal Category (Available values: Airfares, Hotels, Vacations, Cruises, Cars) | | | CityName | String | Destination city name | | | ComissionType | String | Commission Type (Available values: CPC, CPA, None) | | | CountryName | String | Destination country name | | | EndFrom | DateTime? | EndAt from date. For GET requests use format "MMM d, yyyy". For POST requests see notes above. | | | EndTo | DateTime? | EndAt to date. For GET requests use format "MMM d, yyyy". For POST requests see notes above. | | | PageIndex | int? | Page number(default 1) | | | PageSize | int? | Page Size (maximum 100, default 10) | | | RegionName | String | Destination region name | | | StartFrom | DateTime? | StartAt from date. For GET requests use format "MMM d, yyyy". For POST requests see notes above. | | | StartTo | DateTime? | StartAt to date. For GET requests use format "MMM d, yyyy". For POST requests see notes above. | | | StateName | String | Destination state name | | | TravelFrom | DateTime? | Start travel from date. For GET requests use format "MMM d, yyyy". For POST requests see notes above. | | | TravelTo | DateTime? | Start travel to date. For GET requests use format "MMM d, yyyy". For POST requests see notes above. | | | ApiKey | String | ApiKey of your organisation | |
Response
| Name | Type | Description |
|---|
| Deals | Deal[] |
List of Deals
| | Deals_0 | Deal | | | |— Category | String |
Deal Category (Available values: Airfares, Hotels, Vacations, Cruises, Cars)
| | |— CommissionType | String |
Commission Type (Available values: CPC, CPA, None)
| | |— Description | String |
Deal Descrition
| | |— Destinations | Location[] |
List of destinations
| | |— Destinations_0 | Location | | | |— City | String | | | |— Country | String | | | |— Region | String | | | |— State | String | | | |— Discount | decimal? |
Deal discount
| | |— EndAt | String |
Deal end at
| | |— Id | Int32 |
Deal id
| | |— LargeImageUrl | String |
Deal large image url
| | |— Origins | Location[] |
List of origins
| | |— Destinations_0 | Location | | | |— City | String | | | |— Country | String | | | |— Region | String | | | |— State | String | | | |— Price | decimal? |
Deal price after discount
| | |— Providers | Provider[] |
List of providers like hotel, airline, etc...
| | |— Providers_0 | Provider | | | |— Address | Address | | | |— City | String |
City name
| | |— Lat | decimal? |
Latitude
| | |— Lon | decimal? |
Longtitude
| | |— State | State | | | |— Code | String | | | |— Name | String | | | |— Street | String |
Street name
| | |— Zip | String |
Zip code
| | |— Email | String |
Provider email
| | |— Id | Int32 |
Provider id
| | |— Name | String |
Provider name
| | |— Phone | String |
Provider phone number
| | |— WebSite | String |
Provider web site url
| | |— SmallImageUrl | String |
Deal small image url
| | |— StartAt | String |
Deal start at
| | |— Title | String |
Deal title
| | |— TravelFrom | String |
Deal travel from date
| | |— TravelTo | String |
Deal travel date to
| | |— Url | String |
Deal url
| | |— Value | decimal? |
Original price before discount
| | TotalDeals | Int32 |
Total count of deals that match search criteria
| | ArgumentErrors | ArgumentError[] |
List of requests arguments errors
| | ArgumentErrors_0 | ArgumentError | | | |— ArgumentName | String |
Invalid argument name
| | |— ErrorMessage | String |
Argument error message
| | Error | Error | | | Code | Int32 |
Error code
| | Message | String |
Error message
| | IsSuccess | Boolean |
Is request success or not
|
|
|
|
Content-Type:
|
|
POST http://www.travelope.com/Api/soap
|
|
SOAPAction:
api.travelope.com/Api/SearchDeals
|
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<SearchDeals xmlns="api.travelope.com">
<request>
<ApiKey>HoXwsWr0MT</ApiKey>
<Category>Hotels</Category>
<CityName />
<ComissionType>None</ComissionType>
<CountryName>United States</CountryName>
<EndFrom>2012-01-01T00:00:00</EndFrom>
<EndTo>2012-12-31T00:00:00</EndTo>
<PageIndex>1</PageIndex>
<PageSize>10</PageSize>
<RegionName>United States</RegionName>
<StartFrom>2012-01-01T00:00:00</StartFrom>
<StartTo>2012-12-31T00:00:00</StartTo>
<StateName />
<TravelFrom>2012-01-01T00:00:00</TravelFrom>
<TravelTo>2012-12-31T00:00:00</TravelTo>
</request>
</SearchDeals>
</soap:Body>
</soap:Envelope>
|
|
|