Api.Wrapi

<back to all web services

GetComplexExtras

This resource is used to manage complex extras in HAPI.

The following routes are available for this service:
GET/extras/complex/{id}Get complex extras in HAPI.
AbstractExtrasRequest Parameters:
NameParameterData TypeRequiredDescription
IdformGUIDYesThe WRAPI GUID to retrieve a cached session / extras
WrapiComplexExtras Parameters:
NameParameterData TypeRequiredDescription
ItemsformList<WrapiComplexExtra>No
WrapiComplexExtra Parameters:
NameParameterData TypeRequiredDescription
FacilityGroupformstringNo
DescriptionformstringNo
ProductsformList<WrapiComplexExtraProduct>No
WrapiComplexExtraProduct Parameters:
NameParameterData TypeRequiredDescription
CodeformstringNo
DescriptionformstringNo
TypesformList<Type>No
Type Parameters:
NameParameterData TypeRequiredDescription
DescriptionformDescriptionNo
OccupancyformOccupancyNo
PriceformServiceGroupPriceNo
CodeformstringNo
IdformstringNo
SearchServiceIdformstringNo
ParentServiceIdformstringNo
StatusformstringNo
AvailableTypesformstringNo
DateformDateNo
Description Parameters:
NameParameterData TypeRequiredDescription
ShortformShortNo
LongformLongNo
Short Parameters:
NameParameterData TypeRequiredDescription
Textformstring[]No
Long Parameters:
NameParameterData TypeRequiredDescription
Textformstring[]No
Occupancy Parameters:
NameParameterData TypeRequiredDescription
DefaultformintNo
MinimumformintNo
MaximumformintNo
MaxNumOfAdultsformintNo
MaxNumOfInfantsformintNo
MinAgeformintNo
MaxAgeformintNo
ServiceGroupPrice Parameters:
NameParameterData TypeRequiredDescription
AmountformAmountNo
Amount Parameters:
NameParameterData TypeRequiredDescription
TypeformstringNo
ValueformstringNo
CurrencyformstringNo
Date Parameters:
NameParameterData TypeRequiredDescription
StartformStartNo
EndformEndNo
DurationformDurationNo
Start Parameters:
NameParameterData TypeRequiredDescription
DateformstringNo
End Parameters:
NameParameterData TypeRequiredDescription
DateformstringNo
Duration Parameters:
NameParameterData TypeRequiredDescription
EntityformstringNo
ValueformstringNo

To override the Content-type in your clients, use the 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.

GET /extras/complex/{id} HTTP/1.1 
Host: wrapi-api.dev.hotelplan.co.uk 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{Unable to show example output for type 'WrapiComplexExtras' using the custom 'csv' filter}No parameterless constructor defined for this object.