User Tools

Site Tools


ors-soap-api:public:getpricecheckhash

This is an old revision of the document!


A PCRE internal error occured. This might be caused by a faulty plugin

====== getObjects method ====== Get a list of touroperator objects. ===== Valid content types ===== * ''hotel'' (at the moment only this content type is supported) ===== Description ===== <code php> public string getObjects( array $searchData, array $headerData) </code> ===== Parameters ===== * ''searchData (array)'' : search parameters. Required serach parameters: ''toc''. Non mandatory parameters: ''objectId'' * ''headerData (array)'' : in addition to [[soap_header|SOAP Header Information]] , you'll need an export account credentials (''xuser'', ''xpass'') ===== Return Values ===== Returns a list of available objects. Here is an example of output (string is always returned): <code> 4081:17281:2SI408126481:26481:OV:2015-08-01:2015-07-08 </code> ===== Examples ===== * Example 1 <code php> $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 ); </code> * Example 2 : with serviceType <code php> $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 ); </code>

ors-soap-api/public/getpricecheckhash.1424545689.txt.gz · Last modified: 2015/02/21 20:08 by admin