Search K
Appearance
Get the current guest data for a specific bookingorder and specific guest and what conditions apply.
XS2event ID of the Bookingorder
XS2event ID of the guest
Include validation conditions?
false
false
Hint for country code
NLD
curl -X GET \
'https://api.xs2event.com/v1/bookingorders/{bookingorder_id}/guestdata/{guest_id}?include_conditions=false&country_hint=NLD' \
-H "Content-Type: application/json"
fetch('https://api.xs2event.com/v1/bookingorders/{bookingorder_id}/guestdata/{guest_id}?include_conditions=false&country_hint=NLD', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'https://api.xs2event.com/v1/bookingorders/{bookingorder_id}/guestdata/{guest_id}';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$query = http_build_query([
'include_conditions' => 'false',
'country_hint' => 'NLD',
]);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url . '?' . $query);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'https://api.xs2event.com/v1/bookingorders/{bookingorder_id}/guestdata/{guest_id}'
params = {
'include_conditions': false,
'country_hint': 'NLD'
}
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, params=params, headers=headers)
print(response.json())