User Tools

Site Tools


ors-soap-api:public:getpricecheckhash

getPriceCheckHash method

Get hash code for price check method. Because price check method requires unique hash code to perform availability check, you must execute this method first to get a correct hash code.

Depending on different connections, a different input parameters are needed. Usually unitId, rateId, dateFrom and dateTo are all that is needed. In some cases also serviceType parameter is needed. Please contact us if you have any problems with this API method.

Valid content types

  • hotel (at the moment only this content type is supported)

Description

public string getPriceCheckHash( array $searchData, array $headerData)

Parameters

  • searchData (array) : search parameters. Required serach parameters: toc, unitId, rateId, dateFrom, dateTo. Non mandatory parameters: serviceType
  • headerData (array) : in addition to SOAP Header Information , you'll need an export account credentials (xuser, xpass)

Return Values

Returns a hash code for availability check method. Here is an example of output:

4081:17281:2SI408126481:26481:OV:2015-08-01:2015-07-08

Examples

  • Example 1
$searchParams = array(
  'toc' => 'APP',               // touroperator code
  'unitId' => '17281',          // unit id
  'rateId' => '26481',          // rate id (get this from getUnitPricesByParams method)
  'dateFrom' => '2015-08-01',   // check-in date
  'dateTo' => '2015-07-08',     // check-out date
);
 
$hash = $soapClient->orsxml_hotel_api_call( 'getPriceCheckHash', $searchParams, $header );
  • Example 2 : with serviceType
$searchParams = array(
  'toc' => 'APP',               // touroperator code
  'unitId' => '17281',          // unit id
  'rateId' => '26481',          // rate id (get this from getUnitPricesByParams method)
  'dateFrom' => '2015-08-01',   // check-in date
  'dateTo' => '2015-07-08',     // check-out date
  'serviceType' => 'OV' ,     // service type code
);
 
$hash = $soapClient->orsxml_hotel_api_call( 'getPriceCheckHash', $searchParams, $header );
ors-soap-api/public/getpricecheckhash.txt · Last modified: 2015/02/21 20:10 by admin