User Tools

Site Tools


ors-soap-api:public:register

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
ors-soap-api:public:register [2016/05/23 15:03]
admin [Examples]
ors-soap-api:public:register [2019/11/12 09:46]
admin [JSON Examples]
Line 366: Line 366:
   '​age2'​ => '​08101981', ​         // birth day of second passenger (format: '​dmY'​) - 8th oct 1081   '​age2'​ => '​08101981', ​         // birth day of second passenger (format: '​dmY'​) - 8th oct 1081
   '​age3'​ => '​01122000', ​         // birth day of third passenger (format: '​dmY'​) - 1st dec 2000   '​age3'​ => '​01122000', ​         // birth day of third passenger (format: '​dmY'​) - 1st dec 2000
 +  '​rmk' ​ => 'My remark...', ​     // customer remark
 ); );
 $trip = array( $trip = array(
Line 411: Line 412:
   ​   ​
 } }
 +</​code>​
  
 +===== JSON Examples =====
  
 +@see [[ors-soap-api:​public:​json_api]] how to post request.
 +
 +<code php>
 +{
 +  "​requestType"​ : "​book",​
 +  "​action":​ "​register",​
 +  "​search":​ {
 +    "​typ":​ "​hotel",​
 +    "​hsc":​ "​509fd42d2fe71bc3396830b207d4bb92",​
 +    "​toc":​ "​PALM",​
 +    "​eml":​ "​gregor.flajs@ors.si",​
 +    "​zip":​ "​3310",​
 +    "​str":​ "​ulica",​
 +    "​cty":​ "​zalec",​
 +    "​sur1":​ "​Flajs",​
 +    "​sur2":​ "​Test",​
 +    "​sur3":​ "​Child",​
 +    "​pre1":​ "​Gregor",​
 +    "​pre2":​ "​Lady",​
 +    "​pre3":​ "​Kid",​
 +    "​anrede1":​ "​H",​
 +    "​anrede2":​ "​D",​
 +    "​anrede2":​ "​K",​
 +    "​age":​ "​2005-06-11",​
 +    "​rmk":​ "TEST REGISTRAION"​
 +  },
 +  "​booking":​ true,
 +  "​header":​ {
 +    "​lang":​ "​[lang]",​
 +    "​usr"​ : "​[usr]",​
 +    "​pass":​ "​[pass]",​
 +    "​agid":​ "​[agid]"​
 +  }
 +}
 </​code>​ </​code>​
  
ors-soap-api/public/register.txt ยท Last modified: 2019/11/12 09:46 by admin