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    API Documentation
Suggest Edits

/gtags

Get all gtags of an event

 

Basic Auth

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

var options = { method: 'GET',
  url: 'https://sandbox.glownet.com/api/v2/events/event_id/gtags' };

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/api/v2/events/event_id/gtags")

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/api/v2/events/event_id/gtags");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/events/event_id/gtags"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

[
    {
        "id": 1111111,
        "tag_uid": "04BA444A114D80",
        "banned": false,
        "redeemed": false,
        "active": true,
        "credits": "9.0",
        "refundable_credits": "9.0",
        "final_balance": "9.0",
        "final_refundable_balance": "9.0",
        "customer_id": null,
        "ticket_type_id": null
    },
    {
        "id": 2222222,
        "tag_uid": "041CC54A114D80",
        "banned": false,
        "redeemed": false,
        "active": true,
        "credits": "0.0",
        "refundable_credits": "0.0",
        "final_balance": "0.0",
        "final_refundable_balance": "0.0",
        "customer_id": null,
        "ticket_type_id": null
    },
    {
        "id": 3333333,
        "tag_uid": "0420B622EB4B80",
        "banned": false,
        "redeemed": false,
        "active": true,
        "credits": "37.0",
        "refundable_credits": "0.0",
        "final_balance": "37.0",
        "final_refundable_balance": "0.0",
        "customer_id": null,
        "ticket_type_id": null
    }
]

Path Params

event_id
int32
required

Event id

 
Suggest Edits

/gtags

Create a gtag of an event

 

Basic Auth

 Authentication is required for this endpoint.
posthttps://sandbox.glownet.com/api/v2/events/event_id/gtags
{
	"gtag": {
  	"tag_uid": "12345671234567"
  }
}
A binary file was returned

You couldn't be authenticated

{
    "id": 1168716,
    "tag_uid": "12345671234567",
    "banned": false,
    "format": "wristband",
    "active": true,
    "credits": "0.0",
    "refundable_credits": "0.0",
    "final_balance": "0.0",
    "final_refundable_balance": "0.0",
    "redeemed": false,
    "ticket_type": null,
    "customer": null
}

Path Params

event_id
int32
required

Event id

Body Params

gtag
object
 
gtag.tag_uid
string
required

Gtag uid

gtag.banned
boolean

Gtag banned or not?

gtag.active
boolean

Gtag active or not?

gtag.credits
float

Gtag credits

gtag.refundable_credits
float
required

Gtag refundable credits

gtag.final_balance
float

Gtag final balance

gtag.final_refundable_balance
float

Gtag final refundable balance

gtag.customer_id
int32

Gtag customer id

gtag.redeemed
boolean

Gtag redeemed or not?

gtag.ticket_type_id
int32

Gtag ticket type id

 
Suggest Edits

/gtags/:id

Get a gtag of an event

 

Basic Auth

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

