Api.Wrapi

<back to all web services

RefreshBasket

This resource is used to refresh the basket of an order in HAPI.

The following routes are available for this service:
GET/basket/refresh/{id}Refresh a basket in WRAPI.
RefreshBasket Parameters:
NameParameterData TypeRequiredDescription
IdpathGUIDYesThe WRAPI Id to retrieve the basket for refresh
WrapiBasket Parameters:
NameParameterData TypeRequiredDescription
IdformGuidNo
ShortCodeformstringNo
SessionformSessionNo
ContentsformBasketNo
FlightsformList<FlightPair>No
AccommodationformList<Offer>No
HasValidOrderformboolNo
AbstractResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
Session Parameters:
NameParameterData TypeRequiredDescription
AuthenticationIdformstringNo
AuthenticatedformboolNo
TokenformstringNo
ExpiresformDateTimeNo
BasketIdformstringNo
SearchIdformstringNo
ProductIdformstringNo
SenderformstringNo
MessageformMessageNo
OrderIdformstringNo
Message Parameters:
NameParameterData TypeRequiredDescription
TextformstringNo
TechnicalInfoformstringNo
ProviderMessageformProviderMessageNo
TypeformstringNo
ClassformstringNo
IdformstringNo
ProviderMessage Parameters:
NameParameterData TypeRequiredDescription
TextformstringNo
Basket Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
CurrencyformstringNo
LanguageformstringNo
ProductformProductNo
TravellersformTraveller[]No
DiscountsformDiscount[]No
PriceformPriceNo
PaymentConditionformPaymentConditionNo
PricePerPersonformdecimalNo
Product Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
ReferenceformstringNo
StatusformstringNo
BookOptionsformBookOptionsNo
TravellersformList<TravellerSummary>No
ServicesformList<Service>No
IncludedformList<IncludedDetail>No
BookOptions Parameters:
NameParameterData TypeRequiredDescription
BookformBookNo
OptionformOptionNo
QuoteformQuoteNo
Book Parameters:
NameParameterData TypeRequiredDescription
AllowedformboolNo
Option Parameters:
NameParameterData TypeRequiredDescription
AllowedformboolNo
SetToformstringNo
ValidityformValidityNo
ExtendValidityformExtendValidityNo
Validity Parameters:
NameParameterData TypeRequiredDescription
DateformstringNo
ExtendValidity Parameters:
NameParameterData TypeRequiredDescription
AllowedformboolNo
DateformstringNo
Quote Parameters:
NameParameterData TypeRequiredDescription
AllowedformboolNo
TravellerSummary Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
ReferenceformintNo
PriceformPriceNo
Price Parameters:
NameParameterData TypeRequiredDescription
AmountformdecimalNo
CurrencyformstringNo
Service Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
ParentIdformstringNo
ReferenceformstringNo
StatusformstringNo
TravellersformList<TravellerSummary>No
DestinationformDestinationNo
Destination Parameters:
NameParameterData TypeRequiredDescription
LocationformLocationNo
CountryformDestinationCountryNo
Location Parameters:
NameParameterData TypeRequiredDescription
CodeformstringNo
DescriptionformLongNo
Long Parameters:
NameParameterData TypeRequiredDescription
Textformstring[]No
DestinationCountry Parameters:
NameParameterData TypeRequiredDescription
CodeformstringNo
DescriptionformLongNo
IncludedDetail Parameters:
NameParameterData TypeRequiredDescription
CodeformstringNo
TravellerformList<TravellerSummary>No
DateformStartEndDateNo
DescriptionformIncludedDescriptionNo
PriceformServiceDetailPriceNo
PropertyformPropertyTypeNo
IsDiscountformbool?No
StartEndDate Parameters:
NameParameterData TypeRequiredDescription
StartformDateDateNo
EndformDateDateNo
DateDate Parameters:
NameParameterData TypeRequiredDescription
DateformstringNo
IncludedDescription Parameters:
NameParameterData TypeRequiredDescription
LongformLongNo
ServiceDetailPrice Parameters:
NameParameterData TypeRequiredDescription
PerTravellerformServiceDetailPerTavellerPrice[]No
TotalformPriceNo
ServiceDetailPerTavellerPrice Parameters:
NameParameterData TypeRequiredDescription
TravellerReferenceformintNo
AmountformdecimalNo
CurrencyformstringNo
PropertyType Parameters:
NameParameterData TypeRequiredDescription
TypeformstringNo
Traveller Parameters:
NameParameterData TypeRequiredDescription
SalutationformstringNo
TitleformstringNo
WrapiTitleformstringNo
GenderformstringNo
FirstNameformstringNo
LastNameformstringNo
DateOfBirthformstringNo
TravellerTypeformTravellerTypeNo
CalculatedAgeformintNo
AllocatedformboolNo
Discount Parameters:
NameParameterData TypeRequiredDescription
TypeformstringNo
CodeformstringNo
ReferenceformReferenceNo
Reference Parameters:
NameParameterData TypeRequiredDescription
TypeformstringNo
IdformstringNo
Price Parameters:
NameParameterData TypeRequiredDescription
SellformSellNo
Sell Parameters:
NameParameterData TypeRequiredDescription
AmountformdecimalNo
CurrencyformstringNo
PaymentCondition Parameters:
NameParameterData TypeRequiredDescription
OpenAmountformConditionSellNo
ImmediatelyformImmediatelyNo
ConditionsformList<Condition>No
AllowedPaymentMethodsformAllowedPaymentMethodsNo
ConditionSell Parameters:
NameParameterData TypeRequiredDescription
NullableAmountformstringNo
AmountformdecimalNo
CurrencyformstringNo
Immediately Parameters:
NameParameterData TypeRequiredDescription
PaymentAmountformConditionSellNo
PercentformdecimalNo
Condition Parameters:
NameParameterData TypeRequiredDescription
DueDateformDateTimeNo
PaymentAmountformConditionSellNo
PercentformdecimalNo
AllowedPaymentMethods Parameters:
NameParameterData TypeRequiredDescription
PaymentMethodsformPaymentMethod[]No
PaymentMethod Parameters:
NameParameterData TypeRequiredDescription
CreditCardformCreditCardNo
CreditCard Parameters:
NameParameterData TypeRequiredDescription
CardBrandformstringNo
FlightPair Parameters:
NameParameterData TypeRequiredDescription
KeyformstringNo
OutboundformTransportNo
InboundformTransportNo
ValueformdoubleNo
Transport Parameters:
NameParameterData TypeRequiredDescription
OriginformGatewayNo
DestinationformGatewayNo
DateformDateNo
FlightformFlightNo
PriceformTransportPriceNo
SurchargeformTransportSurchargeNo
RequiredActionformRequiredActionNo
SearchServiceIdformstringNo
StatusformTransportStatusNo
AvailableSeatsformintNo
SkiSeatsformintNo
FlightMessageformstringNo
Gateway Parameters:
NameParameterData TypeRequiredDescription
LocationformLocationNo
CountryformGatewayCountryNo
Location Parameters:
NameParameterData TypeRequiredDescription
CodeformstringNo
DescriptionformLongNo
GatewayCountry Parameters:
NameParameterData TypeRequiredDescription
CodeformstringNo
DescriptionformLongNo
Date Parameters:
NameParameterData TypeRequiredDescription
DepartureformDepartureNo
ArrivalformArrivalNo
DurationformintNo
Departure Parameters:
NameParameterData TypeRequiredDescription
DateformstringNo
TimeformstringNo
UtcformstringNo
Arrival Parameters:
NameParameterData TypeRequiredDescription
DateformstringNo
TimeformstringNo
UtcformstringNo
Flight Parameters:
NameParameterData TypeRequiredDescription
CarrierformCarrierNo
FlightNumberformstringNo
ClassformClassNo
BaggageformBaggageNo
RoutingformRoutingNo
PropertyformPropertyNo
CodeformstringNo
Carrier Parameters:
NameParameterData TypeRequiredDescription
CodeformstringNo
DescriptionformDescriptionNo
Description Parameters:
NameParameterData TypeRequiredDescription
Textformstring[]No
Class Parameters:
NameParameterData TypeRequiredDescription
BookingClassformstringNo
CabinClassformCabinClassNo
CabinClass Parameters:
NameParameterData TypeRequiredDescription
DescriptionformLongNo
CodeformstringNo
Baggage Parameters:
NameParameterData TypeRequiredDescription
TypeformstringNo
QuantityformstringNo
WeightformstringNo
UnitformstringNo
Routing Parameters:
NameParameterData TypeRequiredDescription
DepartureformRoutingDepartureNo
ArrivalformRoutingArrivalNo
CarrierformCarrierNo
FlightNumberformstringNo
ClassformClassNo
DateformDateNo
AircraftTypeformAircraftTypeNo
BaggageformBaggageNo
OperationTypeformstringNo
RoutingDeparture Parameters:
NameParameterData TypeRequiredDescription
AirportformAirportNo
CityformCityNo
Airport Parameters:
NameParameterData TypeRequiredDescription
DestinationformLocationNo
CountryformGatewayCountryNo
City Parameters:
NameParameterData TypeRequiredDescription
DestinationformLocationNo
CountryformGatewayCountryNo
RoutingArrival Parameters:
NameParameterData TypeRequiredDescription
AirportformAirportNo
CityformCityNo
AircraftType Parameters:
NameParameterData TypeRequiredDescription
CodeformstringNo
DescriptionformLongNo
Property Parameters:
NameParameterData TypeRequiredDescription
TypeformstringNo
TransportPrice Parameters:
NameParameterData TypeRequiredDescription
AmountformAmountNo
Amount Parameters:
NameParameterData TypeRequiredDescription
TypeformstringNo
ValueformstringNo
ActualValueformdoubleNo
CurrencyformstringNo
TransportSurcharge Parameters:
NameParameterData TypeRequiredDescription
AmountformAmountNo
RequiredAction Parameters:
NameParameterData TypeRequiredDescription
ActionformstringNo
Offer Parameters:
NameParameterData TypeRequiredDescription
AccommodationformAccommodationNo
PriceformOfferPriceNo
OfferIdformstringNo
Accommodation Parameters:
NameParameterData TypeRequiredDescription
DestinationformDestinationNo
DateformDateNo
ProductformProductNo
RoomsformList<Room>No
PriceformAccommodationPriceNo
SurchargeformAccommodationSurchargeNo
RequiredActionformRequiredActionNo
AccommodationIdformstringNo
Destination Parameters:
NameParameterData TypeRequiredDescription
LocationformLocationNo
CountryformDestinationCountryNo
Location Parameters:
NameParameterData TypeRequiredDescription
CodeformstringNo
DescriptionformLongNo
DestinationCountry Parameters:
NameParameterData TypeRequiredDescription
CodeformstringNo
DescriptionformLongNo
Date Parameters:
NameParameterData TypeRequiredDescription
CheckInformCheckInNo
CheckOutformCheckInNo
DurationformDurationNo
CheckIn Parameters:
NameParameterData TypeRequiredDescription
DateformstringNo
Duration Parameters:
NameParameterData TypeRequiredDescription
EntityformstringNo
ValueformstringNo
Product Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
AddressformAddressNo
RatingformRatingNo
CodeformstringNo
Address Parameters:
NameParameterData TypeRequiredDescription
StructuredformStructuredNo
Structured Parameters:
NameParameterData TypeRequiredDescription
FirmformstringNo
NameformstringNo
AddressformStructuredAddressNo
StructuredAddress Parameters:
NameParameterData TypeRequiredDescription
ZipCodeformstringNo
CityformstringNo
CountryformCountryNo
Country Parameters:
NameParameterData TypeRequiredDescription
CodeformstringNo
DescriptionformLongNo
Rating Parameters:
NameParameterData TypeRequiredDescription
TypeformstringNo
ValueformstringNo
Room Parameters:
NameParameterData TypeRequiredDescription
DescriptionformDescriptionNo
OccupancyformOccupancyNo
PriceformAccommodationPriceNo
SurchargeformAccommodationSurchargeNo
BoardformList<Board>No
CodeformstringNo
RoomIdformstringNo
StatusformRoomStatusNo
AvailableRoomsformintNo
UnallocatedRoomsformintNo
TypeformstringNo
Description Parameters:
NameParameterData TypeRequiredDescription
ShortformShortNo
LongformRoomLongNo
Short Parameters:
NameParameterData TypeRequiredDescription
Textformstring[]No
RoomLong Parameters:
NameParameterData TypeRequiredDescription
Textformstring[]No
Occupancy Parameters:
NameParameterData TypeRequiredDescription
DefaultformintNo
MinimumformintNo
MaximumformintNo
MinNumOfAdultsformintNo
MaxNumOfAdultsformintNo
MaxNumOfInfantsformintNo
IncludeInfantsformboolNo
NoChildrenformboolNo
MinAgeformintNo
MaxAgeformintNo
MinChildAgeformintNo
MaxChildAgeformintNo
AccommodationPrice Parameters:
NameParameterData TypeRequiredDescription
AmountformAmountNo
Amount Parameters:
NameParameterData TypeRequiredDescription
TypeformstringNo
ValueformstringNo
CurrencyformstringNo
AccommodationSurcharge Parameters:
NameParameterData TypeRequiredDescription
AmountformAmountNo
Board Parameters:
NameParameterData TypeRequiredDescription
DescriptionformDescriptionNo
PriceformAccommodationPriceNo
SurchargeformAccommodationSurchargeNo
CodeformstringNo
SearchServiceIdformstringNo
DefaultformboolNo
OfferPrice Parameters:
NameParameterData TypeRequiredDescription
AmountformOfferPriceAmountNo
OfferPriceAmount Parameters:
NameParameterData TypeRequiredDescription
TypeformstringNo
BaseAmountformOfferPriceBaseAmountNo
MaxAmountformOfferPriceMaxAmountNo
OfferPriceBaseAmount Parameters:
NameParameterData TypeRequiredDescription
ValueformstringNo
CurrencyformstringNo
OfferPriceMaxAmount Parameters:
NameParameterData TypeRequiredDescription
ValueformstringNo
CurrencyformstringNo

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

