Skip to content

Download ticket (PDF)

GET
/v1/etickets/download/{bookingorder_id}/{orderitem_id}/url/{url}
Server

Download a single e-ticket (PDF) associated with a bookingorder

Authorizations

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

Parameters

Path Parameters

bookingorder_id*

XS2event ID of the Bookingorder

Typestring
Required
orderitem_id*

XS2event ID of the Order item

Typestring
Required
url*

XS2event URL of the PKPASS

Typestring
Required

Responses

OK
application/json
JSON
{
}

Samples

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

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

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