var options = { method: 'GET',
  url: 'https://sandbox.glownet.com/api/v2/events/event_id/gtags/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/api/v2/events/event_id/gtags/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/api/v2/events/event_id/gtags/id");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/events/event_id/gtags/id"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

{
    "id": 1111111,
    "tag_uid": "4A1104BA444D80",
    "banned": false,
    "format": "wristband",
    "active": true,
    "credits": "9.0",
    "refundable_credits": "9.0",
    "final_balance": "9.0",
    "final_refundable_balance": "9.0",
    "redeemed": false,
    "ticket_type": null,
    "customer": null
}

Path Params

event_id
int32
required

Event id

id
int32
required

Gtag id (or tag_uid)

tag_uid
int32
required

Gtag tag_uid (or id)

 
Suggest Edits

/gtags/:id

Modify a gtag of an event

 

Basic Auth

 Authentication is required for this endpoint.
patchhttps://sandbox.glownet.com/api/v2/events/event_id/gtags/id
{
	"gtag": {
  	"credits": 50
  }
}
A binary file was returned

You couldn't be authenticated

{
    "id": 1168716,
    "tag_uid": "12345671234567",
    "banned": false,
    "format": "wristband",
    "active": true,
    "credits": "50.0",
    "refundable_credits": "0.0",
    "final_balance": "0.0",
    "final_refundable_balance": "0.0",
    "redeemed": false,
    "ticket_type": null,
    "customer": null
}

Path Params

event_id
int32
required

Event id

id
int32
required

Gtag id (or tag_uid)

tag_uid
int32
required

Gtag tag_uid (or id)

Body Params

gtag
object
 
gtag.tag_uid
string

UID

gtag.banned
boolean

Not updateable field

gtag.active
boolean

Flag that determinates if is active or not

gtag.credits
float

Credits

gtag.refundable_credits
float
required

Refundable credits

gtag.final_balance
float

Final balance

gtag.final_refundable_balance
float

Final refundable balance

gtag.customer_id
int32

Customer id

gtag.redeemed
boolean

Flag that determinates if is redeemed or not

gtag.ticket_type_id
int32

Ticket type id

 
Suggest Edits

/gtags/:id

Modify a gtag of an event

 

Basic Auth

 Authentication is required for this endpoint.
puthttps://sandbox.glownet.com/api/v2/events/event_id/gtags/id
{
	"gtag": {
  	"credits": 50
  }
}
A binary file was returned

You couldn't be authenticated

{
    "id": 1168716,
    "tag_uid": "12345671234567",
    "banned": false,
    "format": "wristband",
    "active": true,
    "credits": "50.0",
    "refundable_credits": "0.0",
    "final_balance": "0.0",
    "final_refundable_balance": "0.0",
    "redeemed": false,
    "ticket_type": null,
    "customer": null
}

Path Params

event_id
int32
required

Event id

id
int32
required

Gtag id (or tag_uid)

tag_uid
int32
required

Gtag tag_uid (or id)

Body Params

gtag
object
 
gtag.tag_uid
string

UID

gtag.banned
boolean

Not updateable field

gtag.active
boolean

Flag that determinates if is active or not

gtag.credits
float

Credits

gtag.refundable_credits
float
required

Refundable credits

gtag.final_balance
float

Final balance

gtag.final_refundable_balance
float

Final refundable balance

gtag.customer_id
int32

Customer id

gtag.redeemed
boolean

Flag that determinates if is redeemed or not

gtag.ticket_type_id
int32

Ticket type id

 
Suggest Edits

/gtags/:id

Delete a gtag of an event

 

Basic Auth

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

var options = { method: 'DELETE',
  url: 'https://sandbox.glownet.com/api/v2/events/event_id/gtags/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/api/v2/events/event_id/gtags/id")

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/api/v2/events/event_id/gtags/id");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/events/event_id/gtags/id"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

{
    "error": "Forbidden access"
}

Path Params

event_id
int32
required

Event id

id
int32
required

Gtag id (or tag_uid)

tag_uid
int32
required

Gtag tag_uid (or id)

 

This feature is not available yet.

Suggest Edits

/gtags/:id/ban

Ban a gtag of an event

 

Basic Auth

 Authentication is required for this endpoint.
posthttps://sandbox.glownet.com/api/v2/events/event_id/gtags/id/ban
curl --request POST \
  --url https://sandbox.glownet.com/api/v2/events/event_id/gtags/id/ban
var request = require("request");

var options = { method: 'POST',
  url: 'https://sandbox.glownet.com/api/v2/events/event_id/gtags/id/ban' };

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/api/v2/events/event_id/gtags/id/ban")

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/api/v2/events/event_id/gtags/id/ban");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/events/event_id/gtags/id/ban"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

{
    "id": 1074549,
    "tag_uid": "0496231A114D80",
    "banned": true,
    "format": "wristband",
    "active": true,
    "credits": "0.0",
    "refundable_credits": "0.0",
    "final_balance": "0.0",
    "final_refundable_balance": "0.0",
    "redeemed": false,
    "ticket_type": null,
    "customer": null
}

Path Params

event_id
int32
required

Event id

id
int32
required

Gtag id (or tag_uid)

tag_uid
int32
required

Gtag tag_uid (or id)

 
Suggest Edits

/gtags/:id/unban

Unban a gtag of an event

 

Basic Auth

 Authentication is required for this endpoint.
posthttps://sandbox.glownet.com/api/v2/events/event_id/gtags/id/unban
curl --request POST \
  --url https://sandbox.glownet.com/api/v2/events/event_id/gtags/id/unban
var request = require("request");

var options = { method: 'POST',
  url: 'https://sandbox.glownet.com/api/v2/events/event_id/gtags/id/unban' };

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/api/v2/events/event_id/gtags/id/unban")

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/api/v2/events/event_id/gtags/id/unban");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/events/event_id/gtags/id/unban"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

{
    "id": 1074549,
    "tag_uid": "0496231A114D80",
    "banned": false,
    "format": "wristband",
    "active": true,
    "credits": "0.0",
    "refundable_credits": "0.0",
    "final_balance": "0.0",
    "final_refundable_balance": "0.0",
    "redeemed": false,
    "ticket_type": null,
    "customer": null
}

Path Params

event_id
int32
required

Event id

id
int32
required

Gtag id (or tag_uid)

tag_uid
int32
required

Gtag tag_uid (or id)

 
Suggest Edits

/gtags/:id/topup

Create a topup of an event

 

Basic Auth

 Authentication is required for this endpoint.
posthttps://sandbox.glownet.com/api/v2/events/event_id/gtags/id/topup
{
	"gateway": "refund",
	"credits": 50
}
A binary file was returned

You couldn't be authenticated

{
    "id": 100462,
    "status": "completed",
    "total": "50.0",
    "completed_at": "2017-07-05T18:55:47.254+08:00",
    "gateway": "refund",
    "customer_id": 92464,
    "order_items": [
        {
            "id": 102123,
            "amount": "50.0",
            "total": "50.0",
            "redeemed": false,
            "counter": 2
        }
    ]
}

Path Params

event_id
int32
required

Event id

id
int32
required

Gtag id (or tag_uid)

tag_uid
int32
required

Gtag tag_uid (or id)

Body Params

gateway
string
credits
float
 
Suggest Edits

/gtags/:id/replace

Ban a gtag of an event

 

Basic Auth

 Authentication is required for this endpoint.
posthttps://sandbox.glownet.com/api/v2/events/event_id/gtags/id/replace
{
	"new_tag_uid": "0496231A114D80"
}
A binary file was returned

You couldn't be authenticated

{
    "id": 1074549,
    "tag_uid": "0496231A114D80",
    "banned": true,
    "format": "wristband",
    "active": true,
    "credits": "0.0",
    "refundable_credits": "0.0",
    "final_balance": "0.0",
    "final_refundable_balance": "0.0",
    "redeemed": false,
    "ticket_type": null,
    "customer": null
}

Path Params

event_id
int32
required

Event id

id
int32
required

Gtag id (or tag_uid)

tag_uid
int32
required

Gtag tag_uid (or id)

Body Params

new_tag_uid
string
required

New tag uid of the gtag

 
Suggest Edits

/tickets

Get all tickets of an event

 

Basic Auth

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

var options = { method: 'GET',
  url: 'https://sandbox.glownet.com/api/v2/events/:event_id/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/api/v2/events/:event_id/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/api/v2/events/:event_id/tickets");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/events/:event_id/tickets"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

[
  {
    "id": 1,
    "code": "DDCCBBAA",
    "redeemed": false,
    "banned": false,
    "customer_id": null,
    "ticket_type_id": 5
  },
  {
    "id": 2,
    "code": "AABBCCDD",
    "redeemed": false,
    "banned": false,
    "customer_id": null,
    "ticket_type_id": 12
  },
  {
    "id": 3,
    "code": "456abc",
    "redeemed": false,
    "banned": false,
    "customer_id": null,
    "ticket_type_id": 3
  }
]

Path Params

:event_id
int32
required

Event id

 
Suggest Edits

/tickets

Create a new ticket

 

Basic Auth

 Authentication is required for this endpoint.
posthttps://sandbox.glownet.com/api/v2/events/:event_id/tickets
{
  "ticket": {
    "code": "5",
    "purchaser_first_name": "John",
    "purchaser_last_name": "Doe",
    "purchaser_email": "john@doe.com",
    "ticket_type": 5,
     "customer": {
      "first_name": "Jane",
      "last_name": "Doe",
      "email": "jane@doe.com",
      "anonymous": false
    }
  }
}
A binary file was returned

You couldn't be authenticated

{
  "id": 1,
  "code": "5",
  "redeemed": true,
  "banned": false,
  "purchaser_first_name": "John",
  "purchaser_last_name": "Doe",
  "purchaser_email": "john@doe.com",
  "ticket_type": {
    "id": 5,
    "name": "Viernes Noche-1",
    "company_code": "22"
  },
    "customer": {
    "id": 1,
    "first_name": "Jane",
    "last_name": "Doe",
    "email": "jane@doe.com",
    "anonymous": false
  }
}
HTML
{
  "status": "unprocessable_entity",
  "error": "Ticket type not found."
}

Path Params

:event_id
int32
required

Event id

Body Params

ticket
object
 
ticket.code
string
required

Identifier of the ticket code

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 surname

ticket.purchaser_attributes.last_name
string

Purchaser's lastname

ticket.purchaser_attributes.email
string

Purchaser's email

ticket.customer_id
int32

Identifier of the customer assigned to this ticket

ticket.redeemed
boolean

Not update permited

ticket.banned
boolean

Not update permited

 
Suggest Edits

/tickets/:id

Get a ticket of an event

 

Basic Auth

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

var options = { method: 'GET',
  url: 'https://sandbox.glownet.com/api/v2/events/:event_id/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/api/v2/events/:event_id/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/api/v2/events/:event_id/tickets/:id");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/events/:event_id/tickets/:id"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "id": 1,
  "code": "5",
  "redeemed": true,
  "banned": false,
  "purchaser_first_name": "John",
  "purchaser_last_name": "Doe",
  "purchaser_email": "john@doe.com",
  "ticket_type": {
    "id": 5,
    "name": "Viernes Noche-1",
    "company_code": "22"
  },
    "customer": {
    "id": 1,
    "first_name": "Jane",
    "last_name": "Doe",
    "email": "jane@doe.com",
    "anonymous": false
  }
}

Path Params

:event_id
int32
required

Event id

:id
int32
required

Ticket id

 
Suggest Edits

/tickets/:id

Modify a ticket of an event

 

Basic Auth

 Authentication is required for this endpoint.
patchhttps://sandbox.glownet.com/api/v2/events/:event_id/tickets/:id
{
  "ticket": {
    "code": "5",
    "purchaser_attributes": {
      "email": "john@doe.com"
    },
    "customer": {
    	"first_name": "Jane",
      "last_name": "Doe",
    }
  }
A binary file was returned

You couldn't be authenticated

{
  "id": 1,
  "code": "5",
  "redeemed": true,
  "banned": false,
  "purchaser_first_name": "John",
  "purchaser_last_name": "Doe",
  "purchaser_email": "john@doe.com",
  "ticket_type": {
    "id": 5,
    "name": "Viernes Noche-1",
    "company_code": "22"
  },
    "customer": {
    "id": 1,
    "first_name": "Jane",
    "last_name": "Doe",
    "email": "jane@doe.com",
    "anonymous": false
  }
}

Path Params

:event_id
int32
required

Event id

:id
int32
required

Ticket id

Body Params

ticket
object
 
ticket.ticket_type_id
int32

Identifier of the ticket type assigned to this ticket

ticket.code
string

Identifier of the ticket code

ticket.redeemed
boolean

Not update permited

ticket.banned
boolean

Not update permited

ticket.purchaser_attributes
object
 
ticket.purchaser_attributes.first_name
string

Purchaser's surname

ticket.purchaser_attributes.last_name
string

Purchaser's lastname

ticket.purchaser_attributes.email
string

Purchaser's email

 
Suggest Edits

/tickets/:id

Modify a ticket of an event

 

Basic Auth

 Authentication is required for this endpoint.
puthttps://sandbox.glownet.com/api/v2/events/:event_id/tickets/:id
{
  "ticket": {
    "code": "5",
    "purchaser_attributes": {
      "first_name": "John",
      "last_name": "Doe",
      "email": "john@doe.com"
    },
    "ticket_type": 5,
    "customer": {
    	"first_name": "Jane",
      "last_name": "Doe",
      "email": "jane@doe.com",
      "anonymous": false
    }
  }
A binary file was returned

You couldn't be authenticated

{
  "id": 1,
  "code": "5",
  "redeemed": true,
  "banned": false,
  "purchaser_first_name": "John",
  "purchaser_last_name": "Doe",
  "purchaser_email": "john@doe.com",
  "ticket_type": {
    "id": 5,
    "name": "Viernes Noche-1",
    "company_code": "22"
  },
    "customer": {
    "id": 1,
    "first_name": "Jane",
    "last_name": "Doe",
    "email": "jane@doe.com",
    "anonymous": false
  }
}

Path Params

:event_id
int32
required

Event id

:id
int32
required

Ticket id

Body Params

ticket
object
 
ticket.ticket_type_id
int32

Identifier of the ticket type assigned to this ticket

ticket.code
string

Identifier of the ticket code

ticket.redeemed
boolean

Not update permited

ticket.banned
boolean

Not update permited

ticket.purchaser_attributes
object
 
ticket.purchaser_attributes.first_name
string

Purchaser's surname

ticket.purchaser_attributes.last_name
string

Purchaser's lastname

ticket.purchaser_attributes.email
string

Purchaser's email

 
Suggest Edits

/tickets/:id

Delete a ticket of an event

 

Basic Auth

 Authentication is required for this endpoint.
deletehttps://sandbox.glownet.com/api/v2/events/:event_id/tickets/:id
curl --request DELETE \
  --url https://sandbox.glownet.com/api/v2/events/:event_id/tickets/:id
var request = require("request");

var options = { method: 'DELETE',
  url: 'https://sandbox.glownet.com/api/v2/events/:event_id/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/api/v2/events/:event_id/tickets/:id")

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/api/v2/events/:event_id/tickets/:id");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/events/:event_id/tickets/:id"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

{
    "error": "Forbidden access"
}

Path Params

:event_id
int32
required

Event id

:id
int32
required

Ticket id

Body Params

:id
int32

The ticket's id

 

This feature is not available yet.

Suggest Edits

/tickets/:id/topup

Create a ticket topup of an event

 

Basic Auth

 Authentication is required for this endpoint.
posthttps://sandbox.glownet.com/api/v2/events/:event_id/tickets/:id/topup
{
	"customer_id": 2,
    "gateway": "bank_account",
    "credits": "50"
}
A binary file was returned

You couldn't be authenticated

{
  "id": 95105,
  "status": "completed",
  "total": "50.0",
  "completed_at": "2017-07-05T16:50:42.708+08:00",
  "gateway": "bank_account",
  "customer_id": 2,
  "order_items": [
    {
      "id": 96769,
      "amount": "50.0",
      "total": "50.0",
      "redeemed": false,
      "counter": 2
     }
  ],
}
{
  "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" }

Path Params

:event_id
int32
required

Event id

:id
int32
required

Ticket id

Body Params

ticket
object
 
ticket.customer_id
int32

Identifier of the customer assigned to this ticket

ticket.credits
int32

Order's credits

ticket.gateway
string

Order's gateway

 
Suggest Edits

/orders

Get all orders of an event

 

Basic Auth

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

var options = { method: 'GET',
  url: 'https://sandbox.glownet.com/api/v2/events/:event_id/orders' };

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/api/v2/events/:event_id/orders")

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/api/v2/events/:event_id/orders");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/events/:event_id/orders"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  [
    {
      "id": 2,
      "status": "completed",
      "total": "50.0",
      "completed_at": "2017-07-05T10:50:42.708+02:00",
      "gateway": "bank_account",
      "customer_id": 73600,
      "order_items": [
        {
          "id": 5,
          "amount": "50.0",
          "total": "50.0",
          "redeemed": false,
          "counter": 2
        }
      ]
    },
    {
      "id": 3,
      "status": "completed",
      "total": 0,
      "completed_at": "2017-07-05T10:27:55.954+02:00",
      "gateway": null,
      "customer_id": 73600,
      "order_items": []
    },
    {
      "id": 4,
      "status": "completed",
      "total": 0,
      "completed_at": "2017-07-05T10:27:40.177+02:00",
      "gateway": null,
      "customer_id": 73600,
      "order_items": []
    },
  ]
}

Path Params

:event_id
int32
required

Event id

 
Suggest Edits

/orders

Create a new order

 

Basic Auth

 Authentication is required for this endpoint.
posthttps://sandbox.glownet.com/api/v2/events/:event_id/orders
{
  "order": {
    "customer_id": 2,
    "gateway": "stripe",
    "refund_data": "{}",
    "payment_data": "{
  		"id": "ch_1AHWEWB0G10my936M3ZFE4VZ",
    	"paid": true,
    	"order": nil,
    	"amount": 3000,
    	"object": "charge",
    	"review": nil,
    	"source": {
    		"id": "card_1AHWEWB0G10my936f1v2UiC2",
      	"name": nil,
        "brand": "Visa",
        "last4": "4242",
        "object": "card",
        "country": "US",
        "funding": "credits",
        "customer": nil,
        "exp_year": 2018,
        "metadata": {},
        "cvc_check": "pass",
        "exp_month": 1,
        "address_zip": nil,
        "fingerprint": "UXgbiBaiIShZD9Qy",
        "address_city": nil,
        "address_line1": nil,
        "address_state": nil,
        "dynamic_last4": nil,
        "three_d_secure": {
          "supported": "optional"
      },
      "address_country": nil,
      "invoice": nil,
      "outcome": {
        "type": "authorized",
        "reason": nil,
        "risk_level": "normal",
        "network_status": "approved_by_network",
        "seller_message": "Payment complete."
      },
      "refunds": {
        "url": "/v1/charges/ch_1AHWEWB0G10my936M3ZFE4VZ/refunds",
        "data": [],
        "object": "list",
        "has_more": false,
        "total_count": 0
      },
      "captured": true,
      "currency": "eur",
      "customer": nil,
      "livemode": false,
      "metadata": {},
      "refunded": false,
      "shipping": nil,
      "application": nil,
      "description": nil,
      "destination": nil,
      "failure_code": nil,
      "on_behalf_of": nil,
      "fraud_details": {},
      "receipt_email": nil,
      "receipt_number": nil,
      "transfer_group": nil,
      "amount_refunded": 0,
      "application_fee": nil,
      "failure_message": nil,
      "source_transfer": nil,
      "balance_transaction": "txn_1AJWEWB0G10my8365GjSsxFa",
      "statement_descriptor": nil
    }"
  }
}
A binary file was returned

You couldn't be authenticated

{
  "id": 6,
  "status": "in_progress",
  "completed_at": null,
  "created_at": "2017-07-05T11:57:00.239+02:00",
  "updated_at": "2017-07-05T11:57:00.239+02:00",
  "payment_data": {
  	"id": "ch_1AHWEWB0G10my936M3ZFE4VZ",
    "paid": true,
    "order": nil,
    "amount": 3000,
    "object": "charge",
    "review": nil,
    "source": {
    	"id": "card_1AHWEWB0G10my936f1v2UiC2",
      "name": nil,
      "brand": "Visa",
      "last4": "4242",
      "object": "card",
      "country": "US",
      "funding": "credits",
      "customer": nil,
      "exp_year": 2018,
      "metadata": {},
      "cvc_check": "pass",
      "exp_month": 1,
      "address_zip": nil,
      "fingerprint": "UXgbiBaiIShZD9Qy",
      "address_city": nil,
      "address_line1": nil,
      "address_state": nil,
      "dynamic_last4": nil,
      "three_d_secure": {
        "supported": "optional"
      },
      "address_country": nil,
      "invoice": nil,
      "outcome": {
        "type": "authorized",
        "reason": nil,
        "risk_level": "normal",
        "network_status": "approved_by_network",
        "seller_message": "Payment complete."
      },
      "refunds": {
        "url": "/v1/charges/ch_1AHWEWB0G10my936M3ZFE4VZ/refunds",
        "data": [],
        "object": "list",
        "has_more": false,
        "total_count": 0
      },
      "captured": true,
      "currency": "eur",
      "customer": nil,
      "livemode": false,
      "metadata": {},
      "refunded": false,
      "shipping": nil,
      "application": nil,
      "description": nil,
      "destination": nil,
      "failure_code": nil,
      "on_behalf_of": nil,
      "fraud_details": {},
      "receipt_email": nil,
      "receipt_number": nil,
      "transfer_group": nil,
      "amount_refunded": 0,
      "application_fee": nil,
      "failure_message": nil,
      "source_transfer": nil,
      "balance_transaction": "txn_1AJWEWB0G10my8365GjSsxFa",
      "statement_descriptor": nil
    },
    "gateway": "stripe",
    "customer_id": 2,
    "event_id": 1,
    "refund_data": "{}"
  }
}

Path Params

:event_id
int32
required

Event id

Body Params

order
object
 
order.customer_id
int32
required

Identifier of the customer assigned to this order

order.status
string

Order's status (ej: "in_progress", etc)

order.payment_data
json

Order's payment data

order.gateway
string

Order's gateway type

order.refund_data
json

Order's refund data

 
Suggest Edits

/orders/:id

Return an order.

 

Basic Auth

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

var options = { method: 'GET',
  url: 'https://sandbox.glownet.com/api/v2/events/:event_id/orders/: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/api/v2/events/:event_id/orders/: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/api/v2/events/:event_id/orders/:id");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/events/:event_id/orders/:id"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "id": 3,
	"status": "completed",
	"total": "30.0",
	"completed_at": "2017-05-09T13:10:24.650+02:00",
	"gateway": "stripe",
	"customer_id": 2,
	"order_items": [
  	{
			"id": 50,
			"amount": "30.0",
			"total": "30.0",
			"redeemed": false,
			"counter": 1
		}
	]
}

Path Params

:event_id
int32
required

Event id

:id
int32
required

Order id

 
Suggest Edits

/orders/:id

Update an order

 

Basic Auth

 Authentication is required for this endpoint.
patchhttps://sandbox.glownet.com/api/v2/events/:event_id/orders/:id
{
  "order": {
    "gateway": "bank_account"
  }
}
A binary file was returned

You couldn't be authenticated

{
  "event_id": 1,
  "id": 79680,
  "customer_id": 73582,
  "status": "completed",
  "completed_at": "2017-05-09T13:10:24.650+02:00",
  "created_at": "2017-05-09T13:10:12.476+02:00",
  "updated_at": "2017-05-09T13:10:24.657+02:00",
  "payment_data": {
    "id": "ch_1AHWEWB0G10my836M3ZFE4VB",
    "paid": true,
    "order": null,
    "amount": 3000,
    "object": "charge",
    "review": null,
    "source": {
      "id": "card_1AHWEWB0G10my836f1v2UiC1",
      "name": null,
      "brand": "Visa",
      "last4": "4242",
      "object": "card",
      "country": "US",
      "funding": "credit",
      "customer": null,
      "exp_year": 2018,
      "metadata": {},
      "cvc_check": "pass",
      "exp_month": 1,
      "address_zip": null,
      "fingerprint": "UXgboBaiIShZC9Qy",
      "address_city": null,
      "address_line1": null,
      "address_line2": null,
      "address_state": null,
      "dynamic_last4": null,
      "three_d_secure": {
        "supported": "optional"
    	},
      "address_country": null,
      "address_zip_check": null,
      "address_line1_check": null,
      "tokenization_method": null
		},
    "status": "succeeded",
    "created": 1494328224,
    "dispute": null,
    "invoice": null,
    "outcome": {
      "type": "authorized",
      "reason": null,
      "risk_level": "normal",
      "network_status": "approved_by_network",
      "seller_message": "Payment complete."
    },
    "refunds": {
      "url": "/v1/charges/ch_1AHWEWB0G10my836M3ZFE4VB/refunds",
      "data": [],
      "object": "list",
      "has_more": false,
      "total_count": 0
    },
    "captured": true,
    "currency": "eur",
    "customer": null,
    "livemode": false,
    "metadata": {},
    "refunded": false,
    "shipping": null,
    "application": null,
    "description": null,
    "destination": null,
    "failure_code": null,
    "on_behalf_of": null,
    "fraud_details": {},
    "receipt_email": null,
    "receipt_number": null,
    "transfer_group": null,
    "amount_refunded": 0,
    "application_fee": null,
    "failure_message": null,
    "source_transfer": null,
    "balance_transaction": "txn_1AHWEWB0G10my8365GjSsxFe",
    "statement_descriptor": null
  },
  "gateway": "bank_account",
  "refund_data": {}
}

Path Params

:event_id
int32
required

Event id

:id
int32
required

Order id

 
Suggest Edits

/orders/:id

Update an order

 

Basic Auth

 Authentication is required for this endpoint.
puthttps://sandbox.glownet.com/api/v2/events/:event_id/orders/:id
{
  "order": {
    "gateway": "bank_account"
  }
}
A binary file was returned

You couldn't be authenticated

{
  "event_id": 1,
  "id": 79680,
  "customer_id": 73582,
  "status": "completed",
  "completed_at": "2017-05-09T13:10:24.650+02:00",
  "created_at": "2017-05-09T13:10:12.476+02:00",
  "updated_at": "2017-05-09T13:10:24.657+02:00",
  "payment_data": {
    "id": "ch_1AHWEWB0G10my836M3ZFE4VB",
    "paid": true,
    "order": null,
    "amount": 3000,
    "object": "charge",
    "review": null,
    "source": {
      "id": "card_1AHWEWB0G10my836f1v2UiC1",
      "name": null,
      "brand": "Visa",
      "last4": "4242",
      "object": "card",
      "country": "US",
      "funding": "credit",
      "customer": null,
      "exp_year": 2018,
      "metadata": {},
      "cvc_check": "pass",
      "exp_month": 1,
      "address_zip": null,
      "fingerprint": "UXgboBaiIShZC9Qy",
      "address_city": null,
      "address_line1": null,
      "address_line2": null,
      "address_state": null,
      "dynamic_last4": null,
      "three_d_secure": {
        "supported": "optional"
    	},
      "address_country": null,
      "address_zip_check": null,
      "address_line1_check": null,
      "tokenization_method": null
		},
    "status": "succeeded",
    "created": 1494328224,
    "dispute": null,
    "invoice": null,
    "outcome": {
      "type": "authorized",
      "reason": null,
      "risk_level": "normal",
      "network_status": "approved_by_network",
      "seller_message": "Payment complete."
    },
    "refunds": {
      "url": "/v1/charges/ch_1AHWEWB0G10my836M3ZFE4VB/refunds",
      "data": [],
      "object": "list",
      "has_more": false,
      "total_count": 0
    },
    "captured": true,
    "currency": "eur",
    "customer": null,
    "livemode": false,
    "metadata": {},
    "refunded": false,
    "shipping": null,
    "application": null,
    "description": null,
    "destination": null,
    "failure_code": null,
    "on_behalf_of": null,
    "fraud_details": {},
    "receipt_email": null,
    "receipt_number": null,
    "transfer_group": null,
    "amount_refunded": 0,
    "application_fee": null,
    "failure_message": null,
    "source_transfer": null,
    "balance_transaction": "txn_1AHWEWB0G10my8365GjSsxFe",
    "statement_descriptor": null
  },
  "gateway": "bank_account",
  "refund_data": {}
}

Path Params

:event_id
int32
required

Event id

:id
int32
required

Order id

 
Suggest Edits

/orders/:id

Delete an order

 

Basic Auth

 Authentication is required for this endpoint.
deletehttps://sandbox.glownet.com/api/v2/events/:event_id/orders/:id
curl --request DELETE \
  --url https://sandbox.glownet.com/api/v2/events/:event_id/orders/:id
var request = require("request");

var options = { method: 'DELETE',
  url: 'https://sandbox.glownet.com/api/v2/events/:event_id/orders/: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/api/v2/events/:event_id/orders/:id")

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/api/v2/events/:event_id/orders/:id");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/events/:event_id/orders/:id"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

{
    "error": "Forbidden access"
}

Path Params

:event_id
int32
required

Event id

:id
int32
required

Order id

 

This feature is not available yet.

Suggest Edits

/orders/:id/complete

Update an order to be completed

 

Basic Auth

 Authentication is required for this endpoint.
puthttps://sandbox.glownet.com/api/v2/events/:event_id/orders/:id/complete
{
  "order": {
    "payment_data": "{
  		"id": "ch_1AHWEWB0G10my936M3ZFE4VZ",
    	"paid": true,
    	"order": nil,
    	"amount": 3000,
    	"object": "charge",
    	"review": nil,
    	"source": {
    		"id": "card_1AHWEWB0G10my936f1v2UiC2",
      	"name": nil,
        "brand": "Visa",
        "last4": "4242",
        "object": "card",
        "country": "US",
        "funding": "credits",
        "customer": nil,
        "exp_year": 2018,
        "metadata": {},
        "cvc_check": "pass",
        "exp_month": 1,
        "address_zip": nil,
        "fingerprint": "UXgbiBaiIShZD9Qy",
        "address_city": nil,
        "address_line1": nil,
        "address_state": nil,
        "dynamic_last4": nil,
        "three_d_secure": {
          "supported": "optional"
      },
      "address_country": nil,
      "invoice": nil,
      "outcome": {
        "type": "authorized",
        "reason": nil,
        "risk_level": "normal",
        "network_status": "approved_by_network",
        "seller_message": "Payment complete."
      },
      "refunds": {
        "url": "/v1/charges/ch_1AHWEWB0G10my936M3ZFE4VZ/refunds",
        "data": [],
        "object": "list",
        "has_more": false,
        "total_count": 0
      },
      "captured": true,
      "currency": "eur",
      "customer": nil,
      "livemode": false,
      "metadata": {},
      "refunded": false,
      "shipping": nil,
      "application": nil,
      "description": nil,
      "destination": nil,
      "failure_code": nil,
      "on_behalf_of": nil,
      "fraud_details": {},
      "receipt_email": nil,
      "receipt_number": nil,
      "transfer_group": nil,
      "amount_refunded": 0,
      "application_fee": nil,
      "failure_message": nil,
      "source_transfer": nil,
      "balance_transaction": "txn_1AJWEWB0G10my8365GjSsxFa",
      "statement_descriptor": nil
    }"
    "gateway": "stripe"
  }
}
A binary file was returned

You couldn't be authenticated

{
  "event_id": 1,
  "id": 79680,
  "status": "completed",
  "gateway": "stripe",
  "completed_at": "2017-07-05T19:36:19.175+08:00",
  "payment_data": "{
    "id": "ch_1AHWEWB0G10my936M3ZFE4VZ",
    "paid": true,
    "order": nil,
    "amount": 3000,
    "object": "charge",
    "review": nil,
    "source": {
    "id": "card_1AHWEWB0G10my936f1v2UiC2",
    "name": nil,
    "brand": "Visa",
    "last4": "4242",
    "object": "card",
    "country": "US",
    "funding": "credits",
    "customer": nil,
    "exp_year": 2018,
    "metadata": {},
    "cvc_check": "pass",
    "exp_month": 1,
    "address_zip": nil,
    "fingerprint": "UXgbiBaiIShZD9Qy",
    "address_city": nil,
    "address_line1": nil,
    "address_state": nil,
    "dynamic_last4": nil,
    "three_d_secure": {
      "supported": "optional"
    },
    "address_country": nil,
    "invoice": nil,
    "outcome": {
      "type": "authorized",
      "reason": nil,
      "risk_level": "normal",
      "network_status": "approved_by_network",
      "seller_message": "Payment complete."
    },
    "refunds": {
      "url": "/v1/charges/ch_1AHWEWB0G10my936M3ZFE4VZ/refunds",
      "data": [],
      "object": "list",
      "has_more": false,
      "total_count": 0
    },
    "captured": true,
    "currency": "eur",
    "customer": nil,
    "livemode": false,
    "metadata": {},
    "refunded": false,
    "shipping": nil,
    "application": nil,
    "description": nil,
    "destination": nil,
    "failure_code": nil,
    "on_behalf_of": nil,
    "fraud_details": {},
    "receipt_email": nil,
    "receipt_number": nil,
    "transfer_group": nil,
    "amount_refunded": 0,
    "application_fee": nil,
    "failure_message": nil,
    "source_transfer": nil,
    "balance_transaction": "txn_1AJWEWB0G10my8365GjSsxFa",
    "statement_descriptor": nil
  }",
  "customer_id": 73582,
  "created_at": "2017-05-09T19:10:12.476+08:00",
  "updated_at": "2017-07-05T19:36:19.197+08:00",
  "refund_data": {}
}

Path Params

:event_id
int32
required

Event id

:id
int32
required

Order id

 
Suggest Edits

/customers

Get all customers of an event

 

Basic Auth

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

var options = { method: 'GET',
  url: 'https://sandbox.glownet.com/api/v2/events/event_id/customers' };

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/api/v2/events/event_id/customers")

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/api/v2/events/event_id/customers");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/events/event_id/customers"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

[
    {
        "id": 11111,
        "first_name": "Miguel",
        "last_name": "Alvarez",
        "email": "fakemail1@glownet.com",
        "anonymous": false
    },
    {
        "id": 22222,
        "first_name": "Fran",
        "last_name": "Moya",
        "email": "fakemail2@glownet.com",
        "anonymous": false
    },
    {
        "id": 33333,
        "first_name": "Jacobo",
        "last_name": "Carbo",
        "email": "fakemail3@glownet.com",
        "anonymous": false
    }
 ]

Path Params

event_id
int32
required

Event id

 
Suggest Edits

/customers

Create a customer of an event

 

Basic Auth

 Authentication is required for this endpoint.
posthttps://sandbox.glownet.com/api/v2/events/:event_id/customers
{
	"customer": {
  	"email": "whatever@gmail.com",
  	"password": "s3cur3p455w0rd",
  	"password_confirmation": "s3cur3p455w0rd",
  	"agreed_on_registration": true
  }
}
A binary file was returned

You couldn't be authenticated

{
    "id": 92474,
    "first_name": null,
    "last_name": null,
    "email": "whatever@gmail.com",
    "phone": null,
    "birthdate": null,
    "postcode": null,
    "address": null,
    "city": null,
    "country": null,
    "gender": null,
    "global_refundable_money": "0.0",
    "global_money": "0.0",
    "locale": "en",
    "anonymous": true
}

Body Params

customer
object
 
customer.email
string

Customer email

customer.password
string

Customer password

customer.password_confirmation
string

Customer password confirmation

customer.agreed_on_registration
boolean

Customer register agreement

 
Suggest Edits

/customers/:id

Get a customer of an event

 

Basic Auth

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

var options = { method: 'GET',
  url: 'https://sandbox.glownet.com/api/v2/events/event_id/customers/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/api/v2/events/event_id/customers/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/api/v2/events/event_id/customers/id");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/events/event_id/customers/id"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

{
    "id": 11111,
    "first_name": "Miguel",
    "last_name": "Alvarez",
    "email": "fakemail1@glownet.com",
    "phone": null,
    "birthdate": null,
    "postcode": null,
    "address": null,
    "city": null,
    "country": null,
    "gender": null,
    "global_refundable_money": "70.0",
    "global_money": "71.0",
    "locale": "en",
    "anonymous": false
}

Path Params

event_id
int32
required

Event id

id
int32
required

Customer id

 
Suggest Edits

/customers/:id

Modify a customer of an event

 

Basic Auth

 Authentication is required for this endpoint.
patchhttps://sandbox.glownet.com/api/v2/events/:event_id/customers/:id
{
	"customer": {
  	"first_name": "Miguel",
  	"last_name": "Alvarez"
  }
}
A binary file was returned

You couldn't be authenticated

{
    "id": 92465,
    "first_name": "Miguel",
    "last_name": "Alvarez",
    "email": "whatever@gmail.com",
    "phone": null,
    "birthdate": null,
    "postcode": null,
    "address": null,
    "city": null,
    "country": null,
    "gender": null,
    "global_refundable_money": "0.0",
    "global_money": "0.0",
    "locale": "en",
    "anonymous": false
}

Body Params

customer
object
 
customer.first_name
string

Customer first name

customer.last_name
string

Customer last name

customer.email
string

Customer email

customer.phone
string

Customer phone

customer.birthdate
string

Customer birthdate

customer.postcode
string

Customer postcode

customer.address
string

Customer address

customer.city
string

Customer city

customer.country
string

Customer country

customer.gender
string

Customer gender

customer.password
string

Customer password

customer.password_confirmation
string

Customer password confirmation

customer.agreed_on_registration
boolean

Customer register agreement

 
Suggest Edits

/customers/:id

Modify a customer of an event

 

Basic Auth

 Authentication is required for this endpoint.
puthttps://sandbox.glownet.com/api/v2/events/:event_id/customers/:id
{
	"customer": {
  	"first_name": "Fran",
  	"last_name": "Moya",
    "email": "fakemail2@glownet.com",
    "phone": "999000999",
    "birthdate": "01/01/1990",
    "postcode": "28028",
    "address": "Fake street, 24",
    "city": "Madrid",
    "country": "Spain",
    "gender": "Male",
    "password": "!23456",
    "password_confirmation": "123456",
    "agreed_on_registration": true
  }
}
A binary file was returned

You couldn't be authenticated

{
    "id": 92465,
    "first_name": "Fran",
    "last_name": "Moya",
    "email": "fakemail2@glownet.com",
    "phone": "999000999",
    "birthdate": "01/01/1990",
    "postcode": "28028",
    "address": "Fake street, 24",
    "city": "Madrid",
    "country": "Spain",
    "gender": "Male",
    "global_refundable_money": "0.0",
    "global_money": "0.0",
    "locale": "en",
    "anonymous": false
}

Body Params

customer
object
 
customer.first_name
string

Customer first name

customer.last_name
string

Customer last name

customer.email
string

Customer email

customer.phone
string

Customer phone

customer.birthdate
string

Customer birthdate

customer.postcode
string

Customer postcode

customer.address
string

Customer address

customer.city
string

Customer city

customer.country
string

Customer country

customer.gender
string

Customer gender

customer.password
string

Customer password

customer.password_confirmation
string

Customer password confirmation

customer.agreed_on_registration
boolean

Customer register agreement

 
Suggest Edits

/customers/:id

Delete a customer of an event

 

Basic Auth

 Authentication is required for this endpoint.
deletehttps://sandbox.glownet.com/api/v2/events/event_id/customers/id
curl --request DELETE \
  --url https://sandbox.glownet.com/api/v2/events/event_id/customers/id
var request = require("request");

var options = { method: 'DELETE',
  url: 'https://sandbox.glownet.com/api/v2/events/event_id/customers/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/api/v2/events/event_id/customers/id")

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/api/v2/events/event_id/customers/id");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/events/event_id/customers/id"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

{
    "error": "Forbidden access"
}

Path Params

event_id
int32
required

Event id

id
int32
required

Customer id

 

This feature is not available yet.

Suggest Edits

/customers/:id/topup

Create a topup of an event

 

Basic Auth

 Authentication is required for this endpoint.
posthttps://sandbox.glownet.com/api/v2/events/event_id/customers/id/topup
{
	"gateway": "refund",
	"credits": 50
}
A binary file was returned

You couldn't be authenticated

{
    "id": 100462,
    "status": "completed",
    "total": "50.0",
    "completed_at": "2017-07-05T18:55:47.254+08:00",
    "gateway": "refund",
    "customer_id": 92464,
    "order_items": [
        {
            "id": 102123,
            "amount": "50.0",
            "total": "50.0",
            "redeemed": false,
            "counter": 2
        }
    ]
}

Path Params

event_id
int32
required

Event id

id
int32
required

Customer id (or email)

email
int32
required

Customer email (or id)

Body Params

gateway
string
credits
float
 
Suggest Edits

/customers/:id/virtual_topup

Create a virtual topup of an event

 

Basic Auth

 Authentication is required for this endpoint.
posthttps://sandbox.glownet.com/api/v2/events/event_id/customers/id/topup
{
	"gateway": "refund",
	"credits": 50
}
A binary file was returned

You couldn't be authenticated

{
    "id": 156491,
    "status": "completed",
    "total": "0.0",
    "completed_at": "2017-10-23T01:47:32.569+02:00",
    "gateway": "paypal",
    "customer_id": 18944,
    "order_items": [
        {
            "id": 175454,
            "amount": "50.0",
            "total": "0.0",
            "redeemed": false,
            "counter": 1
        }
    ]
}

Path Params

event_id
int32
required

Event id

id
int32
required

Customer id (or email)

email
int32
required

Customer email (or id)

Body Params

gateway
string
credits
float
 
Suggest Edits

/customers/:id/ban

Ban a gtag of an event

 

Basic Auth

 Authentication is required for this endpoint.
posthttps://sandbox.glownet.com/api/v2/events/event_id/customers/id/ban
curl --request POST \
  --url https://sandbox.glownet.com/api/v2/events/event_id/customers/id/ban
var request = require("request");

var options = { method: 'POST',
  url: 'https://sandbox.glownet.com/api/v2/events/event_id/customers/id/ban' };

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/api/v2/events/event_id/customers/id/ban")

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/api/v2/events/event_id/customers/id/ban");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/events/event_id/customers/id/ban"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

{
    "id": 92331,
    "first_name": "John",
    "last_name": "Doe",
    "email": "nosenose@nose.com",
    "phone": null,
    "birthdate": null,
    "postcode": null,
    "address": null,
    "city": null,
    "country": null,
    "gender": null,
    "global_refundable_money": "30.0",
    "global_money": "30.0",
    "locale": "en",
    "anonymous": false,
    "gtags": [
        {
            "id": 1189827,
            "tag_uid": "89889898989812",
            "banned": true,
            "format": "wristband",
            "active": true,
            "credits": "0.0",
            "refundable_credits": "0.0",
            "final_balance": "0.0",
            "final_refundable_balance": "0.0",
            "redeemed": false
        }
    ],
    "tickets": [],
    "orders": [
        {
            "id": 100494,
            "status": "completed",
            "total": "30.0",
            "completed_at": "2017-08-16T12:10:08.014+02:00",
            "gateway": "paypal",
            "customer_id": 92491
        },
        {
            "id": 100493,
            "status": "refunded",
            "total": "-30.0",
            "completed_at": "2017-08-16T11:57:38.811+02:00",
            "gateway": "bank_account",
            "customer_id": 92491
        }
    ]
}

Path Params

event_id
int32
required

Event id

id
int32
required

Gtag id (or tag_uid)

tag_uid
int32
required

Gtag tag_uid (or id)

 
Suggest Edits

/customers/:id/unban

Unban a gtag of an event

 

Basic Auth

 Authentication is required for this endpoint.
posthttps://sandbox.glownet.com/api/v2/events/event_id/customers/id/unban
curl --request POST \
  --url https://sandbox.glownet.com/api/v2/events/event_id/customers/id/unban
var request = require("request");

var options = { method: 'POST',
  url: 'https://sandbox.glownet.com/api/v2/events/event_id/customers/id/unban' };

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/api/v2/events/event_id/customers/id/unban")

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/api/v2/events/event_id/customers/id/unban");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/events/event_id/customers/id/unban"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

{
    "id": 92331,
    "first_name": "John",
    "last_name": "Doe",
    "email": "nosenose@nose.com",
    "phone": null,
    "birthdate": null,
    "postcode": null,
    "address": null,
    "city": null,
    "country": null,
    "gender": null,
    "global_refundable_money": "30.0",
    "global_money": "30.0",
    "locale": "en",
    "anonymous": false,
    "gtags": [
        {
            "id": 1189827,
            "tag_uid": "89889898989812",
            "banned": false,
            "format": "wristband",
            "active": true,
            "credits": "0.0",
            "refundable_credits": "0.0",
            "final_balance": "0.0",
            "final_refundable_balance": "0.0",
            "redeemed": false
        }
    ],
    "tickets": [],
    "orders": [
        {
            "id": 100494,
            "status": "completed",
            "total": "30.0",
            "completed_at": "2017-08-16T12:10:08.014+02:00",
            "gateway": "paypal",
            "customer_id": 92491
        },
        {
            "id": 100493,
            "status": "refunded",
            "total": "-30.0",
            "completed_at": "2017-08-16T11:57:38.811+02:00",
            "gateway": "bank_account",
            "customer_id": 92491
        }
    ]
}

Path Params

event_id
int32
required

Event id

id
int32
required

Gtag id (or tag_uid)

tag_uid
int32
required

Gtag tag_uid (or id)

 
Suggest Edits

/customers/:id/refunds

Get all refunds of a customer of an event

 

Basic Auth

 Authentication is required for this endpoint.
gethttps://sandbox.glownet.com/api/v2/event/event_id/customers/id/refunds
curl --request GET \
  --url https://sandbox.glownet.com/api/v2/event/event_id/customers/id/refunds
var request = require("request");

var options = { method: 'GET',
  url: 'https://sandbox.glownet.com/api/v2/event/event_id/customers/id/refunds' };

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/api/v2/event/event_id/customers/id/refunds")

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/api/v2/event/event_id/customers/id/refunds");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/event/event_id/customers/id/refunds"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

[
  {
    "id": 11111,
    "amount": "34.0",
    "status": "completed",
    "fee": "2.0",
    "field_a": "017729",
    "field_b": "540097364",
    "customer": {
      "id": 22222,
      "first_name": "Fran",
      "last_name": "Moya",
      "email": "idontknowman@gmail.com",
      "anonymous": false
    }
    },
    {
      "id": 11222,
      "amount": "10.0",
      "status": "completed",
      "fee": "2.0",
      "field_a": "017729",
      "field_b": "540097364",
      "customer": {
        "id": 22222,
        "first_name": "Fran",
        "last_name": "Moya",
        "email": "idontknowman@gmail.com",
        "anonymous": false
      }
  }
]

Path Params

event_id
int32
required

Event id

id
int32
required

Customer id

 
Suggest Edits

/customers/:id/transactions

Get the info and transactions of a customer of an event

 

Basic Auth

 Authentication is required for this endpoint.
gethttps://sandbox.glownet.com/api/v2/event/event_id/customers/id/transactions
curl --request GET \
  --url https://sandbox.glownet.com/api/v2/event/event_id/customers/id/transactions
var request = require("request");

var options = { method: 'GET',
  url: 'https://sandbox.glownet.com/api/v2/event/event_id/customers/id/transactions' };

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/api/v2/event/event_id/customers/id/transactions")

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/api/v2/event/event_id/customers/id/transactions");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/event/event_id/customers/id/transactions"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

{
    "id": 18944,
    "first_name": "Important",
    "last_name": "Person",
    "email": "unknownemail@gmail.com",
    "phone": null,
    "birthdate": null,
    "postcode": null,
    "address": null,
    "city": null,
    "country": null,
    "gender": null,
    "global_refundable_money": "0.0",
    "global_money": "0.0",
    "locale": "es",
    "anonymous": false,
    "gtags": [
        {
            "id": 218133,
            "tag_uid": "74D5CJ3E",
            "banned": false,
            "redeemed": true,
            "active": true,
            "credits": "0.0",
            "refundable_credits": "0.0",
            "final_balance": "0.0",
            "final_refundable_balance": "0.0",
            "customer_id": 18944,
            "ticket_type_id": null
        }
    ],
    "tickets": [],
    "orders": [],
    "transactions": [
        {
            "id": 834791,
            "gtag_id": 218133,
            "station_id": 445,
            "credits": 6.5,
            "refundable_credits": 6.5,
            "final_balance": 6.5,
            "final_refundable_balance": 6.5,
            "sale_items": []
        },
        {
            "id": 2185,
            "gtag_id": 218133,
            "station_id": 445,
            "credits": -6.5,
            "refundable_credits": -6.5,
            "final_balance": 0,
            "final_refundable_balance": 0,
            "sale_items": [
                {
                    "id": 5885099,
                    "old_product_id": 5793,
                    "quantity": 1,
                    "unit_price": 6.5,
                    "credit_transaction_id": 2185,
                    "product_id": null
                }
            ]
        }
    ]
}

Path Params

event_id
int32
required

Event id

id
int32
required

Customer id

 
Suggest Edits

/customers/:id/assign_ticket

Unban a gtag of an event

 

Basic Auth

 Authentication is required for this endpoint.
posthttps://sandbox.glownet.com/api/v2/events/event_id/customers/id/unban
{
	code: "111122225555"
}
A binary file was returned

You couldn't be authenticated

{
    "id": 85634,
    "first_name": null,
    "last_name": null,
    "email": null,
    "phone": null,
    "birthdate": null,
    "postcode": null,
    "address": null,
    "city": null,
    "country": null,
    "gender": null,
    "global_refundable_money": "150.0",
    "global_money": "200.0",
    "locale": "en",
    "anonymous": true,
    "gtags": [
        {
            "id": 1234567,
            "tag_uid": "12345671234568",
            "banned": false,
            "format": "wristband",
            "active": true,
            "credits": "50.0",
            "refundable_credits": "0.0",
            "final_balance": "0.0",
            "final_refundable_balance": "0.0",
            "redeemed": false
        }
    ],
    "tickets": [
        {
            "id": 123456,
            "code": "111122225555",
            "redeemed": false,
            "banned": false,
            "purchaser_first_name": null,
            "purchaser_last_name": null,
            "purchaser_email": null
        }
    ],
    "orders": [
        {
            "id": 345678,
            "status": "completed",
            "total": 0,
            "completed_at": "2017-09-11T14:29:59.922+02:00",
            "gateway": null,
            "customer_id": 92492
        },
        {
            "id": 987654,
            "status": "completed",
            "total": 0,
            "completed_at": "2017-09-11T14:29:36.719+02:00",
            "gateway": null,
            "customer_id": 92492
        }
    ]
}

Path Params

event_id
int32
required

Event id

id
int32
required

Gtag id (or tag_uid)

tag_uid
int32
required

Gtag tag_uid (or id)

Body Params

code
string
required

Ticket code

 
Suggest Edits

/customers/:id/gtag_replacement

Unban a gtag of an event

 

Basic Auth

 Authentication is required for this endpoint.
posthttps://sandbox.glownet.com/api/v2/events/event_id/customers/id/gtag_replacement
{
	"new_tag_uid": "12345671234568"
}
A binary file was returned

You couldn't be authenticated

{
    "id": 85634,
    "first_name": null,
    "last_name": null,
    "email": null,
    "phone": null,
    "birthdate": null,
    "postcode": null,
    "address": null,
    "city": null,
    "country": null,
    "gender": null,
    "global_refundable_money": "150.0",
    "global_money": "200.0",
    "locale": "en",
    "anonymous": true,
    "gtags": [
        {
            "id": 1234567,
            "tag_uid": "12345671234568",
            "banned": false,
            "format": "wristband",
            "active": true,
            "credits": "50.0",
            "refundable_credits": "0.0",
            "final_balance": "0.0",
            "final_refundable_balance": "0.0",
            "redeemed": false
        }
    ],
    "tickets": [
        {
            "id": 123456,
            "code": "111122225555",
            "redeemed": false,
            "banned": false,
            "purchaser_first_name": null,
            "purchaser_last_name": null,
            "purchaser_email": null
        }
    ],
    "orders": [
        {
            "id": 345678,
            "status": "completed",
            "total": 0,
            "completed_at": "2017-09-11T14:29:59.922+02:00",
            "gateway": null,
            "customer_id": 92492
        },
        {
            "id": 987654,
            "status": "completed",
            "total": 0,
            "completed_at": "2017-09-11T14:29:36.719+02:00",
            "gateway": null,
            "customer_id": 92492
        }
    ]
}

Path Params

event_id
int32
required

Event id

id
int32
required

Gtag id (or tag_uid)

tag_uid
int32
required

Gtag tag_uid (or id)

Body Params

new_tag_uid
string
required
 
Suggest Edits

/ticket_types

Get all ticket types of an event

 

Basic Auth

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

var options = { method: 'GET',
  url: 'https://sandbox.glownet.com/api/v2/events/:event_id/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/api/v2/events/:event_id/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/api/v2/events/:event_id/ticket_types");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/events/:event_id/ticket_types"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

[
  {
    "id": 2618,
    "name": "0 Credits",
    "company_code": "",
    "company": {
      "id": 1,
      "name": "Glownet",
      "access_token": null
    }
  },
  {
    "id": 2619,
    "name": "GA + 5 Free Drinks",
    "company_code": "",
    "company": {
      "id": 1,
      "name": "Glownet",
      "access_token": null
    }
  },
  {
    "id": 2760,
    "name": "ABONO 16 ENTRADA",
    "company_code": "",
    "company": {
      "id": 1,
      "name": "Glownet",
      "access_token": null
     }
  },
  {
    "id": 2758,
    "name": "DIA 16 ENTRADA",
    "company_code": "",
    "company": {
      "id": 1,
      "name": "Glownet",
      "access_token": null
    }
  }
],

Path Params

:event_id
int32
required

Event id

 
Suggest Edits

/ticket_types/:id

Get a ticket type of an event

 

Basic Auth

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

var options = { method: 'GET',
  url: 'https://sandbox.glownet.com/api/v2/events/:event_id/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/api/v2/events/:event_id/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/api/v2/events/:event_id/ticket_types/:id");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/events/:event_id/ticket_types/:id"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "id": 2918,
  "name": "VIP Pass",
  "company_code": null,
  "company": {
    "id": 12,
    "name": "Glownet",
    "access_token": null
  }
}
{
  "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"
  ]
}

Path Params

:event_id
int32
required

Event id

:id
int32
required

Ticket type id

 
Suggest Edits

/ticket_types

Create a new ticket type

 

Basic Auth

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

var options = { method: 'POST',
  url: 'https://sandbox.glownet.com/api/v2/events/:event_id/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/api/v2/events/:event_id/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/api/v2/events/:event_id/ticket_types");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/events/:event_id/ticket_types"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

{
	"id": 3,
	"name": "Friday-13",
	"mode": "counter"
}
{
  "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"
  ]
}

Path Params

:event_id
int32
required

Event id

Body Params

ticket_type
object
 
ticket_type.name
string
required

Ticket type name

ticket_type.company_code
string
required

Ticket type's company code, similar to ticket type reference

 
Suggest Edits

/ticket_types/:id

Modify a ticket type of an event

 

Basic Auth

 Authentication is required for this endpoint.
patchhttps://sandbox.glownet.com/api/v2/events/:event_id/ticket_types/:id
{
	"ticket_type": {
		"name": "VIP Ticket",
  	"company_id": 208
  }
}
A binary file was returned

You couldn't be authenticated

{
  "id": 2,
  "name": "VIP Ticket",
  "company_code": null,
  "company": {
    "id": 208,
    "name": "Glownet",
    "access_token": null
  }
}
{
  "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]"
}
 
Suggest Edits

/ticket_types/:id

Update a ticket type

 

Basic Auth

 Authentication is required for this endpoint.
puthttps://sandbox.glownet.com/api/v2/events/:event_id/ticket_types/:id
{
  "ticket_type": {
  	"name": "VIP Ticket",
  	"company_id": 208
  }
}
A binary file was returned

You couldn't be authenticated

{
  "id": 2,
  "name": "VIP Ticket",
  "company_code": null,
  "company": {
    "id": 208,
    "name": "Glownet",
    "access_token": null
  }
}
{
  "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]"
}
 
Suggest Edits

/ticket_types/:id

Delete a ticket type

 

Basic Auth

 Authentication is required for this endpoint.
deletehttps://sandbox.glownet.com/api/v2/events/:event_id/ticket_types
curl --request DELETE \
  --url https://sandbox.glownet.com/api/v2/events/:event_id/ticket_types
var request = require("request");

var options = { method: 'DELETE',
  url: 'https://sandbox.glownet.com/api/v2/events/:event_id/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/api/v2/events/:event_id/ticket_types")

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/api/v2/events/:event_id/ticket_types");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/events/:event_id/ticket_types"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

Try the API to see results

Path Params

:event_id
int32
required

Event id

:id
int32
required

Ticket type id

 
Suggest Edits

/companies

Get all companies of an event

 

Basic Auth

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

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

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/api/v2/events/:event_id/companies")

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/api/v2/events/:event_id/companies");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/events/:event_id/companies"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "id": 1,
  "name": "Glownet",
  "access_token": null,
  "created_at": "2017-03-29T00:01:29.274+02:00",
  "updated_at": "2017-04-28T19:59:40.241+02:00",
  "hidden": false,
  "event_id": 3
}

Path Params

:event_id
int32
required

Event id

 
Suggest Edits

/companies

Create a new company of an event

 

Basic Auth

 Authentication is required for this endpoint.
posthttps://sandbox.glownet.com/api/v2/events/:event_id/companies
{
 "company": {
  	"name": "Glownet 2.0",
	}
}
A binary file was returned

You couldn't be authenticated

{
  "id": 1,
  "name": "Glownet 2.0",
  "access_token": "ASD7AS8ASDJK989",
  "created_at": "2017-07-05T16:03:09.791+02:00",
  "updated_at": "2017-07-05T16:03:09.791+02:00",
  "hidden": true,
  "event_id": 3
}

Path Params

:event_id
int32
required

Event id

Body Params

company
object
 
company.name
string
required

Company name

 
Suggest Edits

/companies/:id

Get a company of an event

 

Basic Auth

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

var options = { method: 'GET',
  url: 'https://sandbox.glownet.com/api/v2/events/:event_id/companies/: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/api/v2/events/:event_id/companies/: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/api/v2/events/:event_id/companies/:id");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/events/:event_id/companies/:id"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "id": 1,
  "name": "Glownet 2.0",
  "access_token": "ASD7AS8ASDJK989",
  "created_at": "2017-07-05T16:03:09.791+02:00",
  "updated_at": "2017-07-05T16:03:09.791+02:00",
  "hidden": true,
  "event_id": 3
}

Path Params

:event_id
int32
required

Event id

:id
int32
required

Company id

 
Suggest Edits

/companies/:id

Modify a company of an event

 

Basic Auth

 Authentication is required for this endpoint.
patchhttps://sandbox.glownet.com/api/v2/events/:event_id/companies/:id
{
  "company": {
    "name": "Glownet 2.1",
 		"hidden": false
  }
}
A binary file was returned

You couldn't be authenticated

{
  "id": 1,
  "name": "Glownet 2.1",
  "access_token": "ASD7AS8ASDJK989",
  "created_at": "2017-07-05T16:03:09.791+02:00",
  "updated_at": "2017-07-05T16:03:09.791+02:00",
  "hidden": false,
  "event_id": 3
}

Path Params

:event_id
int32
required

Event id

:id
int32
required

Company id

 
Suggest Edits

/companies/:id

Modify a company of an event

 

Basic Auth

 Authentication is required for this endpoint.
puthttps://sandbox.glownet.com/api/v2/events/:event_id/companies/:id
{
  "company": {
    "name": "Glownet 2.1",
  	"hidden": false
  }
}
A binary file was returned

You couldn't be authenticated

{
  "id": 1,
  "name": "Glownet 2.1",
  "access_token": "ASD7AS8ASDJK989",
  "created_at": "2017-07-05T16:03:09.791+02:00",
  "updated_at": "2017-07-05T16:03:09.791+02:00",
  "hidden": false,
  "event_id": 3
}

Path Params

:event_id
int32
required

Event id

:id
int32
required

Company id

 
Suggest Edits

/companies/:id

Delete a company of an event

 

Basic Auth

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

var options = { method: 'DELETE',
  url: 'https://sandbox.glownet.com/api/v2/events/:event_id/companies/: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/api/v2/events/:event_id/companies/:id")

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/api/v2/events/:event_id/companies/:id");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/events/:event_id/companies/:id"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  error:  "Forbidden access"
}

Path Params

:event_id
int32
required

Event id

:id
int32
required

Company id

 

This feature is not available yet.

Suggest Edits

/accesses

Get all accesses of an event

 

Basic Auth

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

var options = { method: 'GET',
  url: 'https://sandbox.glownet.com/api/v2/events/:event_id/accesses' };

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/api/v2/events/:event_id/accesses")

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/api/v2/events/:event_id/accesses");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/events/:event_id/accesses"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  [
    {
    "id": 1,
    "name": "Main",
    "mode": "permanent"
    },
      {
    "id": 2,
    "name": "VIP",
    "mode": "permanent"
    },
      {
    "id": 3,
    "name": "Free Drink",
    "mode": "counter"
    },
      {
    "id": 4,
    "name": "Día Viernes",
    "mode": "permanent"
    },
      {
    "id": 5,
    "name": "Noche Viernes",
    "mode": "permanent"
    }
  ]
}

Path Params

:event_id
int32
required

Event id

 
Suggest Edits

/accesses

Create a new access

 

Basic Auth

 Authentication is required for this endpoint.
posthttps://sandbox.glownet.com/api/v2/events/:event_id/accesses
{
	"access": {
    "name": "Friday-13",
  	"mode": "counter"
  }
}
A binary file was returned

You couldn't be authenticated

{
	"id": 6,
	"name": "Friday-13",
	"mode": "counter"
}

Path Params

:event_id
int32
required

Event id

Body Params

access
object
 
access.name
string
required

Access name

access.mode
string

Access mode

 
Suggest Edits

/accesses/:id

Get an access of an event

 

Basic Auth

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

var options = { method: 'GET',
  url: 'https://sandbox.glownet.com/api/v2/events/:event_id/accesses/: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/api/v2/events/:event_id/accesses/: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/api/v2/events/:event_id/accesses/:id");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/events/:event_id/accesses/:id"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

{
	"id": 6,
	"name": "Friday-13",
	"mode": "counter"
}

Path Params

:event_id
int32
required

Event id

:id
int32
required

Access id

 
Suggest Edits

/accesses/:id

Modify an access of an event

 

Basic Auth

 Authentication is required for this endpoint.
patchhttps://sandbox.glownet.com/api/v2/events/:event_id/accesses/:id
{
	"access": {
  	"mode": "permanent_strict" 
  }
}
A binary file was returned

You couldn't be authenticated

{
	"id": 6,
	"name": "Friday-13",
	"mode": "permanent_strict"
}

Path Params

:event_id
int32
required

Event id

:id
int32
required

Access id

 
Suggest Edits

/accesses/:id

Modify an access of an event

 

Basic Auth

 Authentication is required for this endpoint.
puthttps://sandbox.glownet.com/api/v2/events/:event_id/accesses/:id
{
	"access": {
  	"mode": "permanent_strict" 
  }
}
A binary file was returned

You couldn't be authenticated

{
	"id": 6,
	"name": "Friday-13",
	"mode": "permanent_strict"
}

Path Params

:event_id
int32
required

Event id

:id
int32
required

Access id

 
Suggest Edits

/accesses/:id

Delete an access of an event

 

Basic Auth

 Authentication is required for this endpoint.
deletehttps://sandbox.glownet.com/api/v2/events/:event_id/accesses/:id
curl --request DELETE \
  --url https://sandbox.glownet.com/api/v2/events/:event_id/accesses/:id
var request = require("request");

var options = { method: 'DELETE',
  url: 'https://sandbox.glownet.com/api/v2/events/:event_id/accesses/: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/api/v2/events/:event_id/accesses/:id")

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/api/v2/events/:event_id/accesses/:id");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/events/:event_id/accesses/:id"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  error:  "Forbidden access"
}

Path Params

:event_id
int32
required

Event id

:id
int32
required

Access id

 

This feature is not available yet.

Suggest Edits

/products

Get all products of an event

 

Basic Auth

 Authentication is required for this endpoint.
gethttps://sandbox.glownet.com/api/v2/events/event_id/stations/station_id/products
curl --request GET \
  --url https://sandbox.glownet.com/api/v2/events/event_id/stations/station_id/products
var request = require("request");

var options = { method: 'GET',
  url: 'https://sandbox.glownet.com/api/v2/events/event_id/stations/station_id/products' };

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/api/v2/events/event_id/stations/station_id/products")

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/api/v2/events/event_id/stations/station_id/products");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/events/event_id/stations/station_id/products"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

[
  {
    "id": 18763,
    "name": "Long Drink",
    "description": "",
    "is_alcohol": true,
    "vat": 21,
    "price": 10,
    "position": 1
  },
  {
    "id": 18764,
    "name": "Beer",
    "description": null,
    "is_alcohol": true,
    "vat": 21,
    "price": 5,
    "position": 2
  },
  {
    "id": 18765,
    "name": "Shots",
    "description": null,
    "is_alcohol": true,
    "vat": 21,
    "price": 4,
    "position": 3
  }
]

Path Params

event_id
int32
required

Event id

station_id
int32
required

Station id

 
Suggest Edits

/products

Create a new product of an event

 

Basic Auth

 Authentication is required for this endpoint.
posthttps://sandbox.glownet.com/api/v2/events/event_id/stations/station_id/products
{
	"product": {
    "name": "Red Bull XXL",
    "price": 3
  }
}
A binary file was returned

You couldn't be authenticated

{
    "id": 19439,
    "name": "Red Bull XXL",
    "description": null,
    "is_alcohol": false,
    "vat": 0,
    "price": 3,
    "position": 18
}

Path Params

event_id
int32
required

Event id

station_id
int32
required

Station id

Body Params

product
object
 
product.name
string
required

Product name

product.description
string

Product description

product.is_alcohol
boolean

Product is alcohol or not?

product.vat
string

Product VAT

product.price
float
required

Product price

 
Suggest Edits

/products/:id

Get a product of an event

 

Basic Auth

 Authentication is required for this endpoint.
gethttps://sandbox.glownet.com/api/v2/events/event_id/stations/station_id/products/id
curl --request GET \
  --url https://sandbox.glownet.com/api/v2/events/event_id/stations/station_id/products/id
var request = require("request");

var options = { method: 'GET',
  url: 'https://sandbox.glownet.com/api/v2/events/event_id/stations/station_id/products/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/api/v2/events/event_id/stations/station_id/products/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/api/v2/events/event_id/stations/station_id/products/id");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/events/event_id/stations/station_id/products/id"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "id": 19439,
  "name": "Red Bull XXL",
  "description": null,
  "is_alcohol": false,
  "vat": 0,
  "price": 3,
  "position": 18
}

Path Params

event_id
int32
required

Event id

station_id
int32
required

Station id

id
int32
required

Product id

 
Suggest Edits

/products/:id

Create a new product of an event

 

Basic Auth

 Authentication is required for this endpoint.
patchhttps://sandbox.glownet.com/api/v2/events/event_id/stations/station_id/products
{
	"product": {
    "name": "Red Bull XXXL",
    "price": 4
  }
}
A binary file was returned

You couldn't be authenticated

{
    "id": 19439,
    "name": "Red Bull XXXL",
    "description": null,
    "is_alcohol": false,
    "vat": 0,
    "price": 4,
    "position": 18
}

Path Params

event_id
int32
required

Event id

station_id
int32
required

Station id

id
int32
required

Product id

Body Params

product
object
 
product.name
string

Product name

product.description
string

Product description

product.is_alcohol
boolean

Product is alcohol or not?

product.vat
string

Product VAT

product.price
float

Product price

 
Suggest Edits

/products/:id

Create a new product of an event

 

Basic Auth

 Authentication is required for this endpoint.
puthttps://sandbox.glownet.com/api/v2/events/event_id/stations/station_id/products
{
	"product": {
    "name": "Red Bull XXXL",
    "price": 4
  }
}
A binary file was returned

You couldn't be authenticated

{
    "id": 19439,
    "name": "Red Bull XXXL",
    "description": null,
    "is_alcohol": false,
    "vat": 0,
    "price": 4,
    "position": 18
}

Path Params

event_id
int32
required

Event id

station_id
int32
required

Station id

id
int32
required

Product id

Body Params

product
object
 
product.name
string

Product name

product.description
string

Product description

product.is_alcohol
boolean

Product is alcohol or not?

product.vat
string

Product VAT

product.price
float

Product price

 
Suggest Edits

/products/:id

Delete a product of an event

 

Basic Auth

 Authentication is required for this endpoint.
deletehttps://sandbox.glownet.com/api/v2/events/event_id/stations/station_id/products/id
curl --request DELETE \
  --url https://sandbox.glownet.com/api/v2/events/event_id/stations/station_id/products/id
var request = require("request");

var options = { method: 'DELETE',
  url: 'https://sandbox.glownet.com/api/v2/events/event_id/stations/station_id/products/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/api/v2/events/event_id/stations/station_id/products/id")

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/api/v2/events/event_id/stations/station_id/products/id");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/events/event_id/stations/station_id/products/id"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

{
	error:  "Forbidden access"
}

Path Params

event_id
int32
required

Event id

station_id
int32
required

Station id

id
int32
required

Product id

 

This feature is not available yet.

Suggest Edits

/refunds

Get all refunds of an event

 

Basic Auth

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

var options = { method: 'GET',
  url: 'https://sandbox.glownet.com/api/v2/events/event_id/refunds' };

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/api/v2/events/event_id/refunds")

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/api/v2/events/event_id/refunds");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/events/event_id/refunds"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

[
  {
    "id": 19984,
    "amount": "5.0",
    "status": "started",
    "fee": "0.0",
    "field_a": null,
    "field_b": null,
    "customer_id": 32657
  },
  {
    "id": 20738,
    "amount": "10.6",
    "status": "started",
    "fee": "2.0",
    "field_a": null,
    "field_b": null,
    "customer_id": 33452
  },
  {
    "id": 20747,
    "amount": "16.5",
    "status": "started",
    "fee": "2.0",
    "field_a": null,
    "field_b": null,
    "customer_id": 32348
  }
]

Path Params

event_id
int32
required

Event id

 
Suggest Edits

/refunds

Create a new refund of an event

 

Basic Auth

 Authentication is required for this endpoint.
posthttps://sandbox.glownet.com/api/v2/events/event_id/refunds
{
	"refund": {
    "amount": 30,
    "customer_id": "35774",
    "gateway": "paypal"
  }
}
A binary file was returned

You couldn't be authenticated

{
  "id": 35775,
  "amount": "30.0",
  "status": null,
  "fee": "0.0",
  "field_a": null,
  "field_b": null,
  "customer_id": 73566
}

Path Params

event_id
int32
required

Event id

Body Params

refund
object
 
refund.amount
float
required

Refund amount

refund.status
string

Refund status

refund.fee
float

Refund fee

refund.field_a
string

Bank account

refund.field_b
string

Bank account

refund.customer_id
int32
required

Customer id

refund.gateway
string
required

Gateway

 
Suggest Edits

/refunds/:id

Get a refund of an event

 

Basic Auth

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

var options = { method: 'GET',
  url: 'https://sandbox.glownet.com/api/v2/events/event_id/refunds' };

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/api/v2/events/event_id/refunds")

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/api/v2/events/event_id/refunds");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/events/event_id/refunds"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

{
    "id": 19984,
    "amount": "5.0",
    "status": "started",
    "fee": "0.0",
    "field_a": null,
    "field_b": null,
    "customer_id": 32657
}

Path Params

event_id
int32
required

Event id

id
int32
required

Refund id

 
Suggest Edits

/refunds/:id

Modify a refund of an event

 

Basic Auth

 Authentication is required for this endpoint.
patchhttps://sandbox.glownet.com/api/v2/events/event_id/refunds/id
{
	"refund": {
    "amount": 50
  }
}
A binary file was returned

You couldn't be authenticated

{
  "id": 35775,
  "amount": "50.0",
  "status": null,
  "fee": "0.0",
  "field_a": null,
  "field_b": null,
  "customer_id": 73566
}

Path Params

event_id
int32
required

Event id

id
int32
required

Refund id

Body Params

refund
object
 
refund.amount
float

Refund amount

refund.status
string

Refund status

refund.fee
float

Refund fee

refund.field_a
string

Bank account

refund.field_b
string

Bank account

refund.customer_id
int32

Customer id

refund.gateway
string

Gateway

 
Suggest Edits

/refunds/:id

Modify a refund of an event

 

Basic Auth

 Authentication is required for this endpoint.
puthttps://sandbox.glownet.com/api/v2/events/event_id/refunds/id
{
	"refund": {
    "amount": 50
  }
}
A binary file was returned

You couldn't be authenticated

{
  "id": 35775,
  "amount": "50.0",
  "status": null,
  "fee": "0.0",
  "field_a": null,
  "field_b": null,
  "customer_id": 73566
}

Path Params

event_id
int32
required

Event id

id
int32
required

Refund id

Body Params

refund
object
 
refund.amount
float

Refund amount

refund.status
string

Refund status

refund.fee
float

Refund fee

refund.field_a
string

Bank account

refund.field_b
string

Bank account

refund.customer_id
int32

Customer id

refund.gateway
string

Gateway

 
Suggest Edits

/refunds/:id

Delete a refund of an event

 

Basic Auth

 Authentication is required for this endpoint.
deletehttps://sandbox.glownet.com/api/v2/events/event_id/refunds
curl --request DELETE \
  --url https://sandbox.glownet.com/api/v2/events/event_id/refunds
var request = require("request");

var options = { method: 'DELETE',
  url: 'https://sandbox.glownet.com/api/v2/events/event_id/refunds' };

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/api/v2/events/event_id/refunds")

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/api/v2/events/event_id/refunds");

xhr.send(data);
import requests

url = "https://sandbox.glownet.com/api/v2/events/event_id/refunds"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

{
	error:  "Forbidden access"
}

Path Params

event_id
int32
required

Event id

id
int32
required

Refund id

 

This feature is not available yet.

Suggest Edits

/refunds/:id/complete

Modify a refund of an event

 

Basic Auth

 Authentication is required for this endpoint.
puthttps://sandbox.glownet.com/api/v2/events/event_id/refunds/id/complete
{
	"refund": {
    "status": null
  }
}
A binary file was returned

You couldn't be authenticated

{
  "id": 35775,
  "amount": "50.0",
  "status": "completed",
  "fee": "0.0",
  "field_a": null,
  "field_b": null,
  "customer_id": 73566
}

Path Params

event_id
int32
required

Event id

id
int32
required

Refund id

Body Params

refund
object
 
refund.status
string

Refund status