GET /basket/refresh/{id} HTTP/1.1 
Host: wrapi-api.dev.hotelplan.co.uk 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"shortCode":"String","session":{"authenticated":false,"token":"String","expires":"0001-01-01T00:00:00.0000000","basketId":"String","searchId":"String","productId":"String","sender":"String","message":{"text":"String","technicalInfo":"String","providerMessage":{"text":"String"},"type":"String","class":"String","id":"String"},"orderId":"String"},"contents":{"id":"String","currency":"String","language":"String","product":{"id":"String","reference":"String","status":"String","bookOptions":{"book":{"allowed":false},"option":{"allowed":false,"setTo":"String","validity":{"date":"String"},"extendValidity":{"allowed":false,"date":"String"}},"quote":{"allowed":false}},"travellers":[{"id":"String","reference":0,"price":{"amount":0,"currency":"String"}}],"services":[{"id":"String","reference":"String","parent":"String","derivedFrom":{"id":"String","searchId":"String"},"travellers":[{"id":"String","reference":0,"price":{"amount":0,"currency":"String"}}],"detail":{"type":"Bus","wrapiType":"String","code":"String","item":{"productDetail":{"code":"String","type":{"code":"String"}},"price":{"perTraveller":[{"travellerReference":0,"amount":0,"currency":"String"}],"total":{"amount":0,"currency":"String"}}}},"errata":{"toConfirm":false,"dateDetail":{"start":{"date":"String"},"end":{"date":"String"}},"description":{"customer":{"value":["String"]}}},"included":[{"code":"String","traveller":[{"id":"String","reference":0,"price":{"amount":0,"currency":"String"}}],"date":{"start":{"date":"String"},"end":{"date":"String"}},"description":{"long":{"text":["String"]}},"price":{"perTraveller":[{"travellerReference":0,"amount":0,"currency":"String"}],"total":{"amount":0,"currency":"String"}},"property":{"type":"String"},"isDiscount":false}],"customerRequests":[{"id":"String","code":"String","type":"String","status":"String","travellers":[{"id":"String","reference":0,"price":{"amount":0,"currency":"String"}}],"fixedText":{"value":"String"},"freeText":{"value":"String"}}]}],"included":[{"code":"String","traveller":[{"id":"String","reference":0,"price":{"amount":0,"currency":"String"}}],"date":{"start":{"date":"String"},"end":{"date":"String"}},"description":{"long":{"text":["String"]}},"price":{"perTraveller":[{"travellerReference":0,"amount":0,"currency":"String"}],"total":{"amount":0,"currency":"String"}},"property":{"type":"String"},"isDiscount":false}]},"travellers":[{"salutation":"String","title":"String","wrapiTitle":"String","gender":"String","firstName":"String","lastName":"String","dateOfBirth":"String","travellerType":"Infant","calculatedAge":0,"id":"String","reference":0,"price":{"amount":0,"currency":"String"}}],"discounts":[{"type":"String","code":"String","reference":{"type":"String","id":"String"}}],"price":{"sell":{"amount":0,"currency":"String"}},"paymentCondition":{"openAmount":{"nullableAmount":"String","amount":0,"currency":"String"},"immediately":{"paymentAmount":{"nullableAmount":"String","amount":0,"currency":"String"},"percent":0},"conditions":[{"dueDate":"0001-01-01T00:00:00.0000000","paymentAmount":{"nullableAmount":"String","amount":0,"currency":"String"},"percent":0}],"allowedPaymentMethods":{"paymentMethods":[{"creditCard":{"cardBrand":"String"}}]}},"pricePerPerson":0},"flights":[{}],"accommodation":[{"accommodation":{"destination":{"location":{"code":"String","description":{"text":["String"]}},"country":{"code":"String","description":{"text":["String"]}}},"date":{"checkIn":{"date":"String"},"checkOut":{"date":"String"},"duration":{"entity":"String","value":"String"}},"product":{"name":"String","address":{"structured":{"firm":"String","name":"String","address":{"zipCode":"String","city":"String","country":{"code":"String","description":{"text":["String"]}}}}},"rating":{"type":"String","value":"String"},"code":"String"},"rooms":[{"description":{"short":{"text":["String"]},"long":{"text":["String"]}},"occupancy":{"default":0,"minimum":0,"maximum":0,"minNumOfAdults":0,"maxNumOfAdults":0,"maxNumOfInfants":0,"includeInfants":false,"noChildren":false,"minAge":0,"maxAge":0,"minChildAge":0,"maxChildAge":0},"price":{"amount":{"type":"String","value":"String","currency":"String"}},"surcharge":{"amount":{"type":"String","value":"String","currency":"String"}},"board":[{"description":{"short":{"text":["String"]},"long":{"text":["String"]}},"price":{"amount":{"type":"String","value":"String","currency":"String"}},"surcharge":{"amount":{"type":"String","value":"String","currency":"String"}},"code":"String","searchServiceId":"String","default":false}],"code":"String","roomId":"String","status":"Available","availableRooms":0,"unallocatedRooms":0}],"price":{"amount":{"type":"String","value":"String","currency":"String"}},"surcharge":{"amount":{"type":"String","value":"String","currency":"String"}},"requiredAction":{"action":"String"},"accommodationId":"String"},"price":{"amount":{"type":"String","baseAmount":{"value":"String","currency":"String"},"maxAmount":{"value":"String","currency":"String"}}},"offerId":"String"}],"hasValidOrder":false,"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}