Skip to content

Get bookingorder

GET
/v1/bookingorders/{bookingorder_id}
Server

Authorizations

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

Parameters

Path Parameters

bookingorder_id*

XS2event ID of the Bookingorder

Typestring
Required

Responses

OK
application/json
JSON
{
"booking_id": "1b97adfc8a3a4fe4ad13b58f40372cca_bkn",
"bookingorder_id": "3fa6eb7f123a4f5ab2c9d8e7a6b7c9d0_bor",
"event_id": "dd82ecd6931749819942c4aff9dd23cb_evt",
"created": "2025-04-20T12:00:00",
"distributor_id": "b05f667dcaa843bd8c171c522217eb81_dst",
"accepted_gt": true,
"marketing_optin": false,
"mass_booking_allowed": true,
"api_booking": true,
"offline_booking": false,
"booking_code": "CODE123",
"zip_sha": "string",
"guestdata_status": "waitingfordistributor",
"max_pdfs_per_ticket": 5,
"distributorfinancial_status": "paid",
"logistic_status": "processing",
"event_name": "Concert X",
"payment_method": "card",
"payment_reference": "8c4a2b9d123e4f5a876c5d4e3f2b1a09_pay",
"booking_reference": "9d8c7b6a5f4e3d2c1b0a9f8e7d6c5b4a_ref",
"parent_id": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d_bkn",
"client_id": "5edec2b99b1b4c449a8ca2b1d6e4723e_cli",
"booking_email": "user@example.com",
"notify_client_status": "completed",
"invoices": [
"1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f_inv"
],
"items": [
]
}

Samples

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

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

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