Glownet API

Glownet Developer Hub

Whether you are an official Glownet partner or just an independent developer, here you will find guides and documentation for Glownet API, as well as support if you get stuck.

Let's jump right in!

Get Started
Suggest Edits

/ticket_types

Returns a list of ticket types

 

Basic Auth

 Authentication is required for this endpoint.
gethttps://sandbox.glownet.com/companies/api/v1/ticket_types
curl --request GET \
  --url https://sandbox.glownet.com/companies/api/v1/ticket_types
var request = require("request");

var options = { method: 'GET',
  url: 'https://sandbox.glownet.com/companies/api/v1/ticket_types' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://sandbox.glownet.com/companies/api/v1/ticket_types")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://sandbox.glownet.com/companies/api/v1/ticket_types");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/companies/api/v1/ticket_types"

response = requests.request("GET", url)

print(response.text)
A binary file was returned
{
	"event": 1,
	"ticket_types": [
    {
      "id": 1,
      "name": "VIP Ticket",
      "ticket_type_ref": "015"
    },
    {
      "id": 2,
      "name": "Regular Ticket",
      "ticket_type_ref": "011"
    }
  ]
}
 

Code examples

Remember

This authentication token is just an example, change it for your own token.

GET /companies/api/v1/ticket_types HTTP/1.1
Host: sandbox.glownet.com
Authorization: Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2
Content-Type: application/json
Cache-Control: no-cache
curl -X GET -H "Authorization: Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2" -H "Content-Type: application/json" -H "Cache-Control: no-cache" "https://sandbox.glownet.com/companies/api/v1/ticket_types"
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://sandbox.glownet.com/companies/api/v1/ticket_types")
  .get()
  .addHeader("authorization", "Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2")
  .addHeader("content-type", "application/json")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();
HttpResponse<String> response = Unirest.get("https://sandbox.glownet.com/companies/api/v1/ticket_types")
  .header("authorization", "Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2")
  .header("content-type", "application/json")
  .header("cache-control", "no-cache")
  .asString();
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://sandbox.glownet.com/companies/api/v1/ticket_types");
xhr.setRequestHeader("authorization", "Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2");
xhr.setRequestHeader("content-type", "application/json");
xhr.setRequestHeader("cache-control", "no-cache");

xhr.send(data);
var settings = {
  "async": true,
  "crossDomain": true,
  "url": "https://sandbox.glownet.com/companies/api/v1/ticket_types",
  "method": "GET",
  "headers": {
    "authorization": "Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2",
    "content-type": "application/json",
    "cache-control": "no-cache"
  },
  "processData": false,
  "data": ""
}

$.ajax(settings).done(function (response) {
  console.log(response);
});
<?php

$client = new http\Client;
$request = new http\Client\Request;

$request->setRequestUrl('https://sandbox.glownet.com/companies/api/v1/ticket_types');
$request->setRequestMethod('GET');
$request->setHeaders(array(
  'cache-control' => 'no-cache',
  'content-type' => 'application/json',
  'authorization' => 'Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
import http.client

conn = http.client.HTTPSConnection("sandbox.glownet.com")

payload = ""

headers = {
    'authorization': "Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2",
    'content-type': "application/json",
    'cache-control': "no-cache"
    }

conn.request("GET", "/companies/api/v1/ticket_types", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
require 'uri'
require 'net/http'

url = URI("https://sandbox.glownet.com/companies/api/v1/ticket_types")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["authorization"] = 'Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2'
request["content-type"] = 'application/json'
request["cache-control"] = 'no-cache'

response = http.request(request)
puts response.read_body
Suggest Edits

/ticket_types/:id

Returns a ticket type

 

Basic Auth

 Authentication is required for this endpoint.
gethttps://sandbox.glownet.com/companies/api/v1/ticket_types/id
curl --request GET \
  --url https://sandbox.glownet.com/companies/api/v1/ticket_types/id
var request = require("request");

var options = { method: 'GET',
  url: 'https://sandbox.glownet.com/companies/api/v1/ticket_types/id' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://sandbox.glownet.com/companies/api/v1/ticket_types/id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://sandbox.glownet.com/companies/api/v1/ticket_types/id");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/companies/api/v1/ticket_types/id"

response = requests.request("GET", url)

print(response.text)
A binary file was returned
{
  "id": 1,
  "name": "VIP Ticket",
  "ticket_type_ref": "15"
}
{
  "status": "not_found",
  "error": "Ticket type with id 4390 not found."
}

Path Params

id
int32
required

Ticker type id

 

Returns a list of ticket types associated with your company.

Suggest Edits

/ticket_types

Creates a new ticket type

 

Basic Auth

 Authentication is required for this endpoint.
posthttps://sandbox.glownet.com/companies/api/v1/ticket_types
curl --request POST \
  --url https://sandbox.glownet.com/companies/api/v1/ticket_types
var request = require("request");

var options = { method: 'POST',
  url: 'https://sandbox.glownet.com/companies/api/v1/ticket_types' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://sandbox.glownet.com/companies/api/v1/ticket_types")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://sandbox.glownet.com/companies/api/v1/ticket_types");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/companies/api/v1/ticket_types"

response = requests.request("POST", url)

print(response.text)
A binary file was returned
{
  "id": 1,
  "name": "VIP Pass",
  "ticket_type_ref": "12"
}
{
  "status": "bad_request",
  "error": "There was a problem in the JSON you submitted: unexpected character at line 4, column 11 [parse.c:652]"
}
{
  "status": "unprocessable_entity",
  "errors": [
    "Company code has already been taken"
  ]
}

Body Params

ticket_type
object
 
ticket_type.name
string
required

Ticket type name

ticket_type.ticket_type_ref
string
required

Ticket type's reference specific of your company

 

Code examples

Remember

This authentication token is just an example, change it for your own token.

POST /companies/api/v1/ticket_types HTTP/1.1
Host: sandbox.glownet.com
Authorization: Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2
Content-Type: application/json
Cache-Control: no-cache

{"ticket_type": { "name": "VIP Pass", "company_ticket_type_ref": "12" }}
curl -X POST -H "Authorization: Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d '{"ticket_type": { "name": "VIP Pass", "company_ticket_type_ref": "12" }}' "https://sandbox.glownet.com/companies/api/v1/ticket_types"
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"ticket_type\": { \"name\": \"VIP Pass\", \"company_ticket_type_ref\": \"12\" }}");
Request request = new Request.Builder()
  .url("https://sandbox.glownet.com/companies/api/v1/ticket_types")
  .post(body)
  .addHeader("authorization", "Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2")
  .addHeader("content-type", "application/json")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();
HttpResponse<String> response = Unirest.post("https://sandbox.glownet.com/companies/api/v1/ticket_types")
  .header("authorization", "Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2")
  .header("content-type", "application/json")
  .header("cache-control", "no-cache")
  .body("{\"ticket_type\": { \"name\": \"VIP Pass\", \"company_ticket_type_ref\": \"12\" }}")
  .asString();
var data = JSON.stringify({
  "ticket_type": {
    "name": "VIP Pass",
    "company_ticket_type_ref": "12"
  }
});

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://sandbox.glownet.com/companies/api/v1/ticket_types");
xhr.setRequestHeader("authorization", "Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2");
xhr.setRequestHeader("content-type", "application/json");
xhr.setRequestHeader("cache-control", "no-cache");

xhr.send(data);
var settings = {
  "async": true,
  "crossDomain": true,
  "url": "https://sandbox.glownet.com/companies/api/v1/ticket_types",
  "method": "POST",
  "headers": {
    "authorization": "Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2",
    "content-type": "application/json",
    "cache-control": "no-cache"
  },
  "processData": false,
  "data": "{\"ticket_type\": { \"name\": \"VIP Pass\", \"company_ticket_type_ref\": \"12\" }}"
}

$.ajax(settings).done(function (response) {
  console.log(response);
});
<?php

$client = new http\Client;
$request = new http\Client\Request;

$body = new http\Message\Body;
$body->append('{"ticket_type": { "name": "VIP Pass", "company_ticket_type_ref": "12" }}');

$request->setRequestUrl('https://sandbox.glownet.com/companies/api/v1/ticket_types');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders(array(
  'cache-control' => 'no-cache',
  'content-type' => 'application/json',
  'authorization' => 'Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
import http.client

conn = http.client.HTTPSConnection("sandbox.glownet.com")

payload = "{\"ticket_type\": { \"name\": \"VIP Pass\", \"company_ticket_type_ref\": \"12\" }}"

headers = {
    'authorization': "Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2",
    'content-type': "application/json",
    'cache-control': "no-cache"
    }

conn.request("POST", "/companies/api/v1/ticket_types", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
require 'uri'
require 'net/http'

url = URI("https://sandbox.glownet.com/companies/api/v1/ticket_types")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Post.new(url)
request["authorization"] = 'Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2'
request["content-type"] = 'application/json'
request["cache-control"] = 'no-cache'
request.body = "{\"ticket_type\": { \"name\": \"VIP Pass\", \"company_ticket_type_ref\": \"12\" }}"

response = http.request(request)
puts response.read_body
Suggest Edits

/ticket_types/:id

Updates a ticket type

 

Basic Auth

 Authentication is required for this endpoint.
patchhttps://sandbox.glownet.com/companies/api/v1/ticket_types/id
curl --request PATCH \
  --url https://sandbox.glownet.com/companies/api/v1/ticket_types/id
var request = require("request");

var options = { method: 'PATCH',
  url: 'https://sandbox.glownet.com/companies/api/v1/ticket_types/id' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://sandbox.glownet.com/companies/api/v1/ticket_types/id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("PATCH", "https://sandbox.glownet.com/companies/api/v1/ticket_types/id");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/companies/api/v1/ticket_types/id"

response = requests.request("PATCH", url)

print(response.text)
A binary file was returned
{
  "id": 1,
  "name": "VIP Ticket",
  "ticket_type_ref": "015"
}
{
  "status": "unprocessable_entity",
  "errors": [
    "Company code has already been taken"
  ]
}
{
  "status": "not_found",
  "error": "Ticket type with id 4390 not found."
}
{
  "status": "bad_request",
  "error": "There was a problem in the JSON you submitted: quoted string not terminated at line 5, column 2 [parse.c:337]"
}

Body Params

ticket_type
object
 
ticket_type.name
string

Ticket type name

ticket_type.company_ticket_type_ref
string

Ticket type's reference specific of your company

 

Updates a ticket type with the specified id and the parameters given

Suggest Edits

/tickets

Returns a list of tickets associated to your company

 

Basic Auth

 Authentication is required for this endpoint.
gethttps://sandbox.glownet.com/companies/api/v1/tickets
curl --request GET \
  --url https://sandbox.glownet.com/companies/api/v1/tickets
var request = require("request");

var options = { method: 'GET',
  url: 'https://sandbox.glownet.com/companies/api/v1/tickets' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://sandbox.glownet.com/companies/api/v1/tickets")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://sandbox.glownet.com/companies/api/v1/tickets");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/companies/api/v1/tickets"

response = requests.request("GET", url)

print(response.text)
A binary file was returned
{
 "event": 1,
 "tickets": [
   {
    "id": 1,
    "ticket_reference": "00000001",
    "purchaser_first_name": "John",
    "purchaser_last_name": "Doe",
    "purchaser_email": "john@doe.com",
    "ticket_type_id": 5
  },
  {
    "id": 2,
    "ticket_reference": "00000002",
    "purchaser_first_name": "Axel",
    "purchaser_last_name": "Summers",
    "purchaser_email": "axel@summers.com",
    "ticket_type_id": 12
  },
  {
    "id": 3,
    "ticket_reference": "00000003",
    "purchaser_first_name": "David",
    "purchaser_last_name": "Sanders",
    "purchaser_email": "david@sanders.com",
    "ticket_type_id": 3
  }
 ]
}
 

Returns a list with all the tickets associated to your company.

Remember

This authentication token is just an example, change it for your own token.

GET /companies/api/v1/tickets HTTP/1.1
Host: sandbox.glownet.com
Authorization: Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2
Content-Type: application/json
Cache-Control: no-cache
curl -X GET -H "Authorization: Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2" -H "Content-Type: application/json" -H "Cache-Control: no-cache" "https://sandbox.glownet.com/companies/api/v1/tickets"
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://sandbox.glownet.com/companies/api/v1/tickets")
  .get()
  .addHeader("authorization", "Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2")
  .addHeader("content-type", "application/json")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();
HttpResponse<String> response = Unirest.get("https://sandbox.glownet.com/companies/api/v1/tickets")
  .header("authorization", "Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2")
  .header("content-type", "application/json")
  .header("cache-control", "no-cache")
  .asString();
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://sandbox.glownet.com/companies/api/v1/tickets");
xhr.setRequestHeader("authorization", "Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2");
xhr.setRequestHeader("content-type", "application/json");
xhr.setRequestHeader("cache-control", "no-cache");

xhr.send(data);
var settings = {
  "async": true,
  "crossDomain": true,
  "url": "https://sandbox.glownet.com/companies/api/v1/tickets",
  "method": "GET",
  "headers": {
    "authorization": "Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2",
    "content-type": "application/json",
    "cache-control": "no-cache"
  },
  "processData": false,
  "data": ""
}

$.ajax(settings).done(function (response) {
  console.log(response);
});
<?php

$client = new http\Client;
$request = new http\Client\Request;

$request->setRequestUrl('https://sandbox.glownet.com/companies/api/v1/tickets');
$request->setRequestMethod('GET');
$request->setHeaders(array(
  'cache-control' => 'no-cache',
  'content-type' => 'application/json',
  'authorization' => 'Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
import http.client

conn = http.client.HTTPSConnection("sandbox.glownet.com")

payload = ""

headers = {
    'authorization': "Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2",
    'content-type': "application/json",
    'cache-control': "no-cache"
    }

conn.request("GET", "/companies/api/v1/tickets", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
require 'uri'
require 'net/http'

url = URI("https://sandbox.glownet.com/companies/api/v1/tickets")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["authorization"] = 'Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2'
request["content-type"] = 'application/json'
request["cache-control"] = 'no-cache'

response = http.request(request)
puts response.read_body
Suggest Edits

/tickets/:id

Returns a ticket.

 

Basic Auth

 Authentication is required for this endpoint.
gethttps://sandbox.glownet.com/companies/api/v1/tickets/id
curl --request GET \
  --url https://sandbox.glownet.com/companies/api/v1/tickets/id
var request = require("request");

var options = { method: 'GET',
  url: 'https://sandbox.glownet.com/companies/api/v1/tickets/id' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://sandbox.glownet.com/companies/api/v1/tickets/id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://sandbox.glownet.com/companies/api/v1/tickets/id");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/companies/api/v1/tickets/id"

response = requests.request("GET", url)

print(response.text)
A binary file was returned
{
  "id": 1,
  "ticket_reference": "00000001",
  "purchaser_first_name": "John",
  "purchaser_last_name": "Doe",
  "purchaser_email": "john@doe.com",
  "ticket_type_id": 5
}
{
	"message": "Couldn't find a Ticket with 'id'=1"
}

Path Params

id
int32
required

The ticket's id

 

Returns a ticket with the id provided.

Suggest Edits

/tickets

Creates a new ticket

 

Basic Auth

 Authentication is required for this endpoint.
posthttps://sandbox.glownet.com/companies/api/v1/tickets
curl --request POST \
  --url https://sandbox.glownet.com/companies/api/v1/tickets
var request = require("request");

var options = { method: 'POST',
  url: 'https://sandbox.glownet.com/companies/api/v1/tickets' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://sandbox.glownet.com/companies/api/v1/tickets")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://sandbox.glownet.com/companies/api/v1/tickets");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/companies/api/v1/tickets"

response = requests.request("POST", url)

print(response.text)
A binary file was returned
{
  "id": 5,
  "ticket_reference": "00000005",
  "ticket_description": "Created by Glownet",
  "purchaser_first_name": "John",
  "purchaser_last_name": "Doe",
  "purchaser_email": "john@doe.com",
  "ticket_type_id": 5
}
{
  "status": "bad_request",
  "error": "There was a problem in the JSON you submitted: expected comma, not a string at line 5, column 30 [parse.c:381]"
}
{
  "status": "unprocessable_entity",
  "error": "Ticket type not found."
}
{
  "status": "unprocessable_entity",
  "error": "The ticket type doesn't belongs to your company"
}

Body Params

ticket
object
 
ticket.ticket_reference
string
required

The ticket's barcode

ticket.description
string

Extra data related to the ticket

ticket.ticket_type_id
int32
required

Identifier of the ticket type assigned to this ticket

ticket.purchaser_attributes
object
 
ticket.purchaser_attributes.first_name
string

Purchaser's name

ticket.purchaser_attributes.last_name
string

Purchaser's surname

ticket.purchaser_attributes.email
string

Purchaser's email

 

Code examples

Remember

This authentication token is just an example, change it for your own token.

require 'uri'
require 'net/http'

url = URI("https://sandbox.glownet.com/companies/api/v1/tickets")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request["authorization"] = 'Basic NDAxNzI5MzhFQ0RFOjY5YzFkNGNmMDA5ODQwMTc3ZDBjYjA2MDAwOTI4Zjk5'
request["cache-control"] = 'no-cache'
request.body = "{ \"ticket\": { \"ticket_reference\": \"00A34DF003SD\",\"ticket_description\": \"Created by Glownet\", \"ticket_type_id\": 1, \"purchaser_attributes\": { \"first_name\": \"John\", \"last_name\": \"Doe\", \"email\": \"john@doe.com\" } } }"

response = http.request(request)
puts response.read_body
curl -X POST -H "Content-Type: application/json" -H "Authorization: Basic NDAxNzI5MzhFQ0RFOjY5YzFkNGNmMDA5ODQwMTc3ZDBjYjA2MDAwOTI4Zjk5" -H "Cache-Control: no-cache" -d '{ "ticket": { "ticket_reference": "00A34DF003SD", "ticket_type_id": 1, "purchaser_attributes": { "first_name": "John", "last_name": "Doe", "email": "john@doe.com" } } }' "https://sandbox.glownet.com/companies/api/v1/tickets"
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{ \"ticket\": { \"ticket_reference\": \"00A34DF003SD\", \"ticket_type_id\": 1, \"purchaser_attributes\": { \"first_name\": \"John\", \"last_name\": \"Doe\", \"email\": \"john@doe.com\" } } }");
Request request = new Request.Builder()
  .url("https://sandbox.glownet.com/companies/api/v1/tickets")
  .post(body)
  .addHeader("content-type", "application/json")
  .addHeader("authorization", "Basic NDAxNzI5MzhFQ0RFOjY5YzFkNGNmMDA5ODQwMTc3ZDBjYjA2MDAwOTI4Zjk5")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();
HttpResponse<String> response = Unirest.post("https://sandbox.glownet.com/companies/api/v1/tickets")
  .header("content-type", "application/json")
  .header("authorization", "Basic NDAxNzI5MzhFQ0RFOjY5YzFkNGNmMDA5ODQwMTc3ZDBjYjA2MDAwOTI4Zjk5")
  .header("cache-control", "no-cache")
  .body("{ \"ticket\": { \"ticket_reference\": \"00A34DF003SD\", \"ticket_type_id\": 1, \"purchaser_attributes\": { \"first_name\": \"John\", \"last_name\": \"Doe\", \"email\": \"john@doe.com\" } } }")
  .asString();
var data = JSON.stringify({
  "ticket": {
    "ticket_reference": "00A34DF003SD",
    "ticket_type_id": 1,
    "purchaser_attributes": {
      "first_name": "John",
      "last_name": "Doe",
      "email": "john@doe.com"
    }
  }
});

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://sandbox.glownet.com/companies/api/v1/tickets");
xhr.setRequestHeader("content-type", "application/json");
xhr.setRequestHeader("authorization", "Basic NDAxNzI5MzhFQ0RFOjY5YzFkNGNmMDA5ODQwMTc3ZDBjYjA2MDAwOTI4Zjk5");
xhr.setRequestHeader("cache-control", "no-cache");

xhr.send(data);
var settings = {
  "async": true,
  "crossDomain": true,
  "url": "https://sandbox.glownet.com/companies/api/v1/tickets",
  "method": "POST",
  "headers": {
    "content-type": "application/json",
    "authorization": "Basic NDAxNzI5MzhFQ0RFOjY5YzFkNGNmMDA5ODQwMTc3ZDBjYjA2MDAwOTI4Zjk5",
    "cache-control": "no-cache"
  },
  "processData": false,
  "data": "{ \"ticket\": { \"ticket_reference\": \"00A34DF003SD\", \"ticket_type_id\": 1, \"purchaser_attributes\": { \"first_name\": \"John\", \"last_name\": \"Doe\", \"email\": \"john@doe.com\" } } }"
}

$.ajax(settings).done(function (response) {
  console.log(response);
});
<?php

$client = new http\Client;
$request = new http\Client\Request;

$body = new http\Message\Body;
$body->append('{ "ticket": { "ticket_reference": "00A34DF003SD", "ticket_type_id": 1, "purchaser_attributes": { "first_name": "John", "last_name": "Doe", "email": "john@doe.com" } } }');

$request->setRequestUrl('https://sandbox.glownet.com/companies/api/v1/tickets');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders(array(
  'cache-control' => 'no-cache',
  'authorization' => 'Basic NDAxNzI5MzhFQ0RFOjY5YzFkNGNmMDA5ODQwMTc3ZDBjYjA2MDAwOTI4Zjk5',
  'content-type' => 'application/json'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
import http.client

conn = http.client.HTTPSConnection("sandbox.glownet.com")

payload = "{ \"ticket\": { \"ticket_reference\": \"00A34DF003SD\", \"ticket_type_id\": 1, \"purchaser_attributes\": { \"first_name\": \"John\", \"last_name\": \"Doe\", \"email\": \"john@doe.com\" } } }"

headers = {
    'content-type': "application/json",
    'authorization': "Basic NDAxNzI5MzhFQ0RFOjY5YzFkNGNmMDA5ODQwMTc3ZDBjYjA2MDAwOTI4Zjk5",
    'cache-control': "no-cache"
    }

conn.request("POST", "/companies/api/v1/tickets", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
var http = require("https");

var options = {
  "method": "POST",
  "hostname": "sandbox.glownet.com",
  "port": null,
  "path": "/companies/api/v1/tickets",
  "headers": {
    "content-type": "application/json",
    "authorization": "Basic NDAxNzI5MzhFQ0RFOjY5YzFkNGNmMDA5ODQwMTc3ZDBjYjA2MDAwOTI4Zjk5",
    "cache-control": "no-cache"
  }
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});
POST /companies/api/v1/tickets HTTP/1.1
Host: sandbox.glownet.com
Content-Type: application/json
Authorization: Basic NDAxNzI5MzhFQ0RFOjY5YzFkNGNmMDA5ODQwMTc3ZDBjYjA2MDAwOTI4Zjk5
Cache-Control: no-cache

{ "ticket": { "ticket_reference": "00A34DF003SD", "ticket_description": "Created by Glownet", "ticket_type_id": 1, "purchaser_attributes": { "first_name": "John", "last_name": "Doe", "email": "john@doe.com" } } }
Suggest Edits

/tickets/bulk_upload

Same as POST /tickets but allows to submit several tickets in request body

 

Basic Auth

 Authentication is required for this endpoint.
posthttps://sandbox.glownet.com/companies/api/v1/tickets/bulk_upload
{ "tickets": [
  {
    "ticket_reference": "41A4ECB455556827",
    "ticket_type_id": 1,
    "purchaser_attributes": { 
      "first_name": "John",
      "last_name": "Doe",
      "email": "john@glownet.com"
    }
  },
  {
    "ticket_reference": "69860326BE09D7A5",
    "ticket_type_id": 1,
    "purchaser_attributes": {
      "first_name": "Julia",
      "last_name": "Smith",
      "email": "jsmith@glownet.com"
    }
  }
]}
A binary file was returned
{
  "status": "bad_request",
  "error": "There was a problem in the JSON you submitted: expected comma, not a string at line 5, column 30 [parse.c:381]"
}
{ errors: "Tickets key is missing" }

Body Params

ticket_reference
string
required

The ticket's barcode

ticket_type_id
int32
required

Identifier of the ticket type assigned to this ticket

purchaser_attributes
object
 
purchaser_attributes.first_name
string

Purchaser's name

purchaser_attributes.last_name
string

Purchaser's surname

purchaser_attributes.email
string

Purchaser's email

 

Code examples

Remember

This authentication token is just an example, change it for your own token.

POST /companies/api/v1/tickets/blacklist HTTP/1.1
Host: sandbox.glownet.com
Authorization: Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2
Content-Type: application/json
Cache-Control: no-cache

{ "tickets": [ { "ticket_reference": "41A4ECB455556827", "ticket_type_id": 1, "purchaser_attributes": { "first_name": "John", "last_name": "Doe", "email": "john@glownet.com" } }, { "ticket_reference": "69860326BE09D7A5", "ticket_type_id": 1, "purchaser_attributes": { "first_name": "Julia", "last_name": "Smith", "email": "jsmith@glownet.com" } } ] }
curl -X POST -H "Authorization: Basic YWRtaW5AdGVzdC5jb206OTc3OTViOTcwNTEyZGJlZWYxODRjZGQzZGMyMmRmOWE=" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d '{ "tickets": [ { "ticket_reference": "41A4ECB455556827", "ticket_type_id": 1, "purchaser_attributes": { "first_name": "John", "last_name": "Doe", "email": "john@glownet.com" } }, { "ticket_reference": "69860326BE09D7A5", "ticket_type_id": 1, "purchaser_attributes": { "first_name": "Julia", "last_name": "Smith", "email": "jsmith@glownet.com" } } ] }' "https://sandbox.glownet.com/companies/api/v1/tickets/bulk_upload"
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{ \"tickets\": [ { \"ticket_reference\": \"41A4ECB455556827\", \"ticket_type_id\": 1, \"purchaser_attributes\": { \"first_name\": \"John\", \"last_name\": \"Doe\", \"email\": \"john@glownet.com\" } }, { \"ticket_reference\": \"69860326BE09D7A5\", \"ticket_type_id\": 1, \"purchaser_attributes\": { \"first_name\": \"Julia\", \"last_name\": \"Smith\", \"email\": \"jsmith@glownet.com\" } } ] }");
Request request = new Request.Builder()
  .url("https://sandbox.glownet.com/companies/api/v1/tickets/bulk_upload")
  .post(body)
  .addHeader("authorization", "Basic YWRtaW5AdGVzdC5jb206OTc3OTViOTcwNTEyZGJlZWYxODRjZGQzZGMyMmRmOWE=")
  .addHeader("content-type", "application/json")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();
HttpResponse<String> response = Unirest.post("https://sandbox.glownet.com/companies/api/v1/tickets/bulk_upload")
  .header("authorization", "Basic YWRtaW5AdGVzdC5jb206OTc3OTViOTcwNTEyZGJlZWYxODRjZGQzZGMyMmRmOWE=")
  .header("content-type", "application/json")
  .header("cache-control", "no-cache")
  .body("{ \"tickets\": [ { \"ticket_reference\": \"41A4ECB455556827\", \"ticket_type_id\": 1, \"purchaser_attributes\": { \"first_name\": \"John\", \"last_name\": \"Doe\", \"email\": \"john@glownet.com\" } }, { \"ticket_reference\": \"69860326BE09D7A5\", \"ticket_type_id\": 1, \"purchaser_attributes\": { \"first_name\": \"Julia\", \"last_name\": \"Smith\", \"email\": \"jsmith@glownet.com\" } } ] }")
  .asString();
var data = JSON.stringify({
  "tickets": [
    {
      "ticket_reference": "41A4ECB455556827",
      "ticket_type_id": 1,
      "purchaser_attributes": {
        "first_name": "John",
        "last_name": "Doe",
        "email": "john@glownet.com"
      }
    },
    {
      "ticket_reference": "69860326BE09D7A5",
      "ticket_type_id": 1,
      "purchaser_attributes": {
        "first_name": "Julia",
        "last_name": "Smith",
        "email": "jsmith@glownet.com"
      }
    }
  ]
});

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://sandbox.glownet.com/companies/api/v1/tickets/bulk_upload");
xhr.setRequestHeader("authorization", "Basic YWRtaW5AdGVzdC5jb206OTc3OTViOTcwNTEyZGJlZWYxODRjZGQzZGMyMmRmOWE=");
xhr.setRequestHeader("content-type", "application/json");
xhr.setRequestHeader("cache-control", "no-cache");

xhr.send(data);
var settings = {
  "async": true,
  "crossDomain": true,
  "url": "https://sandbox.glownet.com/companies/api/v1/tickets/bulk_upload",
  "method": "POST",
  "headers": {
    "authorization": "Basic YWRtaW5AdGVzdC5jb206OTc3OTViOTcwNTEyZGJlZWYxODRjZGQzZGMyMmRmOWE=",
    "content-type": "application/json",
    "cache-control": "no-cache"
  },
  "processData": false,
  "data": "{ \"tickets\": [ { \"ticket_reference\": \"41A4ECB455556827\", \"ticket_type_id\": 1, \"purchaser_attributes\": { \"first_name\": \"John\", \"last_name\": \"Doe\", \"email\": \"john@glownet.com\" } }, { \"ticket_reference\": \"69860326BE09D7A5\", \"ticket_type_id\": 1, \"purchaser_attributes\": { \"first_name\": \"Julia\", \"last_name\": \"Smith\", \"email\": \"jsmith@glownet.com\" } } ] }"
}

$.ajax(settings).done(function (response) {
  console.log(response);
});
<?php

$client = new http\Client;
$request = new http\Client\Request;

$body = new http\Message\Body;
$body->append('{ "tickets": [ { "ticket_reference": "41A4ECB455556827", "ticket_type_id": 1, "purchaser_attributes": { "first_name": "John", "last_name": "Doe", "email": "john@glownet.com" } }, { "ticket_reference": "69860326BE09D7A5", "ticket_type_id": 1, "purchaser_attributes": { "first_name": "Julia", "last_name": "Smith", "email": "jsmith@glownet.com" } } ] }');

$request->setRequestUrl('https://sandbox.glownet.com/companies/api/v1/tickets/bulk_upload');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders(array(
  'cache-control' => 'no-cache',
  'content-type' => 'application/json',
  'authorization' => 'Basic YWRtaW5AdGVzdC5jb206OTc3OTViOTcwNTEyZGJlZWYxODRjZGQzZGMyMmRmOWE='
));

$client->enqueue($request)->send();
$response = $client->getResponse();
import http.client

conn = http.client.HTTPSConnection("sandbox.glownet.com")

payload = "{ \"tickets\": [ { \"ticket_reference\": \"41A4ECB455556827\", \"ticket_type_id\": 1, \"purchaser_attributes\": { \"first_name\": \"John\", \"last_name\": \"Doe\", \"email\": \"john@glownet.com\" } }, { \"ticket_reference\": \"69860326BE09D7A5\", \"ticket_type_id\": 1, \"purchaser_attributes\": { \"first_name\": \"Julia\", \"last_name\": \"Smith\", \"email\": \"jsmith@glownet.com\" } } ] }"

headers = {
    'authorization': "Basic YWRtaW5AdGVzdC5jb206OTc3OTViOTcwNTEyZGJlZWYxODRjZGQzZGMyMmRmOWE=",
    'content-type': "application/json",
    'cache-control': "no-cache"
    }

conn.request("POST", "/companies/api/v1/tickets/bulk_upload", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
require 'uri'
require 'net/http'

url = URI("https://sandbox.glownet.com/companies/api/v1/tickets/bulk_upload")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Post.new(url)
request["authorization"] = 'Basic YWRtaW5AdGVzdC5jb206OTc3OTViOTcwNTEyZGJlZWYxODRjZGQzZGMyMmRmOWE='
request["content-type"] = 'application/json'
request["cache-control"] = 'no-cache'
request.body = "{ \"tickets\": [ { \"ticket_reference\": \"41A4ECB455556827\", \"ticket_type_id\": 1, \"purchaser_attributes\": { \"first_name\": \"John\", \"last_name\": \"Doe\", \"email\": \"john@glownet.com\" } }, { \"ticket_reference\": \"69860326BE09D7A5\", \"ticket_type_id\": 1, \"purchaser_attributes\": { \"first_name\": \"Julia\", \"last_name\": \"Smith\", \"email\": \"jsmith@glownet.com\" } } ] }"

response = http.request(request)
puts response.read_body
Suggest Edits

/tickets/:id

Updates a ticket

 

Basic Auth

 Authentication is required for this endpoint.
patchhttps://sandbox.glownet.com/companies/api/v1/tickets/id
curl --request PATCH \
  --url https://sandbox.glownet.com/companies/api/v1/tickets/id
var request = require("request");

var options = { method: 'PATCH',
  url: 'https://sandbox.glownet.com/companies/api/v1/tickets/id' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://sandbox.glownet.com/companies/api/v1/tickets/id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("PATCH", "https://sandbox.glownet.com/companies/api/v1/tickets/id");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/companies/api/v1/tickets/id"

response = requests.request("PATCH", url)

print(response.text)
A binary file was returned
{
  "id": 5,
  "ticket_reference": "00000005",
  "purchaser_first_name": "John",
  "purchaser_last_name": "Doe",
  "purchaser_email": "john@doe.com",
  "ticket_type_id": 5
}
{
	"message": "Validation errors",
  "errors": {
    "ticket_reference": "Can't be blank"
  }
}
{
  "status": "not_found",
  "error": "Ticket with id 58563 not found."
}
{
  "status": "unprocessable_entity",
  "error": "The ticket type doesn't belongs to your company"
}

Body Params

ticket
object
 
ticket.ticket_reference
string

The ticket's barcode

ticket.ticket_type_id
int32

Identifier of the ticket type assigned to this ticket

ticket.purchaser_attributes
object
 
ticket.purchaser_attributes.first_name
string

Purchaser's name

ticket.purchaser_attributes.last_name
string

Purchaser's surname

ticket.purchaser_attributes.email
string

Purchaser's email

 

Updates a ticket with the specified id and the parameters given.

Suggest Edits

/tickets/blacklist

Returns a list with the blacklisted tickets

 

Basic Auth

 Authentication is required for this endpoint.
gethttps://sandbox.glownet.com/companies/api/v1/tickets/blacklist
curl --request GET \
  --url https://sandbox.glownet.com/companies/api/v1/tickets/blacklist
var request = require("request");

var options = { method: 'GET',
  url: 'https://sandbox.glownet.com/companies/api/v1/tickets/blacklist' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://sandbox.glownet.com/companies/api/v1/tickets/blacklist")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://sandbox.glownet.com/companies/api/v1/tickets/blacklist");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/companies/api/v1/tickets/blacklist"

response = requests.request("GET", url)

print(response.text)
A binary file was returned
{
 "event": 1,
 "blacklisted_tickets": [
   {
    "id": 1,
    "ticket_reference": "00000001"
  },
  {
    "id": 2,
    "ticket_reference": "00000002"
  },
  {
    "id": 3,
    "ticket_reference": "00000003"
  }
 ]
}
 

Code samples

Remember

This authentication token is just an example, change it for your own token.

GET /companies/api/v1/tickets/blacklist HTTP/1.1
Host: sandbox.glownet.com
Authorization: Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2
Content-Type: application/json
Cache-Control: no-cache
curl -X GET -H "Authorization: Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2" -H "Content-Type: application/json" -H "Cache-Control: no-cache" "https://sandbox.glownet.com/companies/api/v1/tickets/blacklist"
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://sandbox.glownet.com/companies/api/v1/tickets/blacklist")
  .get()
  .addHeader("authorization", "Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2")
  .addHeader("content-type", "application/json")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();
HttpResponse<String> response = Unirest.get("https://sandbox.glownet.com/companies/api/v1/tickets/blacklist")
  .header("authorization", "Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2")
  .header("content-type", "application/json")
  .header("cache-control", "no-cache")
  .asString();
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://sandbox.glownet.com/companies/api/v1/tickets/blacklist");
xhr.setRequestHeader("authorization", "Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2");
xhr.setRequestHeader("content-type", "application/json");
xhr.setRequestHeader("cache-control", "no-cache");

xhr.send(data);
var settings = {
  "async": true,
  "crossDomain": true,
  "url": "https://sandbox.glownet.com/companies/api/v1/tickets/blacklist",
  "method": "GET",
  "headers": {
    "authorization": "Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2",
    "content-type": "application/json",
    "cache-control": "no-cache"
  },
  "processData": false,
  "data": ""
}

$.ajax(settings).done(function (response) {
  console.log(response);
});
<?php

$client = new http\Client;
$request = new http\Client\Request;

$request->setRequestUrl('https://sandbox.glownet.com/companies/api/v1/tickets/blacklist');
$request->setRequestMethod('GET');
$request->setHeaders(array(
  'cache-control' => 'no-cache',
  'content-type' => 'application/json',
  'authorization' => 'Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
import http.client

conn = http.client.HTTPSConnection("sandbox.glownet.com")

payload = ""

headers = {
    'authorization': "Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2",
    'content-type': "application/json",
    'cache-control': "no-cache"
    }

conn.request("GET", "/companies/api/v1/tickets/blacklist", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
require 'uri'
require 'net/http'

url = URI("https://sandbox.glownet.com/companies/api/v1/tickets/blacklist")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["authorization"] = 'Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2'
request["content-type"] = 'application/json'
request["cache-control"] = 'no-cache'

response = http.request(request)
puts response.read_body
Suggest Edits

/tickets/blacklist

Adds a ticket to the blacklist

 

Basic Auth

 Authentication is required for this endpoint.
posthttps://sandbox.glownet.com/companies/api/v1/tickets/blacklist
curl --request POST \
  --url https://sandbox.glownet.com/companies/api/v1/tickets/blacklist
var request = require("request");

var options = { method: 'POST',
  url: 'https://sandbox.glownet.com/companies/api/v1/tickets/blacklist' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://sandbox.glownet.com/companies/api/v1/tickets/blacklist")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://sandbox.glownet.com/companies/api/v1/tickets/blacklist");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/companies/api/v1/tickets/blacklist"

response = requests.request("POST", url)

print(response.text)
A binary file was returned
{
  "id": 1,
  "ticket_reference": "TC8B106BA990BDC56"
}
This error happens when the json is invalid.
{ error: "Ticket not found" }
// The ticket you want to create doesn't exist.
{ error: "Ticket Type not found" }
// The ticket type of the ticket you want to create/ban doesn't exist.

Body Params

tickets_blacklist
object
 
tickets_blacklist.ticket_reference
string
required

The ticket reference aka. barcode from the guest you want to forbid access to.

 

Code examples

Remember

This authentication token is just an example, change it for your own token.

POST /companies/api/v1/tickets/blacklist HTTP/1.1
Host: sandbox.glownet.com
Authorization: Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2
Content-Type: application/json
Cache-Control: no-cache

{"tickets_blacklist": {"ticket_reference": "TC8B106BA990BDC56"}}
curl -X POST -H "Authorization: Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d '{"tickets_blacklist": {"ticket_reference": "TC8B106BA990BDC56"}}' "https://sandbox.glownet.com/companies/api/v1/tickets/blacklist"
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"tickets_blacklist\": {\"ticket_reference\": \"TC8B106BA990BDC56\"}}");
Request request = new Request.Builder()
  .url("https://sandbox.glownet.com/companies/api/v1/tickets/blacklist")
  .post(body)
  .addHeader("authorization", "Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2")
  .addHeader("content-type", "application/json")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();
HttpResponse<String> response = Unirest.post("https://sandbox.glownet.com/companies/api/v1/tickets/blacklist")
  .header("authorization", "Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2")
  .header("content-type", "application/json")
  .header("cache-control", "no-cache")
  .body("{\"tickets_blacklist\": {\"ticket_reference\": \"TC8B106BA990BDC56\"}}")
  .asString();
var data = JSON.stringify({
  "tickets_blacklist": {
    "ticket_reference": "TC8B106BA990BDC56"
  }
});

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://sandbox.glownet.com/companies/api/v1/tickets/blacklist");
xhr.setRequestHeader("authorization", "Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2");
xhr.setRequestHeader("content-type", "application/json");
xhr.setRequestHeader("cache-control", "no-cache");

xhr.send(data);
var settings = {
  "async": true,
  "crossDomain": true,
  "url": "https://sandbox.glownet.com/companies/api/v1/tickets/blacklist",
  "method": "POST",
  "headers": {
    "authorization": "Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2",
    "content-type": "application/json",
    "cache-control": "no-cache"
  },
  "processData": false,
  "data": "{\"tickets_blacklist\": {\"ticket_reference\": \"TC8B106BA990BDC56\"}}"
}

$.ajax(settings).done(function (response) {
  console.log(response);
});
<?php

$client = new http\Client;
$request = new http\Client\Request;

$body = new http\Message\Body;
$body->append('{"tickets_blacklist": {"ticket_reference": "TC8B106BA990BDC56"}}');

$request->setRequestUrl('https://sandbox.glownet.com/companies/api/v1/tickets/blacklist');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders(array(
  'cache-control' => 'no-cache',
  'content-type' => 'application/json',
  'authorization' => 'Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
import http.client

conn = http.client.HTTPSConnection("sandbox.glownet.com")

payload = "{\"tickets_blacklist\": {\"ticket_reference\": \"TC8B106BA990BDC56\"}}"

headers = {
    'authorization': "Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2",
    'content-type': "application/json",
    'cache-control': "no-cache"
    }

conn.request("POST", "/companies/api/v1/tickets/blacklist", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
require 'uri'
require 'net/http'

url = URI("https://sandbox.glownet.com/companies/api/v1/tickets/blacklist")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Post.new(url)
request["authorization"] = 'Basic NzI0QkY3QTM4RDM3OjFjY2FlODA5MDI1ZTUzN2ZlZmRjMWQ1Yzg0NGI1ODA2'
request["content-type"] = 'application/json'
request["cache-control"] = 'no-cache'
request.body = "{\"tickets_blacklist\": {\"ticket_reference\": \"TC8B106BA990BDC56\"}}"

response = http.request(request)
puts response.read_body
Suggest Edits

/tickets/blacklist/:ticket_reference

Removes a ticket from the blacklist

 

Basic Auth

 Authentication is required for this endpoint.
deletehttps://sandbox.glownet.com/companies/api/v1/tickets/blacklist/ticket_reference
curl --request DELETE \
  --url https://sandbox.glownet.com/companies/api/v1/tickets/blacklist/ticket_reference
var request = require("request");

var options = { method: 'DELETE',
  url: 'https://sandbox.glownet.com/companies/api/v1/tickets/blacklist/ticket_reference' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://sandbox.glownet.com/companies/api/v1/tickets/blacklist/ticket_reference")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("DELETE", "https://sandbox.glownet.com/companies/api/v1/tickets/blacklist/ticket_reference");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/companies/api/v1/tickets/blacklist/ticket_reference"

response = requests.request("DELETE", url)

print(response.text)
A binary file was returned
Try the API to see results

Path Params

ticket_reference
string
required

The ticket reference aka. barcode from the guest you give access back.

 

Removes a ticket from the blacklist.

Suggest Edits

/gtags/blacklist

Returns the gtags blacklist

 

Basic Auth

 Authentication is required for this endpoint.
gethttps://sandbox.glownet.com/companies/api/v1/gtags/blacklist
curl --request GET \
  --url https://sandbox.glownet.com/companies/api/v1/gtags/blacklist
var request = require("request");

var options = { method: 'GET',
  url: 'https://sandbox.glownet.com/companies/api/v1/gtags/blacklist' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://sandbox.glownet.com/companies/api/v1/gtags/blacklist")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://sandbox.glownet.com/companies/api/v1/gtags/blacklist");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/companies/api/v1/gtags/blacklist"

response = requests.request("GET", url)

print(response.text)
A binary file was returned
{
	"event": 1,
	"blacklisted_gtags": [
		{
			"id": 1,
			"tag_uid": "BE5723D8"
    },
    {
			"id": 2,
			"tag_uid": "BE5723D8"
    },
    {
			"id": 3,
			"tag_uid": "BE5723D8"
    }
 ]
}
 

Returns the gtag blacklist.

Suggest Edits

/gtags/blacklist

Adds a gtag to the blacklist

 

Basic Auth

 Authentication is required for this endpoint.
posthttps://sandbox.glownet.com/companies/api/v1/gtags/blacklist
curl --request POST \
  --url https://sandbox.glownet.com/companies/api/v1/gtags/blacklist
var request = require("request");

var options = { method: 'POST',
  url: 'https://sandbox.glownet.com/companies/api/v1/gtags/blacklist' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://sandbox.glownet.com/companies/api/v1/gtags/blacklist")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "https://sandbox.glownet.com/companies/api/v1/gtags/blacklist");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/companies/api/v1/gtags/blacklist"

response = requests.request("POST", url)

print(response.text)
A binary file was returned
{
  "id": 1,
  "tag_uid": "00000001"
}

Body Params

gtags_blacklist
object
 
gtags_blacklist.tag_uid
string
required

The ticket reference aka. barcode from the guest you want to forbid access to.

 

Adds a gtag to the blacklist.

Suggest Edits

/gtags/blacklist

Removes a gtag from the blacklist

 

Basic Auth

 Authentication is required for this endpoint.
deletehttps://sandbox.glownet.com/companies/api/v1/gtags/blacklist
curl --request DELETE \
  --url https://sandbox.glownet.com/companies/api/v1/gtags/blacklist
var request = require("request");

var options = { method: 'DELETE',
  url: 'https://sandbox.glownet.com/companies/api/v1/gtags/blacklist' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://sandbox.glownet.com/companies/api/v1/gtags/blacklist")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("DELETE", "https://sandbox.glownet.com/companies/api/v1/gtags/blacklist");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/companies/api/v1/gtags/blacklist"

response = requests.request("DELETE", url)

print(response.text)
A binary file was returned
Try the API to see results

Body Params

tag_uid
string

The ticket reference aka. barcode from the guest you want to forbid access to.

 

Removes a gtag from the blacklist.

Suggest Edits

/balances/:tag_uid

 

Basic Auth

 Authentication is required for this endpoint.
gethttps://sandbox.glownet.com/companies/api/v1/balances/tag_uid
curl --request GET \
  --url https://sandbox.glownet.com/companies/api/v1/balances/tag_uid
var request = require("request");

var options = { method: 'GET',
  url: 'https://sandbox.glownet.com/companies/api/v1/balances/tag_uid' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("https://sandbox.glownet.com/companies/api/v1/balances/tag_uid")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://sandbox.glownet.com/companies/api/v1/balances/tag_uid");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/companies/api/v1/balances/tag_uid"

response = requests.request("GET", url)

print(response.text)
A binary file was returned
{
  "tag_uid": "04D10A1AE74084",
  "balance": "0.0",
  "currency": "€"
}
{
  "status": "not_found",
  "error": "Gtag with id 04D10A1AE74084 not found."
}

Path Params

tag_uid
string
required
 

Remember

The authentication tokens are just an example, you have to use your own.

GET /companies/api/v1/balances/04D10A1AE74084 HTTP/1.1
Host: sandbox.glownet.com
Authorization: Basic QzMwOTY4ODM4Mzk3OmVjZDEwN2FjOTI1Mzc4OWExNGM5NGUzYWQ1Mjk1NTQx
Cache-Control: no-cache
curl -X GET -H "Authorization: Basic QzMwOTY4ODM4Mzk3OmVjZDEwN2FjOTI1Mzc4OWExNGM5NGUzYWQ1Mjk1NTQx" -H "Cache-Control: no-cache" "https://sandbox.glownet.com/companies/api/v1/balances/04D10A1AE74084"
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://sandbox.glownet.com/companies/api/v1/balances/04D10A1AE74084")
  .get()
  .addHeader("authorization", "Basic QzMwOTY4ODM4Mzk3OmVjZDEwN2FjOTI1Mzc4OWExNGM5NGUzYWQ1Mjk1NTQx")
  .addHeader("cache-control", "no-cache")
  .build();

Response response = client.newCall(request).execute();
HttpResponse<String> response = Unirest.get("https://sandbox.glownet.com/companies/api/v1/balances/04D10A1AE74084")
  .header("authorization", "Basic QzMwOTY4ODM4Mzk3OmVjZDEwN2FjOTI1Mzc4OWExNGM5NGUzYWQ1Mjk1NTQx")
  .header("cache-control", "no-cache")
  .asString();
var data = null;

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://sandbox.glownet.com/companies/api/v1/balances/04D10A1AE74084");
xhr.setRequestHeader("authorization", "Basic QzMwOTY4ODM4Mzk3OmVjZDEwN2FjOTI1Mzc4OWExNGM5NGUzYWQ1Mjk1NTQx");
xhr.setRequestHeader("cache-control", "no-cache");

xhr.send(data);
var settings = {
  "async": true,
  "crossDomain": true,
  "url": "https://sandbox.glownet.com/companies/api/v1/balances/04D10A1AE74084",
  "method": "GET",
  "headers": {
    "authorization": "Basic QzMwOTY4ODM4Mzk3OmVjZDEwN2FjOTI1Mzc4OWExNGM5NGUzYWQ1Mjk1NTQx",
    "cache-control": "no-cache"
  }
}

$.ajax(settings).done(function (response) {
  console.log(response);
});
<?php

$client = new http\Client;
$request = new http\Client\Request;

$request->setRequestUrl('https://sandbox.glownet.com/companies/api/v1/balances/04D10A1AE74084');
$request->setRequestMethod('GET');
$request->setHeaders(array(
  'cache-control' => 'no-cache',
  'authorization' => 'Basic QzMwOTY4ODM4Mzk3OmVjZDEwN2FjOTI1Mzc4OWExNGM5NGUzYWQ1Mjk1NTQx'
));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
import http.client

conn = http.client.HTTPSConnection("sandbox.glownet.com")

headers = {
    'authorization': "Basic QzMwOTY4ODM4Mzk3OmVjZDEwN2FjOTI1Mzc4OWExNGM5NGUzYWQ1Mjk1NTQx",
    'cache-control': "no-cache"
    }

conn.request("GET", "/companies/api/v1/balances/04D10A1AE74084", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
require 'uri'
require 'net/http'

url = URI("https://sandbox.glownet.com/companies/api/v1/balances/04D10A1AE74084")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["authorization"] = 'Basic QzMwOTY4ODM4Mzk3OmVjZDEwN2FjOTI1Mzc4OWExNGM5NGUzYWQ1Mjk1NTQx'
request["cache-control"] = 'no-cache'

response = http.request(request)
puts response.read_body