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

Next revision
Previous revision
ors-soap-api:public:register [2015/01/24 16:40]
127.0.0.1 external edit
ors-soap-api:public:register [2019/11/12 09:46] (current)
admin [JSON Examples]
Line 363: Line 363:
   '​anrede2'​ => '​D', ​             // required parameter !   '​anrede2'​ => '​D', ​             // required parameter !
   '​anrede3'​ => '​K', ​             // required parameter !   '​anrede3'​ => '​K', ​             // required parameter !
-  '​age1'​ => '19820909', ​         // birth day of first passenger (format: 'Ymd') - 9th sep 1982 +  '​age1'​ => '09091982', ​         // birth day of first passenger (format: 'dmY') - 9th sep 1982 
-  '​age2'​ => '19811008', ​         // birth day of second passenger (format: 'Ymd') - 8th oct 1081 +  '​age2'​ => '08101981', ​         // birth day of second passenger (format: 'dmY') - 8th oct 1081 
-  '​age3'​ => '20001201', ​         // birth day of third passenger (format: 'Ymd') - 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",​
 +    "​age3":​ "​2005-06-11",​
 +    "​rmk":​ "TEST REGISTRAION"​
 +  },
 +  "​booking":​ true,
 +  "​header":​ {
 +    "​lang":​ "​[lang]",​
 +    "​usr"​ : "​[usr]",​
 +    "​pass":​ "​[pass]",​
 +    "​agid":​ "​[agid]"​
 +  }
 +}
 </​code>​ </​code>​
  
ors-soap-api/public/register.1422114000.txt.gz · Last modified: 2016/05/23 15:03 (external edit)