Sphinx.Api

<back to all web services

GetDepartureAirportPricesByDepartureDate

This service is used to get the best prices using the search criteria, grouped for the departure date and time.

The following routes are available for this service:
GET/{brandCode}/{programcode}/prices/departure-dates

To override the Content-type in your clients HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /json/reply/GetDepartureAirportPricesByDepartureDate HTTP/1.1 
Host: sphinx-api-v2.dev.hotelplan.co.uk 
Content-Type: application/json
Content-Length: length

{"key":["String"],"from":["String"],"fromGroup":["String"],"to":[{"country":"String","region":0,"resort":0,"resortCode":"String","arrivalAirport":"String"}],"toCountries":["String"],"toRegions":[0],"toResorts":[0],"toResortCodes":["String"],"when":["0001-01-01T00:00:00.0000000"],"whenWindow":["0001-01-01T00:00:00.0000000"],"years":["0001-01-01T00:00:00.0000000"],"months":["0001-01-01T00:00:00.0000000"],"nights":[0],"adults":0,"children":0,"infants":0,"propertyCode":["String"],"maxPrice":0,"minPrice":0,"minSaving":0,"maxSaving":0,"boardBasis":["String"],"accommodationPropertyType":["String"],"accommodationRating":[0],"singleRoom":false,"offer":"String","offers":["String"],"self":false,"routeKey":"String","hasOfferCode":false,"roomQuantity":0,"groupField":"String","freeText":["String"],"sortField":"String","sortOrder":"Default","extraAgeBand":["String"],"extraProductType":["String"],"includeExtras":false,"brandCode":"String","programCode":"String","index":"String","appNameString":"String","version":"String","requestUrl":"String","ip":"String","requestId":"00000000000000000000000000000000","metaData":{"String":"String"}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"requestId":"00000000000000000000000000000000","responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String"}]}}