Api.Wrapi

<back to all web services

GetAccommodationExtras

This resource is used to manage extras in HAPI.

The following routes are available for this service:
GET/extras/accommodation/{id}Get accommodation extras in HAPI.
AbstractExtrasRequest Parameters:
NameParameterData TypeRequiredDescription
IdformGUIDYesThe WRAPI GUID to retrieve a cached session / extras
WrapiExtras Parameters:
NameParameterData TypeRequiredDescription
ItemsformList<WrapiSimpleExtra>No
WrapiSimpleExtra Parameters:
NameParameterData TypeRequiredDescription
WrapiTypeformWrapiItemTypeNo
IdformstringNo
ServiceReferenceIdformstringNo
CodeformstringNo
TagformstringNo
DescriptionformstringNo
PriceformstringNo
StartformstringNo
EndformstringNo

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/accommodation/{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 'WrapiExtras' using the custom 'csv' filter}No parameterless constructor defined for this object.