Table of Contents

Option Info method

This method checks if option (free cancellation) is possible.

Valid content types

Description

public array option_info( array $searchData, array $trip, array $headerData )

Parameters

Return Values

Returns availability status and total price for all passengers. If session hasn't expired then this method will also return offer and trip info.

Array
(
    [offerTripInfo] => Array
        (
            [xmlReq] => 


            [searchtermin_xmlReq] => 


            [header] => Array
                (
                    [typ] => hotel
                    [offers] => 1
                    [rgc] => 
                    [rgn] => 0
                    [rgg] => 
                    [rggn] => 
                    [pages] => 1
                    [perpage] => 20
                    [offset] => 
                    [sid] => 4u1u6nof70tngqqq3tgc0preo0
                )

            [offer] => Array
                (
                    [pic] => http://www.ors.si/giata-pics/71088//full.jpg
                    [gid] => 71088
                    [htn] => Feral
                    [stc] => 4.0
                    [ovr] => 0
                    [oid] => 23887
                    [hon] => Brna
                    [fcts] => bea=1,ben=1,chf=0,clb=0,ani=0,pol=1,wel=0,spt=1,sgl=0,stn=0,ski=0
                    [dtemp] => 
                    [wtemp] => 
                    [rgc] => 659
                    [rgn] => Dalmatia
                    [rgg] => 100023
                    [rggn] => Croatia
                    [geo] => 1
                    [lat] => 42.9045823966052000
                    [lon] => 16.8566189525687980
                )

            [trip] => Array
                (
                    [sub] => catalog
                    [gid] => 71088
                    [toc] => PALM
                    [tockoda] => 80657677
                    [ton] => Palma
                    [rgc] => 659
                    [oid] => 2288
                    [zac] => EC
                    [zackoda] => 6967
                    [zan] => economy room
                    [vpc] => AI
                    [vpckoda] => 6573
                    [vpn] => all inclusive
                    [od] => aid=,iid=,lid=,vid=,zid=palm_22411
                    [htc] => LEHRV5041414
                    [svc] => 22411 EC AI
                    [ahckoda] => 
                    [vnd] => 2014-10-16
                    [bsd] => 2014-10-18
                    [tdc] => 2
                    [md5p] => 35a59b162e642f1df7c7c5664e46ffef
                    [md5t] => 172984d5ecb727f81e54a2f5db03a100
                    [hsc] => 172984d5ecb727f81e54a2f5db03a100
                    [ppc] => 76
                    [alt] => 0
                    [top] => 0
                    [tocpic] => http://www.ors.si/ibe/ikonce/toc/palm.gif
                    [aid] => 
                    [atx] => 
                    [iid] => 
                    [itx] => 
                    [lid] => 
                    [ltx] => 
                    [vid] => 
                    [vtx] => 
                    [zid] => palm_22411
                    [ztx] => 1/2 ECO AC; ALL LIGHT
                )

        )

    [xmlReq] => 

    [xmlRes] => 
    
    [response] => Array
        (
            [mid] => 740
            [ttp] => 152.00
            [ttpd] => 0.00
            [ppc] => 76.00
            [txt] => Option is possible
            [status] => 1
        )

    [offer] => Array
        (
            [typ] => hotel
            [sub] => catalog
            [toc] => PALM
            [ton] => Palma
            [tocp] => http://www.ors.si/ibe/ikonce/toc/palm.gif
            [htc] => LEHRV504141486
            [gid] => 71088
            [hon] => KORČULA
            [oid] => 
            [desc] => 
            [zac] => EC
            [zan] => economy room
            [vpc] => AI
            [vpn] => all inclusive
            [svc] => 22411 EC AI
            [stc] => 
            [htn] => Hotel Feral 4*
            [zhc] => DBV
            [zhn] => Dubrovnik (Kroatien)
            [ahc] => 
            [ahn] => 
            [vnd] => 16.10.2014
            [bsd] => 18.10.2014
            [tdc] => 2
            [sid] => 
            [sin] => 
            [idp] => [IDP]
            [ovr] => 0
            [pic] => http://www.ors.si/giata-pics/71088/full.jpg
        )

    [actions] => Array
        (
        )
        
    [extras] => Array
        (
            [0] => Array
                (
                    [info] => Array
                        (
                            [id] => 27104:9:1
                            [name] => POLPENZION
                            [price] => 6.00
                        )

                )

            [1] => Array
                (
                    [info] => Array
                        (
                            [id] => 27104:9:2
                            [name] => POLNI PENZION
                            [price] => 13.00
                        )

                )

            [2] => Array
                (
                    [info] => Array
                        (
                            [id] => 27104:9:3
                            [name] => KRAJŠE BIVANJE NA VPRAŠANJE
                            [price] => 6.80
                        )

                )

        )        

    [operator] => Array
        (
            [act] => BA
            [toc] => PALM
            [hsc] => 172984d5ecb727f81e54a2f5db03a100
            [agt] => 454085
            [opts] => 1
            [optq] => 1
            [optd] => 2015-01-23 23:59:59
        )

    [travellers] => Array
        (
            [0] => Array
                (
                    [id] => 1
                    [typ] => H
                    [sur] => UDBBCSVN
                    [pre] => LTULCFCH
                    [tvp] => 76
                    [age] => 
                )

            [1] => Array
                (
                    [id] => 2
                    [typ] => H
                    [sur] => JLEJAETI
                    [pre] => FUVFXQCG
                    [tvp] => 76
                    [age] => 
                )

        )

    [info] => Array
        (
            [0] => Room type: 1/2 ECO AC; ALL LIGHT
            [1] => Hotel Feral 4*
            [2] => Code: LEHRV504141486
            [3] => City: KORCULA
            [4] => Room: economy room
            [5] => Service: all inclusive
            [6] => Service code: 22411 EC AI           
            [7] => CRS powered by ORS XTREME
        )

    [exInfo] => Array
        (
        )

    [errorNr] => 
    [error] => 
)

Return parameters

Examples

$searchParams = array(
  'vnd' => '30.10.2014',       // start date
  'bsd' => '15.11.2014',       // end date
  'tdc' => '1-4',              // duration [min-max] days
  'epc' => '2',                // number of adults
  'gid' => '71088',            // selected hotel by GIATA ID
);
$trip = array(
  'hsc' => '172984d5ecb727f81e54a2f5db03a100',  // unique trip hash code
  'toc' => 'PALM'                               // toruoperator code
);
 
// option check
$check = $soapClient->orsxml_hotel_api_call( 'option_info', $searchParams, $trip, $headerData );

JSON Examples

@see ORS JSON API how to post request.

{
  "requestType" : "check",
  "action": "option_info",
  "search": {
    "typ": "hotel",
    "hsc": "509fd42d2fe71bc3396830b207d4bb92",
    "toc": "PALM",
    "epc": "2"
  },
  "header": {
    "lang": "[lang]",
    "usr" : "[usr]",
    "pass": "[pass]",
    "agid": "[agid]"
  }
}