# Checkout links

> Hosted checkout pages for sellers with no site (off unless turned on)

Source: https://tickets.roostertail.com/docs/reference/checkout_links

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

## List hosted checkout links

`GET /v1/checkout_links`

Operation id `listCheckoutLinks`. MCP tool `list_checkout_links`. SDK `tickets.checkoutLinks.list`.

Hosted checkout links, filtered by event or active. They are off unless the org turned on `hosted_checkout_enabled`.

**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_. |
| `active` | query | "true" \| "false" |  |

**Answers 200.** A page of links.

**Fields**

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

\* required

## Make a hosted checkout link

`POST /v1/checkout_links`

Operation id `createCheckoutLink`. MCP tool `create_checkout_link`. SDK `tickets.checkoutLinks.create`.

Makes a hosted checkout page (`/c/:id`) for sellers with no site of their own: which types and add-ons it offers, an optional code, a limit and an end time. Needs `hosted_checkout_enabled`, else `feature_disabled`: an agent signed in as a member turns it on with `update_org`, and a person under Settings.

**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 `catalog.write` (owner, admin, staff).

**Request body** (`CreateCheckoutLinkInput`)

| Field | Type | Description |
| --- | --- | --- |
| `event` * | string | An id starting with evt_. |
| `name` | string |  |
| `ticket_types` | "all" \| array of string | Empty: no tickets, so it must offer an add-on bought for the order (parking). |
| `add_ons` | "all" \| array of string | With no ticket types, only add-ons bought for the order. |
| `code` | string | A promo or access code as typed; case does not matter. |
| `limit` | integer |  |
| `expires_at` | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `utm` | object |  |
| `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. |

\* required

```json
{
  "event": "evt_yrd2027",
  "ticket_types": [
    "tt_ga_weekend"
  ]
}
```

**Answers 201.** The link.

**Fields** (`CheckoutLink`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "checkout_link" |  |
| `id` * | string | An id starting with chl_. |
| `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_. |
| `name` * | string \| null |  |
| `url` * | string | The page (/c/:id). |
| `active` * | boolean |  |
| `ticket_types` * | "all" \| array of string |  |
| `add_ons` * | "all" \| array of string |  |
| `code` * | string \| null | Applied for everyone who opens it. |
| `limit` * | integer \| null | Orders it may take, or null. |
| `orders` * | integer |  |
| `expires_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `utm` * | object |  |
| `created_at` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `updated_at` * | string (date-time) | 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.** [`feature_disabled`](https://tickets.roostertail.com/docs/errors.md#feature_disabled). The errors every operation can answer are on [the errors page](https://tickets.roostertail.com/docs/errors.md).

## Retrieve a checkout link

`GET /v1/checkout_links/{id}`

Operation id `getCheckoutLink`. MCP tool `get_checkout_link`. SDK `tickets.checkoutLinks.retrieve`.

One hosted checkout link with what it offers, its limit, its end time and whether it is active.

**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 chl_. |

**Answers 200.** The link.

**Fields** (`CheckoutLink`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "checkout_link" |  |
| `id` * | string | An id starting with chl_. |
| `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_. |
| `name` * | string \| null |  |
| `url` * | string | The page (/c/:id). |
| `active` * | boolean |  |
| `ticket_types` * | "all" \| array of string |  |
| `add_ons` * | "all" \| array of string |  |
| `code` * | string \| null | Applied for everyone who opens it. |
| `limit` * | integer \| null | Orders it may take, or null. |
| `orders` * | integer |  |
| `expires_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `utm` * | object |  |
| `created_at` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `updated_at` * | string (date-time) | 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

## Change or turn off a checkout link

`PATCH /v1/checkout_links/{id}`

Operation id `updateCheckoutLink`. MCP tool `update_checkout_link`. SDK `tickets.checkoutLinks.update`.

Renames a link, changes its limit or end time, or turns it off with `active: false`.

**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 `catalog.write` (owner, admin, staff).

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

**Request body** (`UpdateCheckoutLinkInput`)

| Field | Type | Description |
| --- | --- | --- |
| `name` | string \| null |  |
| `active` | boolean |  |
| `limit` | integer \| null |  |
| `expires_at` | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `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
{
  "active": false
}
```

**Answers 200.** Updated.

**Fields** (`CheckoutLink`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "checkout_link" |  |
| `id` * | string | An id starting with chl_. |
| `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_. |
| `name` * | string \| null |  |
| `url` * | string | The page (/c/:id). |
| `active` * | boolean |  |
| `ticket_types` * | "all" \| array of string |  |
| `add_ons` * | "all" \| array of string |  |
| `code` * | string \| null | Applied for everyone who opens it. |
| `limit` * | integer \| null | Orders it may take, or null. |
| `orders` * | integer |  |
| `expires_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `utm` * | object |  |
| `created_at` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `updated_at` * | string (date-time) | 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
