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/27 14:55] 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 381: | 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 397: | 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 455: | 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) ===== |