Zak API to read customers
These APIs allow you to read the customers data of a zak property.
Fetch Customers by id
This method provides customers data.
Url: https://kapi.wubook.net/kp/customers/fetch_one
Input fields: customer id
Response-data: a data structure containing customer info.
For a guest, following data is provided:
Field name |
Description |
---|---|
name |
Customer name |
surname |
Customer surname |
country |
Country |
city |
City |
address |
Address |
zipcode |
Zipcode |
tax code |
Tax code |
gender |
Gender |
birth_country |
Birth Country |
birth_city |
Birth City |
birthday |
Birthday |
phone |
phone number |
Examples
On each examples 123456 is used as api-key which is sent as user.
curl:
$ curl --location --request POST 'https://kapi.wubook.net/kp/customers/fetch_one' \
--header 'x-api-key: wb_yyyyyyyyyy' \
--header 'x-api-provider-key: kp_xxxxxxxxxxx' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'id=100000'
{'data':
{
'anagraphical':
{
'birth_city':
'Munich',
'birth_country': 'DE',
'birthday': '10/12/1956',
'gender': ' '
},
'contacts':
{
'email': '',
'phone': ''
},
'main_info':
{
'address': '',
'cf': '',
'city': '',
'country': 'DE',
'creation': '12/11/2021',
'name': 'Angela',
'surname': 'Rossi',
'zipcode': ''
}
}
}
python code:
import requests
url = "https://kapi.wuboo.net/kp/customers/fetch_one"
payload='id=100000'
headers = {
'x-api-key': 'wb_yyyyyyyyyyyyy',
'x-api-provider-key': 'kp_xxxxxxxxx',
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)