Skip to content

Get bookingorder guestdata

GET
/v1/bookingorders/{bookingorder_id}/guestdata
Server

Get the current guest data for the bookingorder and what the conditions are.

Authorizations

api_key
TypeAPI Key (header: X-Api-Key)

Parameters

Path Parameters

bookingorder_id*

XS2event ID of the Bookingorder

Typestring
Required

Query Parameters

sorting
Typestring
default
include_conditions

Include validation conditions?

Typeboolean
Examplefalse
defaultfalse
country_hint

Hint for country code

Typestring
ExampleNLD

Responses

OK
application/json
JSON
{
"bookingorder_id": "string",
"items": "string"
}

Samples

cURL
curl -X GET \
'https://api.xs2event.com/v1/bookingorders/{bookingorder_id}/guestdata?include_conditions=false&country_hint=NLD' \
 -H "Content-Type: application/json"
JavaScript
fetch('https://api.xs2event.com/v1/bookingorders/{bookingorder_id}/guestdata?include_conditions=false&country_hint=NLD', {headers:{'Content-Type':'application/json'}})
  .then(response => response.json())
  .then(data => console.log(data));
PHP
<?php
$url = 'https://api.xs2event.com/v1/bookingorders/{bookingorder_id}/guestdata';
$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;
?>
Python
import requests

url = 'https://api.xs2event.com/v1/bookingorders/{bookingorder_id}/guestdata'
params = {
    'include_conditions': false,
    'country_hint': 'NLD'
}
headers = {
    'Content-Type': 'application/json'
}

response = requests.get(url, params=params, headers=headers)
print(response.json())