Table of contents
-
- Search methods
- Check methods
- Booking methods
- Info methods
Data export
- Methods
Table of contents
Data export
Get an availability information.
hotel
(at the moment only this content type is supported)searchData (array)
: search parameters. Required serach parameters: toc
. Non mandatory parameters: objectId
, unitId
, dateFrom
, dateTo
headerData (array)
: in addition to SOAP Header Information , you'll need an export account credentials (xuser
, xpass
)Returns an availability in selected period
Array ( [units] => Array ( [17281] => Array ( [id] => 17281 [unitName] => A2+2 [unitType] => AP [unitView] => pool [inventory] => Array ( [2015-02-18] => Array ( [date] => 2015-02-18 [availableUnits] => 1 [request] => 0 [rateClosed] => false [rateClosedOnArrival] => false [rateClosedOnDeparture] => false ) [2015-02-19] => Array ( [date] => 2015-02-19 [availableUnits] => 1 [request] => 0 [rateClosed] => false [rateClosedOnArrival] => false [rateClosedOnDeparture] => false ) [2015-02-20] => Array ( [date] => 2015-02-20 [availableUnits] => 1 [request] => 0 [rateClosed] => false [rateClosedOnArrival] => false [rateClosedOnDeparture] => false ) ) ) ) )
units
(array) : list of unitsid
: unit IDunitName
: unit nameunitType
: unit typeunitView
: unit viewinventory
(array) : inventory informationdate
: dateavailableUnits
: a number of available units for this daterequest
: 0 - unit is not on request ; 1 - unit is on requestrateClosed
: if true - rate is closed on this day for arrivals and for departuresrateClosedOnArrival
: if true - rate is closed on this day only for arrivalsrateClosedOnDeparture
: if true - rate is closed on this day only for departures$searchParams = array( 'toc' => 'APP', // touroperator code 'objectId' => '4081', // unit id 'dateFrom' => '2015-02-20', // from date 'dateTo' => '2015-03-20', // to date ); $inventory = $soapClient->orsxml_hotel_api_call( 'getUnitAvailabilityByParams', $searchParams, $header );
$searchParams = array( 'toc' => 'APP', // touroperator code 'unitId' => '17281', // unit id 'dateFrom' => '2015-02-20', // from date 'dateTo' => '2015-03-20', // to date ); $inventory = $soapClient->orsxml_hotel_api_call( 'getUnitAvailabilityByParams', $searchParams, $header );