User Tools

Site Tools


ors-soap-api:public:json_api

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:json_api [2017/12/13 15:52]
admin [Requests]
ors-soap-api:public:json_api [2017/12/13 16:23]
admin [Response]
Line 7: Line 7:
 ===== PHP Example ===== ===== PHP Example =====
  
-<code json> 
 # JSON search region request example # JSON search region request example
 +
 +<code json>
 { {
   "​requestType":"​search",​   "​requestType":"​search",​
Line 75: Line 76:
   * book   : to create registrations,​ booking, cancellations   * book   : to create registrations,​ booking, cancellations
  
-So fo example if you wich to search for hotels in a selected region, you create request like so:+So fo example if you wish to search for hotels in a selected region, you create request like so:
  
 <code json> <code json>
Line 105: Line 106:
   "​errorNr":​2001,​   "​errorNr":​2001,​
   "​error":​{"​msg":"​Invalid (or missing) action"​}   "​error":​{"​msg":"​Invalid (or missing) action"​}
 +  "​rqid"​ : "​request-id"​
 } }
 </​code>​ </​code>​
  
 On **success** you will get a JSON string which is the same structure as you would get with SOAP requests. Please check [[soap_calls]] for details. On **success** you will get a JSON string which is the same structure as you would get with SOAP requests. Please check [[soap_calls]] for details.
ors-soap-api/public/json_api.txt ยท Last modified: 2023/03/08 12:42 by admin