Sphinx.Api

<back to all web services

GetDepartureMonthPrices

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

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

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

HTTP + CSV

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

POST /csv/reply/GetDepartureMonthPrices HTTP/1.1 
Host: sphinx-api-v2.dev.hotelplan.co.uk 
Content-Type: text/csv
Content-Length: length

Key,From,FromGroup,To,ToCountries,ToRegions,ToResorts,ToResortCodes,When,WhenWindow,Years,Months,Nights,Adults,Children,Infants,PropertyCode,MaxPrice,MinPrice,MinSaving,MaxSaving,BoardBasis,AccommodationPropertyType,AccommodationRating,SingleRoom,Offer,Offers,Self,RouteKey,HasOfferCode,RoomQuantity,GroupField,FreeText,SortField,SortOrder,ExtraAgeBand,ExtraProductType,IncludeExtras,BrandCode,ProgramCode,Index,AppNameString,Version,RequestUrl,Ip,RequestId,MetaData
[String],[String],[String],"[{country:String,region:0,resort:0,resortCode:String,arrivalAirport:String}]",[String],[0],[0],[String],[0001-01-01],[0001-01-01],[0001-01-01],[0001-01-01],[0],0,0,0,[String],0,0,0,0,[String],[String],[0],False,String,[String],False,String,False,0,String,[String],String,Default,[String],[String],False,String,String,String,String,String,String,String,00000000000000000000000000000000,{String:String}

HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

Items,RequestId,ResponseStatus
,00000000000000000000000000000000,"{errorCode:String,message:String,stackTrace:String,errors:[{errorCode:String,fieldName:String,message:String}]}"