Get reseller ticket
curl --request GET \
--url https://api-alpha.fourvenues.com/resellers/tickets/{uniqueIdentifier} \
--header 'Authorization: <api-key>'import requests
url = "https://api-alpha.fourvenues.com/resellers/tickets/{uniqueIdentifier}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api-alpha.fourvenues.com/resellers/tickets/{uniqueIdentifier}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-alpha.fourvenues.com/resellers/tickets/{uniqueIdentifier}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-alpha.fourvenues.com/resellers/tickets/{uniqueIdentifier}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-alpha.fourvenues.com/resellers/tickets/{uniqueIdentifier}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-alpha.fourvenues.com/resellers/tickets/{uniqueIdentifier}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"tickets": [
{
"id": "abcdefghijk1234567890",
"swappable": true,
"display_name": "John Appleseed",
"barcode": "ABCD1234",
"barcode_type": "QR-Code",
"event": {
"id": "abcdefghijk1234567890",
"name": "Saturdays at Ginger Klub"
},
"ticket_type": {
"id": "abcdefghijk1234567890",
"name": "General",
"price": 2000,
"service_fee": 200,
"currency": "EUR"
}
}
]
}{
"valid": false,
"swappable": false,
"error": "UNAUTHORIZED"
}{
"error": "TICKETS_NOT_FOUND",
"error_code": "TICKETS_NOT_FOUND"
}API Reference
Get reseller ticket
Returns one ticket by its identifier, along with the event and the ticket type it belongs to.
GET
/
resellers
/
tickets
/
{uniqueIdentifier}
Get reseller ticket
curl --request GET \
--url https://api-alpha.fourvenues.com/resellers/tickets/{uniqueIdentifier} \
--header 'Authorization: <api-key>'import requests
url = "https://api-alpha.fourvenues.com/resellers/tickets/{uniqueIdentifier}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api-alpha.fourvenues.com/resellers/tickets/{uniqueIdentifier}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-alpha.fourvenues.com/resellers/tickets/{uniqueIdentifier}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-alpha.fourvenues.com/resellers/tickets/{uniqueIdentifier}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-alpha.fourvenues.com/resellers/tickets/{uniqueIdentifier}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-alpha.fourvenues.com/resellers/tickets/{uniqueIdentifier}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"tickets": [
{
"id": "abcdefghijk1234567890",
"swappable": true,
"display_name": "John Appleseed",
"barcode": "ABCD1234",
"barcode_type": "QR-Code",
"event": {
"id": "abcdefghijk1234567890",
"name": "Saturdays at Ginger Klub"
},
"ticket_type": {
"id": "abcdefghijk1234567890",
"name": "General",
"price": 2000,
"service_fee": 200,
"currency": "EUR"
}
}
]
}{
"valid": false,
"swappable": false,
"error": "UNAUTHORIZED"
}{
"error": "TICKETS_NOT_FOUND",
"error_code": "TICKETS_NOT_FOUND"
}