Add a ticket type
curl --request POST \
--url https://connect.laces.run/v1/events/{eventId}/ticket-types \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"name": "5K",
"price_minor": 50000,
"capacity": 200,
"distance_km": 5
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({name: '5K', price_minor: 50000, capacity: 200, distance_km: 5})
};
fetch('https://connect.laces.run/v1/events/{eventId}/ticket-types', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://connect.laces.run/v1/events/{eventId}/ticket-types"
payload = {
"name": "5K",
"price_minor": 50000,
"capacity": 200,
"distance_km": 5
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://connect.laces.run/v1/events/{eventId}/ticket-types",
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([
'name' => '5K',
'price_minor' => 50000,
'capacity' => 200,
'distance_km' => 5
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{}Events
Add a paid ticket type to a Laces event
POST /events//ticket-types: add a paid ticket type to an event your key created. Needs events:write and an Idempotency-Key.
POST
/
events
/
{eventId}
/
ticket-types
Add a ticket type
curl --request POST \
--url https://connect.laces.run/v1/events/{eventId}/ticket-types \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"name": "5K",
"price_minor": 50000,
"capacity": 200,
"distance_km": 5
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({name: '5K', price_minor: 50000, capacity: 200, distance_km: 5})
};
fetch('https://connect.laces.run/v1/events/{eventId}/ticket-types', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://connect.laces.run/v1/events/{eventId}/ticket-types"
payload = {
"name": "5K",
"price_minor": 50000,
"capacity": 200,
"distance_km": 5
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://connect.laces.run/v1/events/{eventId}/ticket-types",
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([
'name' => '5K',
'price_minor' => 50000,
'capacity' => 200,
'distance_km' => 5
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{}Authorizations
bearerAuthoauth2
Headers
Body
application/json
A flat body. Paid tickets only. Laces sets visibility (public), show_remaining (true), has_kit (false) and kit_colors (empty).
Response
Already created (idempotent replay): the stored response of the first call.
The response is of type object.
Last modified on November 24, 2026