Get ticket rate by slug
curl --request GET \
--url https://channels-service-alpha.fourvenues.com/ticket-rates/by-slug/{ticketRateSlug} \
--header 'X-Api-Key: <api-key>'import requests
url = "https://channels-service-alpha.fourvenues.com/ticket-rates/by-slug/{ticketRateSlug}"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://channels-service-alpha.fourvenues.com/ticket-rates/by-slug/{ticketRateSlug}', 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://channels-service-alpha.fourvenues.com/ticket-rates/by-slug/{ticketRateSlug}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://channels-service-alpha.fourvenues.com/ticket-rates/by-slug/{ticketRateSlug}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://channels-service-alpha.fourvenues.com/ticket-rates/by-slug/{ticketRateSlug}")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://channels-service-alpha.fourvenues.com/ticket-rates/by-slug/{ticketRateSlug}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"_id": "<string>",
"organization_id": "<string>",
"event_id": "<string>",
"name": "<string>",
"slug": "<string>",
"valid_from": "<string>",
"complete": true,
"type": "<string>",
"prices": [
{
"_id": "<string>",
"name": "<string>",
"price": 123,
"fee_type": "fixed",
"fee_quantity": 123,
"includes": "<string>",
"additional_info": "<string>",
"quantity": 123,
"valid_until": "<string>",
"used": 123
}
],
"supplements": [
{
"_id": "<string>",
"label": "<string>",
"price": 123,
"has_fake_price": true,
"fake_price": 123,
"description": "<string>",
"product_quantity": 123,
"purchase_limit": {
"min_quantity": 123,
"max_quantity": 123,
"is_unlimited": true
},
"redemption_deadline": {
"is_expiration_enabled": true,
"expiration_deadline": 123
},
"service_charge_amount": 123,
"service_charge_type": "fixed"
}
],
"min": 123,
"max": 123,
"nominative": true,
"fields": [
{
"slug": "<string>",
"type": "<string>",
"label": "<string>",
"required": true,
"options": [
{
"text": "<string>",
"value": "<string>"
}
]
}
],
"questions": [
{
"_id": "<string>",
"label": "<string>",
"type": "text",
"items": [
"<string>"
],
"required": true
}
],
"has_discount_codes_enabled": true,
"show_all_prices": true,
"warranty": {
"enabled": true,
"is_fixed": true,
"fixed_price": 123,
"percentage": 123,
"hours": 123
},
"available": true,
"current_price": {
"_id": "<string>",
"name": "<string>",
"price": 123,
"fee_type": "fixed",
"fee_quantity": 123,
"includes": "<string>",
"additional_info": "<string>",
"quantity": 123,
"valid_until": "<string>",
"used": 123
},
"availability": {
"sold": 123,
"available": 123
}
},
"success": true
}TicketRates
Get ticket rate by slug
Get ticket rate by slug
GET
/
ticket-rates
/
by-slug
/
{ticketRateSlug}
Get ticket rate by slug
curl --request GET \
--url https://channels-service-alpha.fourvenues.com/ticket-rates/by-slug/{ticketRateSlug} \
--header 'X-Api-Key: <api-key>'import requests
url = "https://channels-service-alpha.fourvenues.com/ticket-rates/by-slug/{ticketRateSlug}"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://channels-service-alpha.fourvenues.com/ticket-rates/by-slug/{ticketRateSlug}', 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://channels-service-alpha.fourvenues.com/ticket-rates/by-slug/{ticketRateSlug}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://channels-service-alpha.fourvenues.com/ticket-rates/by-slug/{ticketRateSlug}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://channels-service-alpha.fourvenues.com/ticket-rates/by-slug/{ticketRateSlug}")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://channels-service-alpha.fourvenues.com/ticket-rates/by-slug/{ticketRateSlug}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"_id": "<string>",
"organization_id": "<string>",
"event_id": "<string>",
"name": "<string>",
"slug": "<string>",
"valid_from": "<string>",
"complete": true,
"type": "<string>",
"prices": [
{
"_id": "<string>",
"name": "<string>",
"price": 123,
"fee_type": "fixed",
"fee_quantity": 123,
"includes": "<string>",
"additional_info": "<string>",
"quantity": 123,
"valid_until": "<string>",
"used": 123
}
],
"supplements": [
{
"_id": "<string>",
"label": "<string>",
"price": 123,
"has_fake_price": true,
"fake_price": 123,
"description": "<string>",
"product_quantity": 123,
"purchase_limit": {
"min_quantity": 123,
"max_quantity": 123,
"is_unlimited": true
},
"redemption_deadline": {
"is_expiration_enabled": true,
"expiration_deadline": 123
},
"service_charge_amount": 123,
"service_charge_type": "fixed"
}
],
"min": 123,
"max": 123,
"nominative": true,
"fields": [
{
"slug": "<string>",
"type": "<string>",
"label": "<string>",
"required": true,
"options": [
{
"text": "<string>",
"value": "<string>"
}
]
}
],
"questions": [
{
"_id": "<string>",
"label": "<string>",
"type": "text",
"items": [
"<string>"
],
"required": true
}
],
"has_discount_codes_enabled": true,
"show_all_prices": true,
"warranty": {
"enabled": true,
"is_fixed": true,
"fixed_price": 123,
"percentage": 123,
"hours": 123
},
"available": true,
"current_price": {
"_id": "<string>",
"name": "<string>",
"price": 123,
"fee_type": "fixed",
"fee_quantity": 123,
"includes": "<string>",
"additional_info": "<string>",
"quantity": 123,
"valid_until": "<string>",
"used": 123
},
"availability": {
"sold": 123,
"available": 123
}
},
"success": true
}Authorizations
Path Parameters
Ticket rate slug
Example:
"abcde12345"
Query Parameters
Event of the ticke rate
Response
OK
The wire contract for a ticket rate, AT THE LATEST VERSION.
This is the single source of truth: toTicketRateResponse is annotated to
return it (so the code cannot drift from it without a compile error), and the
OpenAPI spec + docs + breaking-change gate are all generated from it.
Dates are ISO-8601 strings — the real wire form res.json produces from the
underlying Moment values.
Nested relations are typed inline (or via a shared $ref for prices) to
match exactly what the mappers emit:
prices/current_pricereusePriceTicketRateResponse(toPriceTicketRateResponse).warrantymirrorstoWarrantyResponse:enabledis always present and the remaining fields are only emitted whenenabledistrue.supplementsmirrorstoSupplementResponse(withpurchase_limit/redemption_deadlinecoming from theirtoMongoDocument()shapes).questionsmirrorstoTicketRateQuestionResponse.fieldsmirrorsTicketRate.translateFieldsFromMongoDBToTicketRateFields, a list of form-field descriptors.
Show child attributes
Show child attributes