Hold seats
curl --request POST \
--url https://www.gomry.com/api/v1/distribution/holds \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"external_ref": "<string>",
"product_id": "<string>",
"start": "<string>",
"lines": [
{
"offer_id": "<string>",
"quantity": 123
}
],
"ttl_seconds": 123
}
'import requests
url = "https://www.gomry.com/api/v1/distribution/holds"
payload = {
"external_ref": "<string>",
"product_id": "<string>",
"start": "<string>",
"lines": [
{
"offer_id": "<string>",
"quantity": 123
}
],
"ttl_seconds": 123
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
external_ref: '<string>',
product_id: '<string>',
start: '<string>',
lines: [{offer_id: '<string>', quantity: 123}],
ttl_seconds: 123
})
};
fetch('https://www.gomry.com/api/v1/distribution/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://www.gomry.com/api/v1/distribution/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([
'external_ref' => '<string>',
'product_id' => '<string>',
'start' => '<string>',
'lines' => [
[
'offer_id' => '<string>',
'quantity' => 123
]
],
'ttl_seconds' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://www.gomry.com/api/v1/distribution/holds"
payload := strings.NewReader("{\n \"external_ref\": \"<string>\",\n \"product_id\": \"<string>\",\n \"start\": \"<string>\",\n \"lines\": [\n {\n \"offer_id\": \"<string>\",\n \"quantity\": 123\n }\n ],\n \"ttl_seconds\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
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://www.gomry.com/api/v1/distribution/holds")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"external_ref\": \"<string>\",\n \"product_id\": \"<string>\",\n \"start\": \"<string>\",\n \"lines\": [\n {\n \"offer_id\": \"<string>\",\n \"quantity\": 123\n }\n ],\n \"ttl_seconds\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.gomry.com/api/v1/distribution/holds")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"external_ref\": \"<string>\",\n \"product_id\": \"<string>\",\n \"start\": \"<string>\",\n \"lines\": [\n {\n \"offer_id\": \"<string>\",\n \"quantity\": 123\n }\n ],\n \"ttl_seconds\": 123\n}"
response = http.request(request)
puts response.read_body{
"hold_id": "<string>",
"external_ref": "<string>",
"status": "<string>",
"product_id": "<string>",
"start": "<string>",
"lines": [
{}
],
"expires_at": "<string>"
}Holds
Hold seats
Reserve seats on an experience session while your customer pays. Optional.
Hold seats
curl --request POST \
--url https://www.gomry.com/api/v1/distribution/holds \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"external_ref": "<string>",
"product_id": "<string>",
"start": "<string>",
"lines": [
{
"offer_id": "<string>",
"quantity": 123
}
],
"ttl_seconds": 123
}
'import requests
url = "https://www.gomry.com/api/v1/distribution/holds"
payload = {
"external_ref": "<string>",
"product_id": "<string>",
"start": "<string>",
"lines": [
{
"offer_id": "<string>",
"quantity": 123
}
],
"ttl_seconds": 123
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
external_ref: '<string>',
product_id: '<string>',
start: '<string>',
lines: [{offer_id: '<string>', quantity: 123}],
ttl_seconds: 123
})
};
fetch('https://www.gomry.com/api/v1/distribution/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://www.gomry.com/api/v1/distribution/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([
'external_ref' => '<string>',
'product_id' => '<string>',
'start' => '<string>',
'lines' => [
[
'offer_id' => '<string>',
'quantity' => 123
]
],
'ttl_seconds' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://www.gomry.com/api/v1/distribution/holds"
payload := strings.NewReader("{\n \"external_ref\": \"<string>\",\n \"product_id\": \"<string>\",\n \"start\": \"<string>\",\n \"lines\": [\n {\n \"offer_id\": \"<string>\",\n \"quantity\": 123\n }\n ],\n \"ttl_seconds\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
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://www.gomry.com/api/v1/distribution/holds")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"external_ref\": \"<string>\",\n \"product_id\": \"<string>\",\n \"start\": \"<string>\",\n \"lines\": [\n {\n \"offer_id\": \"<string>\",\n \"quantity\": 123\n }\n ],\n \"ttl_seconds\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.gomry.com/api/v1/distribution/holds")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"external_ref\": \"<string>\",\n \"product_id\": \"<string>\",\n \"start\": \"<string>\",\n \"lines\": [\n {\n \"offer_id\": \"<string>\",\n \"quantity\": 123\n }\n ],\n \"ttl_seconds\": 123\n}"
response = http.request(request)
puts response.read_body{
"hold_id": "<string>",
"external_ref": "<string>",
"status": "<string>",
"product_id": "<string>",
"start": "<string>",
"lines": [
{}
],
"expires_at": "<string>"
}Seats stay reserved for
ttl_seconds, then return to sale. Holds are for experience products; an event answers not_supported: place the order directly.
Your cart or reservation id. 1 to 128 letters, digits,
., _, : or -. Sending it again returns the same hold.The session’s
start.utc, from the product’s sessions.curl -X POST https://www.gomry.com/api/v1/distribution/holds \
-H "Authorization: Bearer gdk_..." \
-H "Content-Type: application/json" \
-d '{
"external_ref": "your-cart-1",
"product_id": "exp_1y9Gr0O6FGmS38BSQcJf",
"start": "2026-12-01T10:00:00.000Z",
"lines": [{ "offer_id": "tc-adult", "quantity": 2 }],
"ttl_seconds": 1800
}'
Response
Answers201 with the hold:
Pass it as
hold_id when you place the order.
