# Holds

> Reserve items for a short time and get the authoritative price breakdown

Source: https://rcms-tickets-test.web.app/docs/reference/holds

Every operation below is also in [the OpenAPI document](https://rcms-tickets-test.web.app/v1/openapi.yaml). One that names an MCP tool can be called through [the MCP server](https://rcms-tickets-test.web.app/docs/mcp.md); one that names none cannot.

## List holds

`GET /v1/holds`

Operation id `listHolds`. MCP tool `list_holds`. SDK `tickets.holds.list`.

Holds filtered by event or status (`active`, `consumed`, `released`, `expired`).

**Who may call it.** Any one of: An API key with scope `full`, `read`. Any other scope answers `insufficient_scope`; A signed-in dashboard member whose role has `read` (owner, admin, staff, viewer).

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `limit` | query | integer | How many to return, 1 to 100 (default 20). |
| `starting_after` | query | string | An id from the page before: the page after it. |
| `ending_before` | query | string | An id from the page after: the page before it. A list read from the database offers it as the list comes and filtered by event alone, in the default order, and answers parameter_invalid to any other… |
| `event` | query | string | An id starting with evt_. |
| `status` | query | "active" \| "consumed" \| "released" \| "expired" | active, consumed (became an order), released, expired. |
| `created_gte` | query | string (date-time) | Only those created at or after this instant. |
| `created_lt` | query | string (date-time) | Only those created before this instant. |

**Answers 200.** A page of holds.

**Fields**

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "list" |  |
| `data` * | array of Hold | This page, newest first. |
| `has_more` * | boolean | True when there is another page: pass the last id as starting_after. |
| `url` * | "/v1/holds" | The path this list came from (/v1/holds). |

\* required

## Hold items and get the price

`POST /v1/holds`

Operation id `createHold`. MCP tool `create_hold`. SDK `tickets.holds.create`.

Reserves items for a short time and answers the authoritative price: lines, discounts, fees, tax and total. Show exactly that to the buyer. The hold keeps the stock (and a limited code's use) until it expires (`expires_at`), is released or becomes an order. Pass `attribution` (UTM fields, referrer, click ids, the buyer's IP and user agent) to feed server-side conversion tracking. Only http and https addresses are kept (`javascript:`, `data:`, an `android-app://` referrer are left out, the sale still goes through), a UTM value that is an email address or a phone number is dropped, a `tracking_link` that is not this organization's (or is another event's) is ignored, and with `ad_consent: denied` nothing that identifies the browser is stored: no IP, fbp, fbc, click ids, GA ids or user agent, and a page address keeps only its origin and path. Send `client_ip` even then: the per-network caps on open holds count a keyed hash of it, which ends with the hold, and the address itself is not kept. A marketing consent is a separate record: send the address it was given from as `buyer.marketing.<channel>.ip` on `POST /v1/orders`. Without that it falls back to the hold's `client_ip`, which is empty for a buyer who said no to ad tracking. Only a yes keeps an address; a no is kept as a refusal with no IP. First step of a checkout; the second is `POST /v1/orders`.

**Who may call it.** Any one of: An API key with scope `full`. Any other scope answers `insufficient_scope`; A signed-in dashboard member whose role has `orders.write` (owner, admin, staff); A door device that is allowed to sell, for its own event.

**Request body** (`CreateHoldInput`)

| Field | Type | Description |
| --- | --- | --- |
| `event` * | string | An id starting with evt_. |
| `items` * | array of HoldItemInput |  |
| `code` | string | A promo or access code as typed; case does not matter. |
| `email` | string (email) | The buyer's email if your checkout has it: hold.expired carries it (abandoned-checkout follow-up). |
| `attribution` | AttributionInput | Where the buyer came from, sent with the hold. The kit reads _fbp, _fbc, _ga and _ga_<id> for you. |
| `duration_minutes` | integer |  |
| `replaces` | string | A hold from this same buyer's network, on this event, that this one takes the place of: what it holds doesn't stand in the way of the new one's share, and it is let go once the new one exists. Any other hold is ignored,… |
| `metadata` | object | Your own key-value pairs (up to 50; keys up to 40 characters, values up to 500). We store and return them and never act on them. |
| `at` | string (date-time) | Test mode only (live answers test_mode_only): record this as having happened then, at most 730 days ago and never in the future. created_at, paid_at and the event log rows carry it, so reports bucket it there; a hold st… |

