Skip to content

Update bookingorder guestdata

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

Updates all the guest data for bookingorder

Authorizations

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

Parameters

Path Parameters

bookingorder_id*

XS2event ID of the Bookingorder

Typestring
Required

Request Body

JSON
{
"items": [
{
"ticket_id": "a5cf8e7b39c14aeba4de30a8f67b9e23_tck",
"guests": [
{
"first_name": "John",
"last_name": "Doe",
"passport_number": "ABC123456",
"contact_email": "user@example.com",
"contact_phone": "+31123456789",
"lead_guest": true,
"date_of_birth": "1991-01-30",
"gender": "male",
"country_of_residence": "NLD",
"street_name": "Hereweg 95",
"additional_street_name": "e",
"city": "Groningen",
"zip": "9721AA",
"province": "Groningen",
"guest_id": "string",
"conditions": "string",
"reservation_id": "5e3ae0658c9e405a9a62367293b8f56b_rsv",
"ticket_id": "ac8e9e918b4b4756b0f32e583a9cb3e4_tck"
}
]
}
]
}

Responses

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

Samples

cURL
curl -X PUT \
'https://api.xs2event.com/v1/bookingorders/{bookingorder_id}/guestdata' \
 -H "Content-Type: application/json"
JavaScript
fetch('https://api.xs2event.com/v1/bookingorders/{bookingorder_id}/guestdata', {method:'PUT',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 = 'PUT';
$headers = [
    'Content-Type' => 'application/json',
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
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'

headers = {
    'Content-Type': 'application/json'
}

response = requests.put(url, headers=headers)
print(response.json())