Skip to content

Gets link to E-tickets zipfile

GET
/v1/etickets/download/zip/{bookingorder_id}
Server

retrieve a secured CDN link valid from a short period of time to download the zip file

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
"https://download.example.com/ticket/5867e9941e924a7bb169e244b26589ba_bor"

Samples

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

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

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