Join (or return to) an event's waiting room
curl --request POST \
--url https://api.underpass.com.co/api/checkout/queue \
--header 'Content-Type: application/json' \
--data '
{
"event_id": "<string>",
"session_key": "<string>"
}
'import requests
url = "https://api.underpass.com.co/api/checkout/queue"
payload = {
"event_id": "<string>",
"session_key": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({event_id: '<string>', session_key: '<string>'})
};
fetch('https://api.underpass.com.co/api/checkout/queue', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.underpass.com.co/api/checkout/queue",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'event_id' => '<string>',
'session_key' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.underpass.com.co/api/checkout/queue"
payload := strings.NewReader("{\n \"event_id\": \"<string>\",\n \"session_key\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.underpass.com.co/api/checkout/queue")
.header("Content-Type", "application/json")
.body("{\n \"event_id\": \"<string>\",\n \"session_key\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.underpass.com.co/api/checkout/queue")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"event_id\": \"<string>\",\n \"session_key\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"event_id": "<string>",
"status": "WAITING",
"position": 123,
"waiting_ahead": 123,
"estimated_minutes": 123,
"open": true,
"opens_at": "2023-11-07T05:31:56Z",
"admitted_at": "2023-11-07T05:31:56Z",
"pass_expires_at": "2023-11-07T05:31:56Z",
"rate": 123
}{
"statusCode": 123,
"code": "<string>",
"message": "<string>",
"detail": {},
"timestamp": "2023-11-07T05:31:56Z"
}{
"statusCode": 123,
"code": "<string>",
"message": "<string>",
"detail": {},
"timestamp": "2023-11-07T05:31:56Z"
}Checkout
Join (or return to) an event's waiting room
Admits on the spot when the doors are open and the minute’s budget allows; otherwise returns the place in line. The entry id is the pass to send as queue_pass once ADMITTED. An expired or left entry re-joins at the back.
POST
/
api
/
checkout
/
queue
Join (or return to) an event's waiting room
curl --request POST \
--url https://api.underpass.com.co/api/checkout/queue \
--header 'Content-Type: application/json' \
--data '
{
"event_id": "<string>",
"session_key": "<string>"
}
'import requests
url = "https://api.underpass.com.co/api/checkout/queue"
payload = {
"event_id": "<string>",
"session_key": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({event_id: '<string>', session_key: '<string>'})
};
fetch('https://api.underpass.com.co/api/checkout/queue', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.underpass.com.co/api/checkout/queue",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'event_id' => '<string>',
'session_key' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.underpass.com.co/api/checkout/queue"
payload := strings.NewReader("{\n \"event_id\": \"<string>\",\n \"session_key\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.underpass.com.co/api/checkout/queue")
.header("Content-Type", "application/json")
.body("{\n \"event_id\": \"<string>\",\n \"session_key\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.underpass.com.co/api/checkout/queue")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"event_id\": \"<string>\",\n \"session_key\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"event_id": "<string>",
"status": "WAITING",
"position": 123,
"waiting_ahead": 123,
"estimated_minutes": 123,
"open": true,
"opens_at": "2023-11-07T05:31:56Z",
"admitted_at": "2023-11-07T05:31:56Z",
"pass_expires_at": "2023-11-07T05:31:56Z",
"rate": 123
}{
"statusCode": 123,
"code": "<string>",
"message": "<string>",
"detail": {},
"timestamp": "2023-11-07T05:31:56Z"
}{
"statusCode": 123,
"code": "<string>",
"message": "<string>",
"detail": {},
"timestamp": "2023-11-07T05:31:56Z"
}Body
application/json
Response
In line, or admitted
The pass: send as queue_pass once status is ADMITTED.
Available options:
WAITING, ADMITTED, EXPIRED, LEFT 1-based place in line; null while pre-queuing (drawn at opening) or not waiting.
Doors open (admission running)?
Admissions per minute.

