This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
ors-soap-api:public:check [2015/02/20 22:43] admin [Return Values] |
ors-soap-api:public:check [2017/12/13 16:01] (current) admin [Examples] |
||
---|---|---|---|
Line 174: | Line 174: | ||
[name] => POLPENZION | [name] => POLPENZION | ||
[price] => 6.00 | [price] => 6.00 | ||
+ | [included] => 0 | ||
) | ) | ||
Line 185: | Line 186: | ||
[name] => POLNI PENZION | [name] => POLNI PENZION | ||
[price] => 13.00 | [price] => 13.00 | ||
+ | [included] => 0 | ||
) | ) | ||
Line 195: | 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] => 0 |
+ | [included] => 1 | ||
) | ) | ||
Line 230: | 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 315: | 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 331: | 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 389: | 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) ===== |