Reserve a ticket selection
curl --request POST \
--url https://api.underpass.com.co/api/checkout/holds \
--header 'Content-Type: application/json' \
--data '
{
"event_id": "<string>",
"session_key": "<string>",
"items": [
{
"ticket_type_id": "<string>",
"selling_stage_id": "<string>",
"quantity": 2,
"performance_id": "<string>",
"seat_ids": [
"<string>"
]
}
],
"queue_pass": "<string>"
}
'import requests
url = "https://api.underpass.com.co/api/checkout/holds"
payload = {
"event_id": "<string>",
"session_key": "<string>",
"items": [
{
"ticket_type_id": "<string>",
"selling_stage_id": "<string>",
"quantity": 2,
"performance_id": "<string>",
"seat_ids": ["<string>"]
}
],
"queue_pass": "<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>',
items: [
{
ticket_type_id: '<string>',
selling_stage_id: '<string>',
quantity: 2,
performance_id: '<string>',
seat_ids: ['<string>']
}
],
queue_pass: '<string>'
})
};
fetch('https://api.underpass.com.co/api/checkout/holds', 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/holds",
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>',
'items' => [
[
'ticket_type_id' => '<string>',
'selling_stage_id' => '<string>',
'quantity' => 2,
'performance_id' => '<string>',
'seat_ids' => [
'<string>'
]
]
],
'queue_pass' => '<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/holds"
payload := strings.NewReader("{\n \"event_id\": \"<string>\",\n \"session_key\": \"<string>\",\n \"items\": [\n {\n \"ticket_type_id\": \"<string>\",\n \"selling_stage_id\": \"<string>\",\n \"quantity\": 2,\n \"performance_id\": \"<string>\",\n \"seat_ids\": [\n \"<string>\"\n ]\n }\n ],\n \"queue_pass\": \"<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/holds")
.header("Content-Type", "application/json")
.body("{\n \"event_id\": \"<string>\",\n \"session_key\": \"<string>\",\n \"items\": [\n {\n \"ticket_type_id\": \"<string>\",\n \"selling_stage_id\": \"<string>\",\n \"quantity\": 2,\n \"performance_id\": \"<string>\",\n \"seat_ids\": [\n \"<string>\"\n ]\n }\n ],\n \"queue_pass\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.underpass.com.co/api/checkout/holds")
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 \"items\": [\n {\n \"ticket_type_id\": \"<string>\",\n \"selling_stage_id\": \"<string>\",\n \"quantity\": 2,\n \"performance_id\": \"<string>\",\n \"seat_ids\": [\n \"<string>\"\n ]\n }\n ],\n \"queue_pass\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"event_id": "<string>",
"status": "ACTIVE",
"expires_at": "2023-11-07T05:31:56Z",
"order_id": "<string>",
"items": [
{
"ticket_type_id": "<string>",
"selling_stage_id": "<string>",
"performance_id": "<string>",
"quantity": 123,
"ticket_count": 123,
"seat_ids": [
"<string>"
],
"seat_labels": [
"<string>"
]
}
]
}{
"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"
}{
"statusCode": 123,
"code": "<string>",
"message": "<string>",
"detail": {},
"timestamp": "2023-11-07T05:31:56Z"
}Checkout
Reserve a ticket selection
Sets the selected tickets aside for the session for the event’s hold window (event.hold_minutes); they leave everyone else’s available. Replaces the session’s previous hold on this event. On a NUMBERED locality without seat_ids the best available contiguous seats are assigned.
POST
/
api
/
checkout
/
holds
Reserve a ticket selection
curl --request POST \
--url https://api.underpass.com.co/api/checkout/holds \
--header 'Content-Type: application/json' \
--data '
{
"event_id": "<string>",
"session_key": "<string>",
"items": [
{
"ticket_type_id": "<string>",
"selling_stage_id": "<string>",
"quantity": 2,
"performance_id": "<string>",
"seat_ids": [
"<string>"
]
}
],
"queue_pass": "<string>"
}
'import requests
url = "https://api.underpass.com.co/api/checkout/holds"
payload = {
"event_id": "<string>",
"session_key": "<string>",
"items": [
{
"ticket_type_id": "<string>",
"selling_stage_id": "<string>",
"quantity": 2,
"performance_id": "<string>",
"seat_ids": ["<string>"]
}
],
"queue_pass": "<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>',
items: [
{
ticket_type_id: '<string>',
selling_stage_id: '<string>',
quantity: 2,
performance_id: '<string>',
seat_ids: ['<string>']
}
],
queue_pass: '<string>'
})
};
fetch('https://api.underpass.com.co/api/checkout/holds', 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/holds",
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>',
'items' => [
[
'ticket_type_id' => '<string>',
'selling_stage_id' => '<string>',
'quantity' => 2,
'performance_id' => '<string>',
'seat_ids' => [
'<string>'
]
]
],
'queue_pass' => '<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/holds"
payload := strings.NewReader("{\n \"event_id\": \"<string>\",\n \"session_key\": \"<string>\",\n \"items\": [\n {\n \"ticket_type_id\": \"<string>\",\n \"selling_stage_id\": \"<string>\",\n \"quantity\": 2,\n \"performance_id\": \"<string>\",\n \"seat_ids\": [\n \"<string>\"\n ]\n }\n ],\n \"queue_pass\": \"<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/holds")
.header("Content-Type", "application/json")
.body("{\n \"event_id\": \"<string>\",\n \"session_key\": \"<string>\",\n \"items\": [\n {\n \"ticket_type_id\": \"<string>\",\n \"selling_stage_id\": \"<string>\",\n \"quantity\": 2,\n \"performance_id\": \"<string>\",\n \"seat_ids\": [\n \"<string>\"\n ]\n }\n ],\n \"queue_pass\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.underpass.com.co/api/checkout/holds")
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 \"items\": [\n {\n \"ticket_type_id\": \"<string>\",\n \"selling_stage_id\": \"<string>\",\n \"quantity\": 2,\n \"performance_id\": \"<string>\",\n \"seat_ids\": [\n \"<string>\"\n ]\n }\n ],\n \"queue_pass\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"event_id": "<string>",
"status": "ACTIVE",
"expires_at": "2023-11-07T05:31:56Z",
"order_id": "<string>",
"items": [
{
"ticket_type_id": "<string>",
"selling_stage_id": "<string>",
"performance_id": "<string>",
"quantity": 123,
"ticket_count": 123,
"seat_ids": [
"<string>"
],
"seat_labels": [
"<string>"
]
}
]
}{
"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"
}{
"statusCode": 123,
"code": "<string>",
"message": "<string>",
"detail": {},
"timestamp": "2023-11-07T05:31:56Z"
}Body
application/json
Opaque per-browser id, 8 to 128 characters. Owns the hold; one ACTIVE hold per session per event (a new POST replaces it).
Required string length:
8 - 1281 to 20 items.
Required array length:
1 - 20 elementsShow child attributes
Show child attributes
Waiting-room pass, required when the event has waiting_room.

