curl --request POST \
--url https://apiv2.gomarketbox.com/v1/projects/{projectId}/holds \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"intervals": [
{
"supplierId": "sup_01kv60qgnef2kt3pvqgwmkbzfr",
"startUtc": "2026-07-15T14:00:00.000Z",
"endUtc": "2026-07-15T15:00:00.000Z",
"bookingTz": "America/Toronto",
"locationType": "TRAVEL_ZONE",
"locationId": "stz_01kv60qgs4e4nbjhzradnqtj0h",
"latitude": 43.6532,
"longitude": -79.3832,
"address": {
"addressOneLine": "10 Main St, Toronto, ON M5V 1A1, Canada",
"streetNumber": "10",
"streetName": "Main St",
"city": "Toronto",
"state": "ON",
"country": "CA",
"zipCode": "M5V 1A1",
"unitNumber": "4B"
}
}
],
"slateId": "slate_01kv7n10k0fnptwk81wkm59vj7",
"slotIds": [
"<string>"
],
"reservationId": "resv_01kv8p20m1gnqvxl92xln6awk8",
"heldBy": "checkout_9f2c1b",
"holdDurationMins": 10
}
'import requests
url = "https://apiv2.gomarketbox.com/v1/projects/{projectId}/holds"
payload = {
"intervals": [
{
"supplierId": "sup_01kv60qgnef2kt3pvqgwmkbzfr",
"startUtc": "2026-07-15T14:00:00.000Z",
"endUtc": "2026-07-15T15:00:00.000Z",
"bookingTz": "America/Toronto",
"locationType": "TRAVEL_ZONE",
"locationId": "stz_01kv60qgs4e4nbjhzradnqtj0h",
"latitude": 43.6532,
"longitude": -79.3832,
"address": {
"addressOneLine": "10 Main St, Toronto, ON M5V 1A1, Canada",
"streetNumber": "10",
"streetName": "Main St",
"city": "Toronto",
"state": "ON",
"country": "CA",
"zipCode": "M5V 1A1",
"unitNumber": "4B"
}
}
],
"slateId": "slate_01kv7n10k0fnptwk81wkm59vj7",
"slotIds": ["<string>"],
"reservationId": "resv_01kv8p20m1gnqvxl92xln6awk8",
"heldBy": "checkout_9f2c1b",
"holdDurationMins": 10
}
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({
intervals: [
{
supplierId: 'sup_01kv60qgnef2kt3pvqgwmkbzfr',
startUtc: '2026-07-15T14:00:00.000Z',
endUtc: '2026-07-15T15:00:00.000Z',
bookingTz: 'America/Toronto',
locationType: 'TRAVEL_ZONE',
locationId: 'stz_01kv60qgs4e4nbjhzradnqtj0h',
latitude: 43.6532,
longitude: -79.3832,
address: {
addressOneLine: '10 Main St, Toronto, ON M5V 1A1, Canada',
streetNumber: '10',
streetName: 'Main St',
city: 'Toronto',
state: 'ON',
country: 'CA',
zipCode: 'M5V 1A1',
unitNumber: '4B'
}
}
],
slateId: 'slate_01kv7n10k0fnptwk81wkm59vj7',
slotIds: ['<string>'],
reservationId: 'resv_01kv8p20m1gnqvxl92xln6awk8',
heldBy: 'checkout_9f2c1b',
holdDurationMins: 10
})
};
fetch('https://apiv2.gomarketbox.com/v1/projects/{projectId}/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://apiv2.gomarketbox.com/v1/projects/{projectId}/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([
'intervals' => [
[
'supplierId' => 'sup_01kv60qgnef2kt3pvqgwmkbzfr',
'startUtc' => '2026-07-15T14:00:00.000Z',
'endUtc' => '2026-07-15T15:00:00.000Z',
'bookingTz' => 'America/Toronto',
'locationType' => 'TRAVEL_ZONE',
'locationId' => 'stz_01kv60qgs4e4nbjhzradnqtj0h',
'latitude' => 43.6532,
'longitude' => -79.3832,
'address' => [
'addressOneLine' => '10 Main St, Toronto, ON M5V 1A1, Canada',
'streetNumber' => '10',
'streetName' => 'Main St',
'city' => 'Toronto',
'state' => 'ON',
'country' => 'CA',
'zipCode' => 'M5V 1A1',
'unitNumber' => '4B'
]
]
],
'slateId' => 'slate_01kv7n10k0fnptwk81wkm59vj7',
'slotIds' => [
'<string>'
],
'reservationId' => 'resv_01kv8p20m1gnqvxl92xln6awk8',
'heldBy' => 'checkout_9f2c1b',
'holdDurationMins' => 10
]),
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://apiv2.gomarketbox.com/v1/projects/{projectId}/holds"
payload := strings.NewReader("{\n \"intervals\": [\n {\n \"supplierId\": \"sup_01kv60qgnef2kt3pvqgwmkbzfr\",\n \"startUtc\": \"2026-07-15T14:00:00.000Z\",\n \"endUtc\": \"2026-07-15T15:00:00.000Z\",\n \"bookingTz\": \"America/Toronto\",\n \"locationType\": \"TRAVEL_ZONE\",\n \"locationId\": \"stz_01kv60qgs4e4nbjhzradnqtj0h\",\n \"latitude\": 43.6532,\n \"longitude\": -79.3832,\n \"address\": {\n \"addressOneLine\": \"10 Main St, Toronto, ON M5V 1A1, Canada\",\n \"streetNumber\": \"10\",\n \"streetName\": \"Main St\",\n \"city\": \"Toronto\",\n \"state\": \"ON\",\n \"country\": \"CA\",\n \"zipCode\": \"M5V 1A1\",\n \"unitNumber\": \"4B\"\n }\n }\n ],\n \"slateId\": \"slate_01kv7n10k0fnptwk81wkm59vj7\",\n \"slotIds\": [\n \"<string>\"\n ],\n \"reservationId\": \"resv_01kv8p20m1gnqvxl92xln6awk8\",\n \"heldBy\": \"checkout_9f2c1b\",\n \"holdDurationMins\": 10\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://apiv2.gomarketbox.com/v1/projects/{projectId}/holds")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"intervals\": [\n {\n \"supplierId\": \"sup_01kv60qgnef2kt3pvqgwmkbzfr\",\n \"startUtc\": \"2026-07-15T14:00:00.000Z\",\n \"endUtc\": \"2026-07-15T15:00:00.000Z\",\n \"bookingTz\": \"America/Toronto\",\n \"locationType\": \"TRAVEL_ZONE\",\n \"locationId\": \"stz_01kv60qgs4e4nbjhzradnqtj0h\",\n \"latitude\": 43.6532,\n \"longitude\": -79.3832,\n \"address\": {\n \"addressOneLine\": \"10 Main St, Toronto, ON M5V 1A1, Canada\",\n \"streetNumber\": \"10\",\n \"streetName\": \"Main St\",\n \"city\": \"Toronto\",\n \"state\": \"ON\",\n \"country\": \"CA\",\n \"zipCode\": \"M5V 1A1\",\n \"unitNumber\": \"4B\"\n }\n }\n ],\n \"slateId\": \"slate_01kv7n10k0fnptwk81wkm59vj7\",\n \"slotIds\": [\n \"<string>\"\n ],\n \"reservationId\": \"resv_01kv8p20m1gnqvxl92xln6awk8\",\n \"heldBy\": \"checkout_9f2c1b\",\n \"holdDurationMins\": 10\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apiv2.gomarketbox.com/v1/projects/{projectId}/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 \"intervals\": [\n {\n \"supplierId\": \"sup_01kv60qgnef2kt3pvqgwmkbzfr\",\n \"startUtc\": \"2026-07-15T14:00:00.000Z\",\n \"endUtc\": \"2026-07-15T15:00:00.000Z\",\n \"bookingTz\": \"America/Toronto\",\n \"locationType\": \"TRAVEL_ZONE\",\n \"locationId\": \"stz_01kv60qgs4e4nbjhzradnqtj0h\",\n \"latitude\": 43.6532,\n \"longitude\": -79.3832,\n \"address\": {\n \"addressOneLine\": \"10 Main St, Toronto, ON M5V 1A1, Canada\",\n \"streetNumber\": \"10\",\n \"streetName\": \"Main St\",\n \"city\": \"Toronto\",\n \"state\": \"ON\",\n \"country\": \"CA\",\n \"zipCode\": \"M5V 1A1\",\n \"unitNumber\": \"4B\"\n }\n }\n ],\n \"slateId\": \"slate_01kv7n10k0fnptwk81wkm59vj7\",\n \"slotIds\": [\n \"<string>\"\n ],\n \"reservationId\": \"resv_01kv8p20m1gnqvxl92xln6awk8\",\n \"heldBy\": \"checkout_9f2c1b\",\n \"holdDurationMins\": 10\n}"
response = http.request(request)
puts response.read_body{
"reservationId": "resv_01kv8p20m1gnqvxl92xln6awk8",
"status": "HELD",
"heldUntil": "2026-07-10T12:05:00.000Z",
"intervals": [
{
"supplierId": "<string>",
"startUtc": "2023-11-07T05:31:56Z",
"endUtc": "2023-11-07T05:31:56Z",
"bookingTz": "America/Toronto",
"locationType": "TRAVEL_ZONE",
"locationId": "stz_01kv60qgs4e4nbjhzradnqtj0h",
"latitude": 43.6532,
"longitude": -79.3832,
"address": {
"addressOneLine": "10 Main St, Toronto, ON M5V 1A1, Canada",
"streetNumber": "10",
"streetName": "Main St",
"city": "Toronto",
"state": "ON",
"country": "CA",
"zipCode": "M5V 1A1",
"unitNumber": "4B"
}
}
]
}{
"code": "NOT_FOUND",
"message": "Booking not found",
"statusCode": 404,
"requestId": "a3f1c2de-9b64-4a2f-8f0e-5c9d1b7a2e10"
}{
"code": "NOT_FOUND",
"message": "Booking not found",
"statusCode": 404,
"requestId": "a3f1c2de-9b64-4a2f-8f0e-5c9d1b7a2e10"
}{
"code": "NOT_FOUND",
"message": "Booking not found",
"statusCode": 404,
"requestId": "a3f1c2de-9b64-4a2f-8f0e-5c9d1b7a2e10"
}{
"code": "NOT_FOUND",
"message": "Booking not found",
"statusCode": 404,
"requestId": "a3f1c2de-9b64-4a2f-8f0e-5c9d1b7a2e10"
}{
"code": "SLOT_HELD",
"message": "Supplier time is not available: HOLD resv_01kv8p20m1gnqvxl92xln6awk8 (2026-08-01T10:00:00Z–2026-08-01T11:00:00Z)",
"statusCode": 409,
"requestId": "a3f1c2de-9b64-4a2f-8f0e-5c9d1b7a2e10",
"conflicts": [
{
"claimType": "BOOKING",
"startUtc": "2026-08-01T10:00:00Z",
"endUtc": "2026-08-01T11:00:00Z",
"supplierId": "<string>",
"reservationId": "resv_01kv8p20m1gnqvxl92xln6awk8",
"bookingId": null,
"heldUntil": "2026-08-01T10:05:00Z"
}
],
"hint": "This time is held (reservation resv_01kv8p20m1gnqvxl92xln6awk8). Convert the hold via POST /v1/projects/{projectId}/holds/{reservationId}/convert, or release it with POST /v1/projects/{projectId}/holds/{reservationId}/release. Direct booking routes will not consume a hold — if you hold, you convert."
}Hold supplier time during checkout — a single session, or a whole package slate
Claims supplier time so nobody else can book it while your client pays. Provide exactly one of: intervals (explicit supplier time — this is the form that works for a SINGLE session, with no package and no slate), slateId (hold every slot of a persisted package slate), or slotIds (cherry-pick slots of a slate). Every interval is claimed in ONE transaction, so a hold is all-or-nothing — you never end up holding 3 sessions of a 5-session package. Expiry is LAZY: nothing runs at heldUntil, the hold simply stops blocking, so convert before then. To HEARTBEAT a checkout page, re-post the same intervals AND the reservationId you were given (with the same heldBy): that EXTENDS the existing hold — heldUntil moves out, the same reservationId comes back, and no second hold is minted. Omitting reservationId always mints a NEW hold. Returns 409 with code SLOT_HELD/SLOT_BOOKED — naming the blocking reservationId or bookingId — when the time is already claimed, or RESERVATION_NOT_FOUND / RESERVATION_NOT_HELD / RESERVATION_FORBIDDEN when the reservationId you asked to extend is unknown, no longer held, or not yours. A slateId/slotIds hold (new or extended) whose slots are past their resolvableUntil is 409 SUGGESTION_EXPIRED, as package-bookings answers it: the times were planned from availability that may have changed, so plan a fresh slate. An unknown slate or slot is 409 SLATE_NOT_FOUND / SLOT_NOT_FOUND.
curl --request POST \
--url https://apiv2.gomarketbox.com/v1/projects/{projectId}/holds \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"intervals": [
{
"supplierId": "sup_01kv60qgnef2kt3pvqgwmkbzfr",
"startUtc": "2026-07-15T14:00:00.000Z",
"endUtc": "2026-07-15T15:00:00.000Z",
"bookingTz": "America/Toronto",
"locationType": "TRAVEL_ZONE",
"locationId": "stz_01kv60qgs4e4nbjhzradnqtj0h",
"latitude": 43.6532,
"longitude": -79.3832,
"address": {
"addressOneLine": "10 Main St, Toronto, ON M5V 1A1, Canada",
"streetNumber": "10",
"streetName": "Main St",
"city": "Toronto",
"state": "ON",
"country": "CA",
"zipCode": "M5V 1A1",
"unitNumber": "4B"
}
}
],
"slateId": "slate_01kv7n10k0fnptwk81wkm59vj7",
"slotIds": [
"<string>"
],
"reservationId": "resv_01kv8p20m1gnqvxl92xln6awk8",
"heldBy": "checkout_9f2c1b",
"holdDurationMins": 10
}
'import requests
url = "https://apiv2.gomarketbox.com/v1/projects/{projectId}/holds"
payload = {
"intervals": [
{
"supplierId": "sup_01kv60qgnef2kt3pvqgwmkbzfr",
"startUtc": "2026-07-15T14:00:00.000Z",
"endUtc": "2026-07-15T15:00:00.000Z",
"bookingTz": "America/Toronto",
"locationType": "TRAVEL_ZONE",
"locationId": "stz_01kv60qgs4e4nbjhzradnqtj0h",
"latitude": 43.6532,
"longitude": -79.3832,
"address": {
"addressOneLine": "10 Main St, Toronto, ON M5V 1A1, Canada",
"streetNumber": "10",
"streetName": "Main St",
"city": "Toronto",
"state": "ON",
"country": "CA",
"zipCode": "M5V 1A1",
"unitNumber": "4B"
}
}
],
"slateId": "slate_01kv7n10k0fnptwk81wkm59vj7",
"slotIds": ["<string>"],
"reservationId": "resv_01kv8p20m1gnqvxl92xln6awk8",
"heldBy": "checkout_9f2c1b",
"holdDurationMins": 10
}
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({
intervals: [
{
supplierId: 'sup_01kv60qgnef2kt3pvqgwmkbzfr',
startUtc: '2026-07-15T14:00:00.000Z',
endUtc: '2026-07-15T15:00:00.000Z',
bookingTz: 'America/Toronto',
locationType: 'TRAVEL_ZONE',
locationId: 'stz_01kv60qgs4e4nbjhzradnqtj0h',
latitude: 43.6532,
longitude: -79.3832,
address: {
addressOneLine: '10 Main St, Toronto, ON M5V 1A1, Canada',
streetNumber: '10',
streetName: 'Main St',
city: 'Toronto',
state: 'ON',
country: 'CA',
zipCode: 'M5V 1A1',
unitNumber: '4B'
}
}
],
slateId: 'slate_01kv7n10k0fnptwk81wkm59vj7',
slotIds: ['<string>'],
reservationId: 'resv_01kv8p20m1gnqvxl92xln6awk8',
heldBy: 'checkout_9f2c1b',
holdDurationMins: 10
})
};
fetch('https://apiv2.gomarketbox.com/v1/projects/{projectId}/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://apiv2.gomarketbox.com/v1/projects/{projectId}/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([
'intervals' => [
[
'supplierId' => 'sup_01kv60qgnef2kt3pvqgwmkbzfr',
'startUtc' => '2026-07-15T14:00:00.000Z',
'endUtc' => '2026-07-15T15:00:00.000Z',
'bookingTz' => 'America/Toronto',
'locationType' => 'TRAVEL_ZONE',
'locationId' => 'stz_01kv60qgs4e4nbjhzradnqtj0h',
'latitude' => 43.6532,
'longitude' => -79.3832,
'address' => [
'addressOneLine' => '10 Main St, Toronto, ON M5V 1A1, Canada',
'streetNumber' => '10',
'streetName' => 'Main St',
'city' => 'Toronto',
'state' => 'ON',
'country' => 'CA',
'zipCode' => 'M5V 1A1',
'unitNumber' => '4B'
]
]
],
'slateId' => 'slate_01kv7n10k0fnptwk81wkm59vj7',
'slotIds' => [
'<string>'
],
'reservationId' => 'resv_01kv8p20m1gnqvxl92xln6awk8',
'heldBy' => 'checkout_9f2c1b',
'holdDurationMins' => 10
]),
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://apiv2.gomarketbox.com/v1/projects/{projectId}/holds"
payload := strings.NewReader("{\n \"intervals\": [\n {\n \"supplierId\": \"sup_01kv60qgnef2kt3pvqgwmkbzfr\",\n \"startUtc\": \"2026-07-15T14:00:00.000Z\",\n \"endUtc\": \"2026-07-15T15:00:00.000Z\",\n \"bookingTz\": \"America/Toronto\",\n \"locationType\": \"TRAVEL_ZONE\",\n \"locationId\": \"stz_01kv60qgs4e4nbjhzradnqtj0h\",\n \"latitude\": 43.6532,\n \"longitude\": -79.3832,\n \"address\": {\n \"addressOneLine\": \"10 Main St, Toronto, ON M5V 1A1, Canada\",\n \"streetNumber\": \"10\",\n \"streetName\": \"Main St\",\n \"city\": \"Toronto\",\n \"state\": \"ON\",\n \"country\": \"CA\",\n \"zipCode\": \"M5V 1A1\",\n \"unitNumber\": \"4B\"\n }\n }\n ],\n \"slateId\": \"slate_01kv7n10k0fnptwk81wkm59vj7\",\n \"slotIds\": [\n \"<string>\"\n ],\n \"reservationId\": \"resv_01kv8p20m1gnqvxl92xln6awk8\",\n \"heldBy\": \"checkout_9f2c1b\",\n \"holdDurationMins\": 10\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://apiv2.gomarketbox.com/v1/projects/{projectId}/holds")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"intervals\": [\n {\n \"supplierId\": \"sup_01kv60qgnef2kt3pvqgwmkbzfr\",\n \"startUtc\": \"2026-07-15T14:00:00.000Z\",\n \"endUtc\": \"2026-07-15T15:00:00.000Z\",\n \"bookingTz\": \"America/Toronto\",\n \"locationType\": \"TRAVEL_ZONE\",\n \"locationId\": \"stz_01kv60qgs4e4nbjhzradnqtj0h\",\n \"latitude\": 43.6532,\n \"longitude\": -79.3832,\n \"address\": {\n \"addressOneLine\": \"10 Main St, Toronto, ON M5V 1A1, Canada\",\n \"streetNumber\": \"10\",\n \"streetName\": \"Main St\",\n \"city\": \"Toronto\",\n \"state\": \"ON\",\n \"country\": \"CA\",\n \"zipCode\": \"M5V 1A1\",\n \"unitNumber\": \"4B\"\n }\n }\n ],\n \"slateId\": \"slate_01kv7n10k0fnptwk81wkm59vj7\",\n \"slotIds\": [\n \"<string>\"\n ],\n \"reservationId\": \"resv_01kv8p20m1gnqvxl92xln6awk8\",\n \"heldBy\": \"checkout_9f2c1b\",\n \"holdDurationMins\": 10\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apiv2.gomarketbox.com/v1/projects/{projectId}/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 \"intervals\": [\n {\n \"supplierId\": \"sup_01kv60qgnef2kt3pvqgwmkbzfr\",\n \"startUtc\": \"2026-07-15T14:00:00.000Z\",\n \"endUtc\": \"2026-07-15T15:00:00.000Z\",\n \"bookingTz\": \"America/Toronto\",\n \"locationType\": \"TRAVEL_ZONE\",\n \"locationId\": \"stz_01kv60qgs4e4nbjhzradnqtj0h\",\n \"latitude\": 43.6532,\n \"longitude\": -79.3832,\n \"address\": {\n \"addressOneLine\": \"10 Main St, Toronto, ON M5V 1A1, Canada\",\n \"streetNumber\": \"10\",\n \"streetName\": \"Main St\",\n \"city\": \"Toronto\",\n \"state\": \"ON\",\n \"country\": \"CA\",\n \"zipCode\": \"M5V 1A1\",\n \"unitNumber\": \"4B\"\n }\n }\n ],\n \"slateId\": \"slate_01kv7n10k0fnptwk81wkm59vj7\",\n \"slotIds\": [\n \"<string>\"\n ],\n \"reservationId\": \"resv_01kv8p20m1gnqvxl92xln6awk8\",\n \"heldBy\": \"checkout_9f2c1b\",\n \"holdDurationMins\": 10\n}"
response = http.request(request)
puts response.read_body{
"reservationId": "resv_01kv8p20m1gnqvxl92xln6awk8",
"status": "HELD",
"heldUntil": "2026-07-10T12:05:00.000Z",
"intervals": [
{
"supplierId": "<string>",
"startUtc": "2023-11-07T05:31:56Z",
"endUtc": "2023-11-07T05:31:56Z",
"bookingTz": "America/Toronto",
"locationType": "TRAVEL_ZONE",
"locationId": "stz_01kv60qgs4e4nbjhzradnqtj0h",
"latitude": 43.6532,
"longitude": -79.3832,
"address": {
"addressOneLine": "10 Main St, Toronto, ON M5V 1A1, Canada",
"streetNumber": "10",
"streetName": "Main St",
"city": "Toronto",
"state": "ON",
"country": "CA",
"zipCode": "M5V 1A1",
"unitNumber": "4B"
}
}
]
}{
"code": "NOT_FOUND",
"message": "Booking not found",
"statusCode": 404,
"requestId": "a3f1c2de-9b64-4a2f-8f0e-5c9d1b7a2e10"
}{
"code": "NOT_FOUND",
"message": "Booking not found",
"statusCode": 404,
"requestId": "a3f1c2de-9b64-4a2f-8f0e-5c9d1b7a2e10"
}{
"code": "NOT_FOUND",
"message": "Booking not found",
"statusCode": 404,
"requestId": "a3f1c2de-9b64-4a2f-8f0e-5c9d1b7a2e10"
}{
"code": "NOT_FOUND",
"message": "Booking not found",
"statusCode": 404,
"requestId": "a3f1c2de-9b64-4a2f-8f0e-5c9d1b7a2e10"
}{
"code": "SLOT_HELD",
"message": "Supplier time is not available: HOLD resv_01kv8p20m1gnqvxl92xln6awk8 (2026-08-01T10:00:00Z–2026-08-01T11:00:00Z)",
"statusCode": 409,
"requestId": "a3f1c2de-9b64-4a2f-8f0e-5c9d1b7a2e10",
"conflicts": [
{
"claimType": "BOOKING",
"startUtc": "2026-08-01T10:00:00Z",
"endUtc": "2026-08-01T11:00:00Z",
"supplierId": "<string>",
"reservationId": "resv_01kv8p20m1gnqvxl92xln6awk8",
"bookingId": null,
"heldUntil": "2026-08-01T10:05:00Z"
}
],
"hint": "This time is held (reservation resv_01kv8p20m1gnqvxl92xln6awk8). Convert the hold via POST /v1/projects/{projectId}/holds/{reservationId}/convert, or release it with POST /v1/projects/{projectId}/holds/{reservationId}/release. Direct booking routes will not consume a hold — if you hold, you convert."
}Authorizations
API key minted in the MarketBox dashboard. Scope is restricted to the projects you select at creation time. Every route needs the key's standard API access (*) except POST /v1/projects/{projectId}/events, which needs events:write; a key without * is refused with 403 CAPABILITY_NOT_GRANTED.
Path Parameters
Body
intervals | slateId | slotIds (+ optional reservationId to extend, heldBy, holdDurationMins)
EXTEND an existing hold instead of minting a new one — this is the checkout HEARTBEAT. Supply the reservationId a previous POST /holds handed you: heldUntil is pushed out, the hold keeps its original createdAt, the SAME claim stays on the supplier calendar (no second hold is minted), and the SAME reservationId comes back — so the id you convert later is still the right one. The intervals you send must be the ones that hold already claims, and heldBy must match the hold's owner. A mismatch is 409 RESERVATION_FORBIDDEN; an unknown id is 409 RESERVATION_NOT_FOUND; an already converted/released hold is 409 RESERVATION_NOT_HELD. Omit this field to mint a NEW hold.
1"resv_01kv8p20m1gnqvxl92xln6awk8"
Who owns the hold — typically your checkout session id. Re-holding time you already hold under the same heldBy does not conflict with your own hold; to actually EXTEND that hold (the checkout heartbeat) pass its reservationId as well, otherwise a new hold is minted. Defaults to the API principal.
1"checkout_9f2c1b"
Response
Hold placed — supplier time is now claimed until heldUntil