User Tools

Site Tools


ors-soap-api:public:check

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ors-soap-api:public:check [2015/01/24 16:40]
127.0.0.1 external edit
ors-soap-api:public:check [2017/12/13 16:01] (current)
admin [Examples]
Line 123: Line 123:
             [ttpd] => 0.00             [ttpd] => 0.00
             [ppc] => 76.00             [ppc] => 76.00
 +            [ppct] => 1
             [txt] => Reservation possible, insert B command             [txt] => Reservation possible, insert B command
             [status] => 1             [status] => 1
Line 173: Line 174:
                             [name] => POLPENZION                             [name] => POLPENZION
                             [price] => 6.00                             [price] => 6.00
 +                            [included] => 0
                         )                         )
  
Line 184: Line 186:
                             [name] => POLNI PENZION                             [name] => POLNI PENZION
                             [price] => 13.00                             [price] => 13.00
 +                            [included] => 0
                         )                         )
  
Line 194: Line 197:
                             [id] => 27104:9:3                             [id] => 27104:9:3
                             [name] => KRAJŠE BIVANJE NA VPRAŠANJE                             [name] => KRAJŠE BIVANJE NA VPRAŠANJE
-                            [price] => 6.80+                            [price] => 
 +                            [included] => 1
                         )                         )
  
Line 229: Line 233:
                     [tvp] => 76                     [tvp] => 76
                     [age] =>                      [age] => 
 +                )
 +
 +        )
 +
 +    [included] => Array
 +        (
 +            [0] => Array
 +                (
 +                    [group] => Array
 +                        (
 +                            [code] => ExtracostOnPlace
 +                            [description] => Dodatni stroški
 +                        )
 +
 +                    [items] => Array
 +                        (
 +                            [0] => Array
 +                                (
 +                                    [code] => LT
 +                                    [name] => Turistična pristojbina
 +                                    [cost] => 1.00
 +                                    [cost_type] => PER PERSON
 +                                )
 +
 +                            [1] => Array
 +                                (
 +                                    [code] => TW
 +                                    [name] => Brisače
 +                                    [cost] => 10.00
 +                                    [cost_type] => PER PERSON
 +                                )
 +
 +                            [2] => Array
 +                                (
 +                                    [code] => BW
 +                                    [name] => Posteljnina ob prihodu
 +                                    [cost] => 10.00
 +                                    [cost_type] => PER PERSON
 +                                )
 +
 +                            [3] => Array
 +                                (
 +                                    [code] => FC
 +                                    [name] => Končno čiščenje
 +                                    [cost] => 15.00
 +                                    [cost_type] => PER PERSON
 +                                )
 +
 +                            [4] => Array
 +                                (
 +                                    [code] => EG
 +                                    [name] => Stroški elektrike
 +                                    [cost] => 35.00
 +                                    [cost_type] => PER PERSON/WEEK
 +                                )
 +
 +                            [5] => Array
 +                                (
 +                                    [code] => DE
 +                                    [name] => Plačilo varščine z gotovino
 +                                    [cost] => 100.00
 +                                    [cost_type] => PER ITEM
 +                                )
 +
 +                        )
 +
                 )                 )
  
Line 277: Line 347:
     * ''​ppc''​ : price per person (in situations when there is a price per room then this value will be empty or zero)     * ''​ppc''​ : price per person (in situations when there is a price per room then this value will be empty or zero)
     * ''​ttpd''​ : this is a reserved parameter!     * ''​ttpd''​ : this is a reserved parameter!
 +    * ''​ppct''​ : price type (0 - price per person, 1 - price per unit)
   * ''​offer (array)''​ : this are an offer information directly from touroperator. This values may differ from ''​offerTripInfo''​ information!   * ''​offer (array)''​ : this are an offer information directly from touroperator. This values may differ from ''​offerTripInfo''​ information!
     * ''​typ''​ : content type     * ''​typ''​ : content type
Line 313: Line 384:
       * ''​name''​ : extras name       * ''​name''​ : extras name
       * ''​price''​ : extras price       * ''​price''​ : extras price
 +      * ''​included''​ : if value equals 1 then this extras in included in price
   * ''​operator (array)''​ : used action, touroperator info and trip hash code   * ''​operator (array)''​ : used action, touroperator info and trip hash code
     * ''​act''​ : action     * ''​act''​ : action
Line 329: Line 401:
     * ''​age''​ : age / birthday     * ''​age''​ : age / birthday
     * ''​tvp''​ : price for this person     * ''​tvp''​ : price for this person
 +  * ''​included''​ (array) : additional information about what is included in price (**currently not supported**)
 +    * ''​group''​ (array) : group information
 +      * ''​code''​ : group code
 +      * ''​description''​ : group description (in selected language)
 +      * ''​items''​ (array) : items in this group
 +        * ''​code''​ : item code
 +        * ''​name''​ : item name (in selected language)
 +        * ''​cost''​ : item cost
 +        * ''​cost_type''​ : price type (PER PERSON, PER PERSON/​WEEK,​ PER ITEM,...)
   * ''​info''​ : touroperator information text. This text is directly from selectged touroperator and can be in different language. Usually this text contains important information about checked offer.   * ''​info''​ : touroperator information text. This text is directly from selectged touroperator and can be in different language. Usually this text contains important information about checked offer.
   * ''​errorNr''​ : error number   * ''​errorNr''​ : error number
Line 387: Line 468:
 </​code>​ </​code>​
  
 +===== JSON Examples =====
 +
 +@see [[ors-soap-api:​public:​json_api]] how to post request.
 +
 +<code php>
 +{
 +  "​requestType"​ : "​check",​
 +  "​action":​ "​check",​
 +  "​search":​ {
 +    "​typ":​ "​hotel",​
 +    "​hsc":​ "​509fd42d2fe71bc3396830b207d4bb92",​
 +    "​toc":​ "​PALM",​
 +    "​epc":​ "​2"​
 +  },
 +  "​header":​ {
 +    "​lang":​ "​[lang]",​
 +    "​usr"​ : "​[usr]",​
 +    "​pass":​ "​[pass]",​
 +    "​agid":​ "​[agid]"​
 +  }
 +}
 +</​code>​
  
 ===== Examples (Extras) ===== ===== Examples (Extras) =====
ors-soap-api/public/check.1422114000.txt.gz · Last modified: 2015/02/20 22:43 (external edit)