Skip to content

Update reservation

PUT
/v1/reservations/{reservation_id}
Server

Updates a specific reservation

Authorizations

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

Parameters

Path Parameters

reservation_id*

XS2event ID of the Reservation

Typestring
Required

Request Body

JSON
{
"items": [
{
"ticket_id": "b30c5d2d019e4eeba8de2bdd96e93434_tck",
"quantity": 4,
"net_rate": 1000,
"currency_code": "EUR"
}
],
"local_currency": "EUR",
"valid_until": "string",
"notify_me": true
}

Responses

OK
application/json
JSON
{
"client_id": "34e7303056c84c74abe9d48a5fbf68aa_cln",
"reservation_id": "64dab4ad7b7a442389a71bc253de0a09_rsv",
"status": "active",
"notify_client": true,
"notes": "Example note.",
"valid_until": "2024-05-01T12:30:32",
"created": "2024-05-01T12:20:32",
"updated": "2024-05-01T12:20:32",
"parent_allocation_id": "string",
"items": [
{
"currency": "EUR",
"event_name": "4th Round (Men's & Ladies) - Centre Court - Day 8 - Wimbledon (2024)",
"net_rate": 340000,
"quantity": 10,
"salesprice": 340000,
"ticket_id": "b30c5d2d019e4eeba8de2bdd96e93434_tck",
"ticket_name": "Debenture seat"
}
]
}

Samples

cURL
curl -X PUT \
'https://api.xs2event.com/v1/reservations/{reservation_id}' \
 -H "Content-Type: application/json"
JavaScript
fetch('https://api.xs2event.com/v1/reservations/{reservation_id}', {method:'PUT',headers:{'Content-Type':'application/json'}})
  .then(response => response.json())
  .then(data => console.log(data));
PHP
<?php
$url = 'https://api.xs2event.com/v1/reservations/{reservation_id}';
$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/reservations/{reservation_id}'

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

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