\* required

```json
{
  "event": "evt_yrd2027",
  "items": [
    {
      "ticket_type": "tt_ga_weekend",
      "quantity": 2
    },
    {
      "add_on": "add_parking",
      "quantity": 1
    }
  ],
  "code": "VISITDETROIT",
  "email": "jordan@example.com"
}
```

**Answers 201.** Held, with the price breakdown to show (a limited code's use is reserved with it). A selling door device holds for its own event: that is the gate sale's quote.

**Fields** (`Hold`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "hold" |  |
| `id` * | string | An id starting with hold_. |
| `mode` * | Mode | test or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix. |
| `event` * | string | An id starting with evt_. |
| `status` * | HoldStatus | active, consumed (became an order), released, expired. |
| `items` * | array of OrderItem |  |
| `code` * | string \| null | The code applied. A code with max_uses has one use reserved for this hold while it is active. |
| `price` * | PriceBreakdown | The authoritative price, computed by us. Show exactly this. Percentages round half up per line, to the minor unit. |
| `email` * | string \| null |  |
| `attribution` * | Attribution \| null |  |
| `checkout_link` * | string \| null | The hosted checkout link it was made through; only that link may turn it into an order. |
| `device` * | string \| null | The door device that made it (a gate sale); only a door sale may consume it. |
| `expires_at` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `extended` * | boolean |  |
| `order` * | string \| null | The order it became. |
| `created_at` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `released_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `expired_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `consumed_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `metadata` * | Metadata | Your own key-value pairs (up to 50; keys up to 40 characters, values up to 500). We store and return them and never act on them. |

\* required

**Errors of its own.** [`device_token_invalid`](https://rcms-tickets-test.web.app/docs/errors.md#device_token_invalid), [`device_sales_not_allowed`](https://rcms-tickets-test.web.app/docs/errors.md#device_sales_not_allowed), [`event_not_on_sale`](https://rcms-tickets-test.web.app/docs/errors.md#event_not_on_sale), [`sold_out`](https://rcms-tickets-test.web.app/docs/errors.md#sold_out), [`quantity_unavailable`](https://rcms-tickets-test.web.app/docs/errors.md#quantity_unavailable), [`sale_not_started`](https://rcms-tickets-test.web.app/docs/errors.md#sale_not_started), [`sale_ended`](https://rcms-tickets-test.web.app/docs/errors.md#sale_ended), [`ticket_type_unavailable`](https://rcms-tickets-test.web.app/docs/errors.md#ticket_type_unavailable), [`order_minimum_not_met`](https://rcms-tickets-test.web.app/docs/errors.md#order_minimum_not_met), [`order_maximum_exceeded`](https://rcms-tickets-test.web.app/docs/errors.md#order_maximum_exceeded), [`add_on_requires_ticket`](https://rcms-tickets-test.web.app/docs/errors.md#add_on_requires_ticket), [`too_many_tickets`](https://rcms-tickets-test.web.app/docs/errors.md#too_many_tickets), [`too_many_pools`](https://rcms-tickets-test.web.app/docs/errors.md#too_many_pools), [`code_invalid`](https://rcms-tickets-test.web.app/docs/errors.md#code_invalid), [`code_not_started`](https://rcms-tickets-test.web.app/docs/errors.md#code_not_started), [`code_expired`](https://rcms-tickets-test.web.app/docs/errors.md#code_expired), [`code_exhausted`](https://rcms-tickets-test.web.app/docs/errors.md#code_exhausted), [`code_not_applicable`](https://rcms-tickets-test.web.app/docs/errors.md#code_not_applicable), [`test_mode_only`](https://rcms-tickets-test.web.app/docs/errors.md#test_mode_only). The errors every operation can answer are on [the errors page](https://rcms-tickets-test.web.app/docs/errors.md).

## Retrieve a hold

`GET /v1/holds/{id}`

Operation id `getHold`. MCP tool `get_hold`. SDK `tickets.holds.retrieve`.

One hold with its price breakdown, its status and when it expires. A selling door device can read its own.

**Who may call it.** Any one of: An API key with scope `full`, `read`. Any other scope answers `insufficient_scope`; A signed-in dashboard member whose role has `read` (owner, admin, staff, viewer).

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `id` * | path | string | An id starting with hold_. |

**Answers 200.** The hold.

**Fields** (`Hold`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "hold" |  |
| `id` * | string | An id starting with hold_. |
| `mode` * | Mode | test or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix. |
| `event` * | string | An id starting with evt_. |
| `status` * | HoldStatus | active, consumed (became an order), released, expired. |
| `items` * | array of OrderItem |  |
| `code` * | string \| null | The code applied. A code with max_uses has one use reserved for this hold while it is active. |
| `price` * | PriceBreakdown | The authoritative price, computed by us. Show exactly this. Percentages round half up per line, to the minor unit. |
| `email` * | string \| null |  |
| `attribution` * | Attribution \| null |  |
| `checkout_link` * | string \| null | The hosted checkout link it was made through; only that link may turn it into an order. |
| `device` * | string \| null | The door device that made it (a gate sale); only a door sale may consume it. |
| `expires_at` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `extended` * | boolean |  |
| `order` * | string \| null | The order it became. |
| `created_at` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `released_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `expired_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `consumed_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `metadata` * | Metadata | Your own key-value pairs (up to 50; keys up to 40 characters, values up to 500). We store and return them and never act on them. |

\* required

## Set an active hold's email or metadata

`PATCH /v1/holds/{id}`

Operation id `updateHold`. MCP tool `update_hold`. SDK `tickets.holds.update`.

Sets an active hold's buyer email or metadata. Its items, code and price never change: release it and make a new hold for that.

**Who may call it.** Any one of: An API key with scope `full`. Any other scope answers `insufficient_scope`; A signed-in dashboard member whose role has `orders.write` (owner, admin, staff).

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `id` * | path | string | An id starting with hold_. |

**Request body** (`UpdateHoldInput`)

| Field | Type | Description |
| --- | --- | --- |
| `email` | string \| null | The buyer's email, once your checkout has it (null clears it): hold.expired carries it for an abandoned-checkout follow-up. |
| `metadata` | object | Your own key-value pairs (up to 50; keys up to 40 characters, values up to 500). We store and return them and never act on them. |

```json
{
  "email": "jordan@example.com"
}
```

**Answers 200.** Updated (hold.updated); its items, code and price are as they were.

**Fields** (`Hold`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "hold" |  |
| `id` * | string | An id starting with hold_. |
| `mode` * | Mode | test or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix. |
| `event` * | string | An id starting with evt_. |
| `status` * | HoldStatus | active, consumed (became an order), released, expired. |
| `items` * | array of OrderItem |  |
| `code` * | string \| null | The code applied. A code with max_uses has one use reserved for this hold while it is active. |
| `price` * | PriceBreakdown | The authoritative price, computed by us. Show exactly this. Percentages round half up per line, to the minor unit. |
| `email` * | string \| null |  |
| `attribution` * | Attribution \| null |  |
| `checkout_link` * | string \| null | The hosted checkout link it was made through; only that link may turn it into an order. |
| `device` * | string \| null | The door device that made it (a gate sale); only a door sale may consume it. |
| `expires_at` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `extended` * | boolean |  |
| `order` * | string \| null | The order it became. |
| `created_at` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `released_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `expired_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `consumed_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `metadata` * | Metadata | Your own key-value pairs (up to 50; keys up to 40 characters, values up to 500). We store and return them and never act on them. |

\* required

**Errors of its own.** [`hold_expired`](https://rcms-tickets-test.web.app/docs/errors.md#hold_expired), [`hold_released`](https://rcms-tickets-test.web.app/docs/errors.md#hold_released), [`hold_consumed`](https://rcms-tickets-test.web.app/docs/errors.md#hold_consumed). The errors every operation can answer are on [the errors page](https://rcms-tickets-test.web.app/docs/errors.md).

## Release a hold

`DELETE /v1/holds/{id}`

Operation id `releaseHold`. MCP tool `release_hold`. SDK `tickets.holds.release`.

Gives the held items, and a code's reserved use, back at once. Do it when a buyer abandons checkout rather than waiting for expiry.

**Who may call it.** Any one of: An API key with scope `full`. Any other scope answers `insufficient_scope`; A signed-in dashboard member whose role has `orders.write` (owner, admin, staff); A door device that is allowed to sell, for its own event.

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `id` * | path | string | An id starting with hold_. |

**Answers 200.** Released; its items and its code use are back.

**Fields** (`Hold`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "hold" |  |
| `id` * | string | An id starting with hold_. |
| `mode` * | Mode | test or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix. |
| `event` * | string | An id starting with evt_. |
| `status` * | HoldStatus | active, consumed (became an order), released, expired. |
| `items` * | array of OrderItem |  |
| `code` * | string \| null | The code applied. A code with max_uses has one use reserved for this hold while it is active. |
| `price` * | PriceBreakdown | The authoritative price, computed by us. Show exactly this. Percentages round half up per line, to the minor unit. |
| `email` * | string \| null |  |
| `attribution` * | Attribution \| null |  |
| `checkout_link` * | string \| null | The hosted checkout link it was made through; only that link may turn it into an order. |
| `device` * | string \| null | The door device that made it (a gate sale); only a door sale may consume it. |
| `expires_at` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `extended` * | boolean |  |
| `order` * | string \| null | The order it became. |
| `created_at` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `released_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `expired_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `consumed_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `metadata` * | Metadata | Your own key-value pairs (up to 50; keys up to 40 characters, values up to 500). We store and return them and never act on them. |

\* required

**Errors of its own.** [`device_token_invalid`](https://rcms-tickets-test.web.app/docs/errors.md#device_token_invalid), [`device_sales_not_allowed`](https://rcms-tickets-test.web.app/docs/errors.md#device_sales_not_allowed), [`hold_consumed`](https://rcms-tickets-test.web.app/docs/errors.md#hold_consumed), [`hold_expired`](https://rcms-tickets-test.web.app/docs/errors.md#hold_expired). The errors every operation can answer are on [the errors page](https://rcms-tickets-test.web.app/docs/errors.md).

## Extend a hold once

`POST /v1/holds/{id}/extend`

Operation id `extendHold`. MCP tool `extend_hold`. SDK `tickets.holds.extend`.

Gives an active hold more time. A hold can be extended once (`hold_extension_used`).

**Who may call it.** Any one of: An API key with scope `full`. Any other scope answers `insufficient_scope`; A signed-in dashboard member whose role has `orders.write` (owner, admin, staff).

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `id` * | path | string | An id starting with hold_. |

**Request body** (`ExtendHoldInput`)

| Field | Type | Description |
| --- | --- | --- |
| `minutes` | integer | The hold then expires this long from now, or when it already would if that is later: an extend never shortens a hold. Once per hold. |

```json
{
  "minutes": 5
}
```

**Answers 200.** Extended.

**Fields** (`Hold`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "hold" |  |
| `id` * | string | An id starting with hold_. |
| `mode` * | Mode | test or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix. |
| `event` * | string | An id starting with evt_. |
| `status` * | HoldStatus | active, consumed (became an order), released, expired. |
| `items` * | array of OrderItem |  |
| `code` * | string \| null | The code applied. A code with max_uses has one use reserved for this hold while it is active. |
| `price` * | PriceBreakdown | The authoritative price, computed by us. Show exactly this. Percentages round half up per line, to the minor unit. |
| `email` * | string \| null |  |
| `attribution` * | Attribution \| null |  |
| `checkout_link` * | string \| null | The hosted checkout link it was made through; only that link may turn it into an order. |
| `device` * | string \| null | The door device that made it (a gate sale); only a door sale may consume it. |
| `expires_at` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `extended` * | boolean |  |
| `order` * | string \| null | The order it became. |
| `created_at` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `released_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `expired_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `consumed_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `metadata` * | Metadata | Your own key-value pairs (up to 50; keys up to 40 characters, values up to 500). We store and return them and never act on them. |

\* required

**Errors of its own.** [`hold_extension_used`](https://rcms-tickets-test.web.app/docs/errors.md#hold_extension_used), [`hold_expired`](https://rcms-tickets-test.web.app/docs/errors.md#hold_expired), [`hold_released`](https://rcms-tickets-test.web.app/docs/errors.md#hold_released), [`hold_consumed`](https://rcms-tickets-test.web.app/docs/errors.md#hold_consumed). The errors every operation can answer are on [the errors page](https://rcms-tickets-test.web.app/docs/errors.md).

## See which networks hold the most of an event

`GET /v1/events/{id}/hold_networks`

Operation id `listHoldNetworks`. MCP tool `list_hold_networks`. SDK `tickets.holds.networks`.

Says which networks hold the most of an event right now, most first, by a keyed hash: never an address. For an organizer who thinks a sale is under attack. A venue's wifi or a carrier can look the same, so read it before you stop one.

**Who may call it.** Any one of: An API key with scope `full`. Any other scope answers `insufficient_scope`; A signed-in dashboard member whose role has `org.manage` (owner, admin).

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `id` * | path | string | An id starting with evt_. |

**Answers 200.** The networks holding the most, hashed.

**Fields** (`HoldNetworks`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "hold_networks" |  |
| `event` * | string | An id starting with evt_. |
| `as_of` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `networks` * | array of object | The networks holding the most, most first, at most 50. A real venue's wifi or a carrier can look like this too: read it before you stop one. |

\* required

## Let go of one network's open holds, and stop it for a while

`POST /v1/events/{id}/hold_networks/release`

Operation id `releaseNetworkHolds`. MCP tool `release_network_holds`. SDK `tickets.holds.releaseNetwork`.

Lets go of one network's open holds on an event and gives it only "busy" there for a while, so it can't simply hold again. Takes a `dry_run`, leaves an audit row, and never touches an order.

**Who may call it.** Any one of: An API key with scope `full`. Any other scope answers `insufficient_scope`; A signed-in dashboard member whose role has `org.manage` (owner, admin).

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `id` * | path | string | An id starting with evt_. |

**Request body** (`ReleaseNetworkHoldsInput`)

| Field | Type | Description |
| --- | --- | --- |
| `network` * | string | One network on one org: a keyed hash of its address, never the address. The same address reads the same across this org's events. |
| `block_minutes` | integer | How long this network gets only "busy" on this event, so it can't simply hold again. 0 lifts a block and stops none. |
| `dry_run` | boolean | Say what would happen and change nothing. |

\* required

```json
{
  "network": "net_0123456789abcdef",
  "block_minutes": 60,
  "dry_run": true
}
```

**Answers 200.** What became of them. Paid orders are never touched.

**Fields** (`NetworkHoldsReleased`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "network_holds_released" |  |
| `event` * | string | An id starting with evt_. |
| `network` * | string | One network on one org: a keyed hash of its address, never the address. The same address reads the same across this org's events. |
| `dry_run` * | boolean |  |
| `open_holds` * | integer | Its open holds when this was asked. |
| `tickets` * | integer |  |
| `released` * | integer | Let go now. None on a dry run. |
| `left_alone` * | integer | Already paid for, or with a payment running on a hosted link: a sale is never undone by this. |
| `failed` * | integer | Could not be let go right now, so ask again. They run out by themselves. |
| `blocked_until` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |

\* required
