priceCheck

public final RoomPriceCheck priceCheck(String propertyId, String roomId, String rateId, String token, String customerIp, String customerSessionId, String test)
public final RoomPriceCheck priceCheck(String propertyId, String roomId, String rateId, String token, String customerIp, String customerSessionId)
public final RoomPriceCheck priceCheck(String propertyId, String roomId, String rateId, String token, String customerIp)
public final RoomPriceCheck priceCheck(String propertyId, String roomId, String rateId, String token)

Price-Check Confirms the price returned by the Property Availability response. Use this API to verify a previously-selected rate is still valid before booking. If the price is matched, the response returns a link to request a booking. If the price has changed, the response returns new price details and a booking link for the new price. If the rate is no longer available, the response will return a new Property Availability request link to search again for different rates. In the event of a price change, go back to Property Availability and book the property at the new price or return to additional rates for the property.

Return

RoomPriceCheck

Parameters

propertyId

Expedia Property ID.

roomId

Room ID of a property.

rateId

Rate ID of a room.

token

A hashed collection of query parameters. Used to maintain state across calls. This token is provided as part of the price check link from the shop response.

customerIp

IP address of the customer, as captured by your integration.
Ensure your integration passes the customer's IP, not your own. This value helps determine their location and assign the correct payment gateway.
Also used for fraud recovery and other important analytics. (optional)

customerSessionId

Insert your own unique value for each user session, beginning with the first API call. Continue to pass the same value for each subsequent API call during the user's session, using a new value for every new customer session.
Including this value greatly eases EPS's internal debugging process for issues with partner requests, as it explicitly links together request paths for individual user's session. (optional)

test

Price check calls have a test header that can be used to return set responses with the following keywords: * available * price_changed * sold_out * service_unavailable * unknown_internal_error (optional)

Throws