Zak API to do guest chek in
Do checkin
Url: https://kapi.wubook.net/kapi/chin/do_checkin
The following fields are mandatory:
Field name  | 
Description  | 
|---|---|
rrid  | 
Id of the reservation-room [rrid]  | 
name  | 
Guest name  | 
surname  | 
Guest surname  | 
country  | 
Country ISO code (RU, IT, ES, ..)  | 
doc_type  | 
Code of document type (provided by api symbols: get document types)  | 
doc_number  | 
Document number  | 
The following fields are optional:
Field name  | 
Description  | 
|---|---|
cid  | 
Customer ID (if it’s an existing customer)  | 
birthday  | 
Customer birthday, e.g. 23/08/1990  | 
birth_country  | 
Birthday country  | 
gender  | 
Guest gender (m, f, x)  | 
Guest email  | 
|
phone  | 
Guest phone number  | 
city  | 
City of guest  | 
address  | 
Guest address  | 
zip  | 
Guest address zip code  | 
doc_issue  | 
Date of document issue  | 
doc_expiry  | 
Date of document expiry  | 
doc_issuer  | 
Issuer country of the document  | 
doc_medium  | 
Phisical ID of the document  | 
- rrid
 It is the identification number of a reservation-room and it can be obtained by reservation api.
Examples
curl:
curl https://kapi.wubook.net/kapi/chin/do_checkin -u 123456: \
  -d rrid=5218979 -d name='James' -d surname='Bond' -d country='ES' -d doc_type='d' -d doc_number='234'
python code:
import json
import requests
data= {
  "rrid":104,
  "name":"Max",
  "surname":"Planck",
  "country":"DE",
  "doc_type":"p",
  "doc_number":"MP-1033dA181",
  "gender":"m",
  "email":"max-planck@ppp.com",
  "phone":"822-0746 4885"
  }
jdata=json.dumps(data)
uspw=('123456', None)
response= requests.post('https://kapi.wubook.net/kapi/chin/do_checkin', jdata, auth= uspw)
print(response.text)
Set as arrived
Url: https://kapi.wubook.net/kapi/chin/set_arrived
Examples
curl:
curl https://kapi.wubook.net/kapi/chin/set_arrived -u 123456: -X POST -d rcode=MP-0002 -d rrid=104
{"data": true}
python code:
import requests
data= {"rcode": "MP-0002", "rrid": 104}
uspw=('123456', None)
response= requests.post('https://kapi.wubook.net/kapi/chin/set_arrived', data, auth= uspw)
print(response.text)
Set as gone
Api url: https://kapi.wubook.net/kapi/chin/set_left
Examples
curl:
curl https://kapi.wubook.net/kapi/chin/set_left -u 123456: -X POST -d rcode=MP-0002
{"data": true}
python code:
import requests
data= {"rcode": "MP-0002"}
uspw=('123456', None)
response= requests.post('https://kapi.wubook.net/kapi/chin/set_left', data, auth= uspw)
print(response.text)