# Orders

> Orders from holds: the buyer, consent, attribution, the payment, the tickets. Search, fixes, resends, disputes

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

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 orders

`GET /v1/orders`

Operation id `listOrders`. MCP tool `list_orders`. SDK `tickets.orders.list`.

Orders, newest first, filtered by event, status, code, channel, source, partner, comp or reason, and sortable. It does not search by a buyer's email, phone or name, because those would end up in URLs and logs: use `POST /v1/orders/search` for that.

**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 | "pending" \| "paid" \| "partially_refunded" \| "refunded" \| "cancelled" \| "disputed" | pending (waiting for its payment), paid, partially_refunded, refunded, cancelled, disputed. Moves by the order state machine. |
| `number` | query | string |  |
| `code` | query | string |  |
| `channel` | query | "api" \| "checkout_link" \| "door" \| "dashboard" \| "guest_list" |  |
| `source` | query | string | The last touch's utm_source. |
| `partner` | query | string | An id starting with ptr_. |
| `comp` | query | "true" \| "false" |  |
| `comp_reason` | query | string | Comps given for exactly this reason (the guest list grouped by reason). |
| `sort` | query | "-created_at" \| "created_at" \| "-total" \| "total" \| "buyer_name" | -created_at (newest first, the default), created_at, -total / total (by price.total), buyer_name (A to Z). Cursors follow the sort. |
| `include` | query | "total_count" | total_count: the page also carries total_count, every match of the filters (one count query; omit it when you only page). |
| `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 orders, in the sort asked. To search for a person (a name, email or phone) use POST /v1/orders/search: those never go in a URL.

**Fields**

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "list" |  |
| `data` * | array of Order | This page, newest first. |
| `has_more` * | boolean | True when there is another page: pass the last id as starting_after. |
| `url` * | "/v1/orders" | The path this list came from (/v1/orders). |
| `total_count` * | integer \| null | With include=total_count: every match of the filters, across all pages; null otherwise. |

\* required

## Turn a hold into an order with its payment

`POST /v1/orders`

Operation id `createOrder`. MCP tool `create_order`. SDK `tickets.orders.create`.

Turns a hold into an order with its payment, issues the tickets and sends the confirmation email (unless `notify.email` is false). Pay the buyer's card with your own processor first, then send `payment: { provider: "external", reference, amount }` with the hold's total. The amount must equal the hold's total (`amount_mismatch`). Sending the same external `reference` on the same hold again answers the order it already made (200), so a retry after a timeout is safe; the same reference on another hold answers `payment_reference_conflict`. `answers` holds one value per question the event and its ticket types ask, and a key nobody asks is refused (`parameter_invalid`), so the `date_of_birth` in the example is only right for an event that asks it. In test mode `payment: { provider: "test", token }` simulates a card result.

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

**Request body** (`CreateOrderInput`)

| Field | Type | Description |
| --- | --- | --- |
| `hold` * | string | An id starting with hold_. |
| `buyer` * | BuyerInput |  |
| `answers` | Answers | Answers by question key, at most 250. |
| `attendees` | array of AttendeeInput | One per ticket of each type that asks for holder details. |
| `payment` * | PaymentInput | How the order was paid. external: you took the money yourself; test: our fake card processor (test mode only); square: a card token charged on the org's connected Square account. |
| `ad_consent` | "granted" \| "denied" \| "unknown" | What the cookie banner says now, if it may have changed since the hold. It can only narrow: a "denied" here stops conversions and takes the browser and click ids off the order and the hold; a "granted" never widens what… |
| `notify` | object | Send our email or text (default: the event's settings). |
| `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: when it was made and paid (at or after its hold's created_at). |

\* required

```json
{
  "hold": "hold_abc123",
  "buyer": {
    "name": "Jordan Rivera",
    "email": "jordan@example.com",
    "phone": "+13135550123",
    "marketing": {
      "email": true,
      "sms": false
    }
  },
  "payment": {
    "provider": "external",
    "reference": "pi_3Q8xYzEXAMPLE",
    "amount": 35950
  }
}
```

**Answers 200.** The order this external payment reference already made.

**Fields** (`Order`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "order" |  |
| `id` * | string | An id starting with ord_. |
| `mode` * | Mode | test or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix. |
| `number` * | string | What people read out at the door or on the phone ("7KQ2-M9XD"). |
| `event` * | string | An id starting with evt_. |
| `status` * | OrderStatus | pending (waiting for its payment), paid, partially_refunded, refunded, cancelled, disputed. Moves by the order state machine. |
| `channel` * | "api" \| "checkout_link" \| "door" \| "dashboard" \| "guest_list" |  |
| `comp` * | Comp \| null |  |
| `buyer` * | Buyer | Who bought it. |
| `answers` * | object | Answers to order-scope questions. |
| `items` * | array of OrderItem | What the order holds now: a completed exchange changes these (price keeps the original breakdown). |
| `price` * | object | The breakdown it was bought at. Exchanges price their own changes (exchanges). |
| `payments` * | array of Payment | Every payment, oldest first: the order's own (or a gate sale's), then each exchange's top-up. Empty for a comp. |
| `refunds` * | array of Refund |  |
| `amount_paid` * | object | The sum of succeeded payments. |
| `amount_refunded` * | object | The sum of succeeded refunds, plus a lost dispute's amount (the money went back by chargeback). |
| `amount_refundable` * | object | amount_paid − amount_refunded: the most a refund may be (refund_exceeds_remaining past it). |
| `pass_through_held` | Money | Given only when more than 0: refund protection held now for someone else, inside amount_refundable. It reads every refund and a lost chargeback: don't work it out from the stamps, a chargeback isn't stamped. |
| `exchanges` * | array of string | Completed exchanges, oldest first. |
| `dispute` * | Dispute \| null |  |
| `code` * | string \| null |  |
| `attribution` * | Attribution \| null |  |
| `tracking_event_id` * | string | The event_id our server-side Purchase uses: give it to your browser pixel so the two deduplicate. |
| `hold` * | string \| null | An id starting with hold_. |
| `checkout_link` * | string \| null | The hosted checkout link it came through. |
| `notify` * | object | Whether our email and text go out for it. On a comp or a gate sale this only says what went when it was made, and `comp.not_sent_why` says why neither did: a change, a postponement or a cancellation still reaches them,… |
| `url` * | string \| null | The private page with all of the order's tickets (/t/:token); null for a read key or a viewer. |
| `tickets_status` * | "pending" \| "issued" \| "none" | issued once its tickets exist (moments after it is paid); none for a cancelled or unpaid order. |
| `paid_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `cancelled_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `payment_end` | "not_charged" \| "not_confirmed" \| "taken_after_end" | What is known of the money on an order that was cancelled while it was held by your own processor. not_charged: your processor can never take it. not_confirmed: a person cancelled it and nobody has confirmed the money y… |
| `mail_failed` | object | Emails about this order that did not go, by kind, with when we gave up. confirmation is the buyer's tickets email: send it again with POST /v1/orders/{id}/resend, which takes this off. holder is a named holder's. Absent… |
| `mail_unsure` | object | Emails about this order where we can't tell if it went, and it is too late to ask again safely. The same kinds. Absent when there are none. |
| `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. |
| `tickets` * | array of Ticket | Its tickets, once issued (tickets_status). |

\* required

**Answers 201.** The order (an external reference seen before answers the same order, 200).

**Fields** (`Order`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "order" |  |
| `id` * | string | An id starting with ord_. |
| `mode` * | Mode | test or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix. |
| `number` * | string | What people read out at the door or on the phone ("7KQ2-M9XD"). |
| `event` * | string | An id starting with evt_. |
| `status` * | OrderStatus | pending (waiting for its payment), paid, partially_refunded, refunded, cancelled, disputed. Moves by the order state machine. |
| `channel` * | "api" \| "checkout_link" \| "door" \| "dashboard" \| "guest_list" |  |
| `comp` * | Comp \| null |  |
| `buyer` * | Buyer | Who bought it. |
| `answers` * | object | Answers to order-scope questions. |
| `items` * | array of OrderItem | What the order holds now: a completed exchange changes these (price keeps the original breakdown). |
| `price` * | object | The breakdown it was bought at. Exchanges price their own changes (exchanges). |
| `payments` * | array of Payment | Every payment, oldest first: the order's own (or a gate sale's), then each exchange's top-up. Empty for a comp. |
| `refunds` * | array of Refund |  |
| `amount_paid` * | object | The sum of succeeded payments. |
| `amount_refunded` * | object | The sum of succeeded refunds, plus a lost dispute's amount (the money went back by chargeback). |
| `amount_refundable` * | object | amount_paid − amount_refunded: the most a refund may be (refund_exceeds_remaining past it). |
| `pass_through_held` | Money | Given only when more than 0: refund protection held now for someone else, inside amount_refundable. It reads every refund and a lost chargeback: don't work it out from the stamps, a chargeback isn't stamped. |
| `exchanges` * | array of string | Completed exchanges, oldest first. |
| `dispute` * | Dispute \| null |  |
| `code` * | string \| null |  |
| `attribution` * | Attribution \| null |  |
| `tracking_event_id` * | string | The event_id our server-side Purchase uses: give it to your browser pixel so the two deduplicate. |
| `hold` * | string \| null | An id starting with hold_. |
| `checkout_link` * | string \| null | The hosted checkout link it came through. |
| `notify` * | object | Whether our email and text go out for it. On a comp or a gate sale this only says what went when it was made, and `comp.not_sent_why` says why neither did: a change, a postponement or a cancellation still reaches them,… |
| `url` * | string \| null | The private page with all of the order's tickets (/t/:token); null for a read key or a viewer. |
| `tickets_status` * | "pending" \| "issued" \| "none" | issued once its tickets exist (moments after it is paid); none for a cancelled or unpaid order. |
| `paid_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `cancelled_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `payment_end` | "not_charged" \| "not_confirmed" \| "taken_after_end" | What is known of the money on an order that was cancelled while it was held by your own processor. not_charged: your processor can never take it. not_confirmed: a person cancelled it and nobody has confirmed the money y… |
| `mail_failed` | object | Emails about this order that did not go, by kind, with when we gave up. confirmation is the buyer's tickets email: send it again with POST /v1/orders/{id}/resend, which takes this off. holder is a named holder's. Absent… |
| `mail_unsure` | object | Emails about this order where we can't tell if it went, and it is too late to ask again safely. The same kinds. Absent when there are none. |
| `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. |
| `tickets` * | array of Ticket | Its tickets, once issued (tickets_status). |

\* 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), [`amount_mismatch`](https://rcms-tickets-test.web.app/docs/errors.md#amount_mismatch), [`payment_reference_conflict`](https://rcms-tickets-test.web.app/docs/errors.md#payment_reference_conflict), [`provider_unavailable`](https://rcms-tickets-test.web.app/docs/errors.md#provider_unavailable), [`payment_declined`](https://rcms-tickets-test.web.app/docs/errors.md#payment_declined), [`payment_failed`](https://rcms-tickets-test.web.app/docs/errors.md#payment_failed), [`consent_requires_phone`](https://rcms-tickets-test.web.app/docs/errors.md#consent_requires_phone), [`currency_mismatch`](https://rcms-tickets-test.web.app/docs/errors.md#currency_mismatch), [`test_mode_only`](https://rcms-tickets-test.web.app/docs/errors.md#test_mode_only), [`event_not_on_sale`](https://rcms-tickets-test.web.app/docs/errors.md#event_not_on_sale), [`order_maximum_exceeded`](https://rcms-tickets-test.web.app/docs/errors.md#order_maximum_exceeded). The errors every operation can answer are on [the errors page](https://rcms-tickets-test.web.app/docs/errors.md).

## List and search orders, the search in the body (never in a URL)

`POST /v1/orders/search`

Operation id `searchOrders`. MCP tool `search_orders`. SDK `tickets.orders.search`.

The same list and filters as `GET /v1/orders`, with the search terms (`q`, `email`, `phone`, `name`) in the body so a person's details never go in a URL. `include: "total_count"` adds the number of matches.

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

**Request body**

| Field | Type | Description |
| --- | --- | --- |
| `limit` | integer | How many to return, 1 to 100 (default 20). |
| `starting_after` | string | An id from the page before: the page after it. |
| `ending_before` | 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 filter or sort (page… |
| `event` | string | An id starting with evt_. |
| `status` | OrderStatus | pending (waiting for its payment), paid, partially_refunded, refunded, cancelled, disputed. Moves by the order state machine. |
| `q` | string | An email, phone, order number, or the start of any word of a name. |
| `email` | string |  |
| `phone` | string |  |
| `name` | string | The start of any word of the buyer's name. |
| `number` | string |  |
| `code` | string |  |
| `channel` | "api" \| "checkout_link" \| "door" \| "dashboard" \| "guest_list" |  |
| `source` | string | The last touch's utm_source. |
| `partner` | string | An id starting with ptr_. |
| `comp` | "true" \| "false" |  |
| `comp_reason` | string | Comps given for exactly this reason (the guest list grouped by reason). |
| `sort` | "-created_at" \| "created_at" \| "-total" \| "total" \| "buyer_name" | -created_at (newest first, the default), created_at, -total / total (by price.total), buyer_name (A to Z). Cursors follow the sort. |
| `include` | "total_count" | total_count: the page also carries total_count, every match of the filters (one count query; omit it when you only page). |
| `created_gte` | string (date-time) | Only those created at or after this instant. |
| `created_lt` | string (date-time) | Only those created before this instant. |

```json
{
  "email": "jordan@example.com",
  "status": "paid",
  "limit": 25,
  "include": "total_count"
}
```

**Answers 200.** A page of orders: the same filters and answer as GET /v1/orders. Use this for a buyer's email, phone or name, which a URL would put in logs and browser history.

**Fields**

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "list" |  |
| `data` * | array of Order | This page, newest first. |
| `has_more` * | boolean | True when there is another page: pass the last id as starting_after. |
| `url` * | "/v1/orders/search" | The path this list came from (/v1/orders/search). |
| `total_count` * | integer \| null | With include=total_count: every match of the filters, across all pages; null otherwise. |

\* required

## Check an order before you charge a card

`POST /v1/orders/check`

Operation id `checkOrder`. MCP tool `check_order`. SDK `tickets.orders.check`.

Runs every check `POST /v1/orders` would refuse an order for, and answers `{ object: "order_check", valid: true }` or the same error, with nothing written and no payment. Send it before you charge a card, so a bad field never costs a charge and a refund.

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

**Request body** (`CheckOrderInput`)

| Field | Type | Description |
| --- | --- | --- |
| `hold` * | string | An id starting with hold_. |
| `buyer` * | BuyerInput |  |
| `answers` | Answers | Answers by question key, at most 250. |
| `attendees` | array of AttendeeInput | One per ticket of each type that asks for holder details. |
| `ad_consent` | "granted" \| "denied" \| "unknown" | What the cookie banner says now, if it may have changed since the hold. It can only narrow: a "denied" here stops conversions and takes the browser and click ids off the order and the hold; a "granted" never widens what… |
| `notify` | object | Send our email or text (default: the event's settings). |
| `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
{
  "hold": "hold_abc123",
  "buyer": {
    "name": "Jordan Rivera",
    "email": "jordan@example.com",
    "phone": "+13135550123",
    "marketing": {
      "email": true,
      "sms": false
    }
  }
}
```

**Answers 200.** Nothing would refuse it. Nothing was written.

**Fields** (`OrderCheck`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "order_check" |  |
| `valid` * | true |  |

\* 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), [`consent_requires_phone`](https://rcms-tickets-test.web.app/docs/errors.md#consent_requires_phone), [`event_not_on_sale`](https://rcms-tickets-test.web.app/docs/errors.md#event_not_on_sale), [`order_maximum_exceeded`](https://rcms-tickets-test.web.app/docs/errors.md#order_maximum_exceeded). The errors every operation can answer are on [the errors page](https://rcms-tickets-test.web.app/docs/errors.md).

## Retrieve an order

`GET /v1/orders/{id}`

Operation id `getOrder`. MCP tool `get_order`. SDK `tickets.orders.retrieve`.

One order with its tickets, add-on lines, buyer, consent evidence, attribution, payments and refunds. A read key sees the order without what opens the door or a holder's page.

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

**Answers 200.** The order with its tickets.

**Fields** (`Order`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "order" |  |
| `id` * | string | An id starting with ord_. |
| `mode` * | Mode | test or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix. |
| `number` * | string | What people read out at the door or on the phone ("7KQ2-M9XD"). |
| `event` * | string | An id starting with evt_. |
| `status` * | OrderStatus | pending (waiting for its payment), paid, partially_refunded, refunded, cancelled, disputed. Moves by the order state machine. |
| `channel` * | "api" \| "checkout_link" \| "door" \| "dashboard" \| "guest_list" |  |
| `comp` * | Comp \| null |  |
| `buyer` * | Buyer | Who bought it. |
| `answers` * | object | Answers to order-scope questions. |
| `items` * | array of OrderItem | What the order holds now: a completed exchange changes these (price keeps the original breakdown). |
| `price` * | object | The breakdown it was bought at. Exchanges price their own changes (exchanges). |
| `payments` * | array of Payment | Every payment, oldest first: the order's own (or a gate sale's), then each exchange's top-up. Empty for a comp. |
| `refunds` * | array of Refund |  |
| `amount_paid` * | object | The sum of succeeded payments. |
| `amount_refunded` * | object | The sum of succeeded refunds, plus a lost dispute's amount (the money went back by chargeback). |
| `amount_refundable` * | object | amount_paid − amount_refunded: the most a refund may be (refund_exceeds_remaining past it). |
| `pass_through_held` | Money | Given only when more than 0: refund protection held now for someone else, inside amount_refundable. It reads every refund and a lost chargeback: don't work it out from the stamps, a chargeback isn't stamped. |
| `exchanges` * | array of string | Completed exchanges, oldest first. |
| `dispute` * | Dispute \| null |  |
| `code` * | string \| null |  |
| `attribution` * | Attribution \| null |  |
| `tracking_event_id` * | string | The event_id our server-side Purchase uses: give it to your browser pixel so the two deduplicate. |
| `hold` * | string \| null | An id starting with hold_. |
| `checkout_link` * | string \| null | The hosted checkout link it came through. |
| `notify` * | object | Whether our email and text go out for it. On a comp or a gate sale this only says what went when it was made, and `comp.not_sent_why` says why neither did: a change, a postponement or a cancellation still reaches them,… |
| `url` * | string \| null | The private page with all of the order's tickets (/t/:token); null for a read key or a viewer. |
| `tickets_status` * | "pending" \| "issued" \| "none" | issued once its tickets exist (moments after it is paid); none for a cancelled or unpaid order. |
| `paid_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `cancelled_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `payment_end` | "not_charged" \| "not_confirmed" \| "taken_after_end" | What is known of the money on an order that was cancelled while it was held by your own processor. not_charged: your processor can never take it. not_confirmed: a person cancelled it and nobody has confirmed the money y… |
| `mail_failed` | object | Emails about this order that did not go, by kind, with when we gave up. confirmation is the buyer's tickets email: send it again with POST /v1/orders/{id}/resend, which takes this off. holder is a named holder's. Absent… |
| `mail_unsure` | object | Emails about this order where we can't tell if it went, and it is too late to ask again safely. The same kinds. Absent when there are none. |
| `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. |
| `tickets` * | array of Ticket | Its tickets, once issued (tickets_status). |

\* required

## Fix the buyer's name, email or phone

`PATCH /v1/orders/{id}`

Operation id `updateOrder`. MCP tool `update_order`. SDK `tickets.orders.update`.

Fixes the buyer's name, email or phone, answers or metadata. Changing the email moves the order's private links to the new address.

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

**Request body** (`UpdateOrderInput`)

| Field | Type | Description |
| --- | --- | --- |
| `buyer` | object |  |
| `answers` | Answers | Answers by question key, at most 250. |
| `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
{
  "buyer": {
    "email": "jordan.rivera@example.com"
  }
}
```

**Answers 200.** Updated.

**Fields** (`Order`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "order" |  |
| `id` * | string | An id starting with ord_. |
| `mode` * | Mode | test or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix. |
| `number` * | string | What people read out at the door or on the phone ("7KQ2-M9XD"). |
| `event` * | string | An id starting with evt_. |
| `status` * | OrderStatus | pending (waiting for its payment), paid, partially_refunded, refunded, cancelled, disputed. Moves by the order state machine. |
| `channel` * | "api" \| "checkout_link" \| "door" \| "dashboard" \| "guest_list" |  |
| `comp` * | Comp \| null |  |
| `buyer` * | Buyer | Who bought it. |
| `answers` * | object | Answers to order-scope questions. |
| `items` * | array of OrderItem | What the order holds now: a completed exchange changes these (price keeps the original breakdown). |
| `price` * | object | The breakdown it was bought at. Exchanges price their own changes (exchanges). |
| `payments` * | array of Payment | Every payment, oldest first: the order's own (or a gate sale's), then each exchange's top-up. Empty for a comp. |
| `refunds` * | array of Refund |  |
| `amount_paid` * | object | The sum of succeeded payments. |
| `amount_refunded` * | object | The sum of succeeded refunds, plus a lost dispute's amount (the money went back by chargeback). |
| `amount_refundable` * | object | amount_paid − amount_refunded: the most a refund may be (refund_exceeds_remaining past it). |
| `pass_through_held` | Money | Given only when more than 0: refund protection held now for someone else, inside amount_refundable. It reads every refund and a lost chargeback: don't work it out from the stamps, a chargeback isn't stamped. |
| `exchanges` * | array of string | Completed exchanges, oldest first. |
| `dispute` * | Dispute \| null |  |
| `code` * | string \| null |  |
| `attribution` * | Attribution \| null |  |
| `tracking_event_id` * | string | The event_id our server-side Purchase uses: give it to your browser pixel so the two deduplicate. |
| `hold` * | string \| null | An id starting with hold_. |
| `checkout_link` * | string \| null | The hosted checkout link it came through. |
| `notify` * | object | Whether our email and text go out for it. On a comp or a gate sale this only says what went when it was made, and `comp.not_sent_why` says why neither did: a change, a postponement or a cancellation still reaches them,… |
| `url` * | string \| null | The private page with all of the order's tickets (/t/:token); null for a read key or a viewer. |
| `tickets_status` * | "pending" \| "issued" \| "none" | issued once its tickets exist (moments after it is paid); none for a cancelled or unpaid order. |
| `paid_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `cancelled_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `payment_end` | "not_charged" \| "not_confirmed" \| "taken_after_end" | What is known of the money on an order that was cancelled while it was held by your own processor. not_charged: your processor can never take it. not_confirmed: a person cancelled it and nobody has confirmed the money y… |
| `mail_failed` | object | Emails about this order that did not go, by kind, with when we gave up. confirmation is the buyer's tickets email: send it again with POST /v1/orders/{id}/resend, which takes this off. holder is a named holder's. Absent… |
| `mail_unsure` | object | Emails about this order where we can't tell if it went, and it is too late to ask again safely. The same kinds. Absent when there are none. |
| `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. |
| `tickets` * | array of Ticket | Its tickets, once issued (tickets_status). |

\* required

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

## Cancel an unpaid order

`POST /v1/orders/{id}/cancel`

Operation id `cancelOrder`. MCP tool `cancel_order`. SDK `tickets.orders.cancel`.

Cancels an order that is still pending (unpaid). A paid order is refunded instead (`order_not_cancellable`).

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

**Request body** (`CancelOrderInput`)

| Field | Type | Description |
| --- | --- | --- |
| `reason` | string |  |

```json
{}
```

**Answers 200.** Cancelled.

**Fields** (`Order`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "order" |  |
| `id` * | string | An id starting with ord_. |
| `mode` * | Mode | test or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix. |
| `number` * | string | What people read out at the door or on the phone ("7KQ2-M9XD"). |
| `event` * | string | An id starting with evt_. |
| `status` * | OrderStatus | pending (waiting for its payment), paid, partially_refunded, refunded, cancelled, disputed. Moves by the order state machine. |
| `channel` * | "api" \| "checkout_link" \| "door" \| "dashboard" \| "guest_list" |  |
| `comp` * | Comp \| null |  |
| `buyer` * | Buyer | Who bought it. |
| `answers` * | object | Answers to order-scope questions. |
| `items` * | array of OrderItem | What the order holds now: a completed exchange changes these (price keeps the original breakdown). |
| `price` * | object | The breakdown it was bought at. Exchanges price their own changes (exchanges). |
| `payments` * | array of Payment | Every payment, oldest first: the order's own (or a gate sale's), then each exchange's top-up. Empty for a comp. |
| `refunds` * | array of Refund |  |
| `amount_paid` * | object | The sum of succeeded payments. |
| `amount_refunded` * | object | The sum of succeeded refunds, plus a lost dispute's amount (the money went back by chargeback). |
| `amount_refundable` * | object | amount_paid − amount_refunded: the most a refund may be (refund_exceeds_remaining past it). |
| `pass_through_held` | Money | Given only when more than 0: refund protection held now for someone else, inside amount_refundable. It reads every refund and a lost chargeback: don't work it out from the stamps, a chargeback isn't stamped. |
| `exchanges` * | array of string | Completed exchanges, oldest first. |
| `dispute` * | Dispute \| null |  |
| `code` * | string \| null |  |
| `attribution` * | Attribution \| null |  |
| `tracking_event_id` * | string | The event_id our server-side Purchase uses: give it to your browser pixel so the two deduplicate. |
| `hold` * | string \| null | An id starting with hold_. |
| `checkout_link` * | string \| null | The hosted checkout link it came through. |
| `notify` * | object | Whether our email and text go out for it. On a comp or a gate sale this only says what went when it was made, and `comp.not_sent_why` says why neither did: a change, a postponement or a cancellation still reaches them,… |
| `url` * | string \| null | The private page with all of the order's tickets (/t/:token); null for a read key or a viewer. |
| `tickets_status` * | "pending" \| "issued" \| "none" | issued once its tickets exist (moments after it is paid); none for a cancelled or unpaid order. |
| `paid_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `cancelled_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `payment_end` | "not_charged" \| "not_confirmed" \| "taken_after_end" | What is known of the money on an order that was cancelled while it was held by your own processor. not_charged: your processor can never take it. not_confirmed: a person cancelled it and nobody has confirmed the money y… |
| `mail_failed` | object | Emails about this order that did not go, by kind, with when we gave up. confirmation is the buyer's tickets email: send it again with POST /v1/orders/{id}/resend, which takes this off. holder is a named holder's. Absent… |
| `mail_unsure` | object | Emails about this order where we can't tell if it went, and it is too late to ask again safely. The same kinds. Absent when there are none. |
| `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. |
| `tickets` * | array of Ticket | Its tickets, once issued (tickets_status). |

\* required

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

## Close a pending order the processor can no longer speak for

`POST /v1/orders/{id}/close_unconfirmed`

Operation id `closeOrderUnconfirmed`. MCP tool `close_order_unconfirmed`. SDK `tickets.orders.closeUnconfirmed`.

For a pending order the processor can no longer speak for (its Square account is gone): closes it so its units go back on sale, and records that the payment was never confirmed. The money may be in Square: look there. Square is asked first when it can answer, and a payment it says was taken settles the order and refuses this. An owner, or a full key. If money turns out to have been taken after this, it goes back to the card.

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

**Request body** (`CloseOrderUnconfirmedInput`)

| Field | Type | Description |
| --- | --- | --- |
| `acknowledge_money_may_be_in_square` * | true | You understand the money may be in Square, and you will look there. This closes the order; it moves no money. |
| `note` | string | Only your team sees this. |

\* required

```json
{
  "acknowledge_money_may_be_in_square": true,
  "note": "The Square account was removed."
}
```

**Answers 200.** Closed: its units are back on sale, and it records that the payment was never confirmed.

**Fields** (`Order`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "order" |  |
| `id` * | string | An id starting with ord_. |
| `mode` * | Mode | test or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix. |
| `number` * | string | What people read out at the door or on the phone ("7KQ2-M9XD"). |
| `event` * | string | An id starting with evt_. |
| `status` * | OrderStatus | pending (waiting for its payment), paid, partially_refunded, refunded, cancelled, disputed. Moves by the order state machine. |
| `channel` * | "api" \| "checkout_link" \| "door" \| "dashboard" \| "guest_list" |  |
| `comp` * | Comp \| null |  |
| `buyer` * | Buyer | Who bought it. |
| `answers` * | object | Answers to order-scope questions. |
| `items` * | array of OrderItem | What the order holds now: a completed exchange changes these (price keeps the original breakdown). |
| `price` * | object | The breakdown it was bought at. Exchanges price their own changes (exchanges). |
| `payments` * | array of Payment | Every payment, oldest first: the order's own (or a gate sale's), then each exchange's top-up. Empty for a comp. |
| `refunds` * | array of Refund |  |
| `amount_paid` * | object | The sum of succeeded payments. |
| `amount_refunded` * | object | The sum of succeeded refunds, plus a lost dispute's amount (the money went back by chargeback). |
| `amount_refundable` * | object | amount_paid − amount_refunded: the most a refund may be (refund_exceeds_remaining past it). |
| `pass_through_held` | Money | Given only when more than 0: refund protection held now for someone else, inside amount_refundable. It reads every refund and a lost chargeback: don't work it out from the stamps, a chargeback isn't stamped. |
| `exchanges` * | array of string | Completed exchanges, oldest first. |
| `dispute` * | Dispute \| null |  |
| `code` * | string \| null |  |
| `attribution` * | Attribution \| null |  |
| `tracking_event_id` * | string | The event_id our server-side Purchase uses: give it to your browser pixel so the two deduplicate. |
| `hold` * | string \| null | An id starting with hold_. |
| `checkout_link` * | string \| null | The hosted checkout link it came through. |
| `notify` * | object | Whether our email and text go out for it. On a comp or a gate sale this only says what went when it was made, and `comp.not_sent_why` says why neither did: a change, a postponement or a cancellation still reaches them,… |
| `url` * | string \| null | The private page with all of the order's tickets (/t/:token); null for a read key or a viewer. |
| `tickets_status` * | "pending" \| "issued" \| "none" | issued once its tickets exist (moments after it is paid); none for a cancelled or unpaid order. |
| `paid_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `cancelled_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `payment_end` | "not_charged" \| "not_confirmed" \| "taken_after_end" | What is known of the money on an order that was cancelled while it was held by your own processor. not_charged: your processor can never take it. not_confirmed: a person cancelled it and nobody has confirmed the money y… |
| `mail_failed` | object | Emails about this order that did not go, by kind, with when we gave up. confirmation is the buyer's tickets email: send it again with POST /v1/orders/{id}/resend, which takes this off. holder is a named holder's. Absent… |
| `mail_unsure` | object | Emails about this order where we can't tell if it went, and it is too late to ask again safely. The same kinds. Absent when there are none. |
| `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. |
| `tickets` * | array of Ticket | Its tickets, once issued (tickets_status). |

\* required

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

## Say a held external payment was captured, or lost

`POST /v1/orders/{id}/external_payment`

Operation id `settleExternalPayment`. MCP tool `settle_external_payment`. SDK `tickets.orders.settleExternalPayment`.

Tells RCMS Tickets what became of money your own processor was holding (an `external` payment sent with `held: true`). `captured`: your processor took it, and the pending order becomes paid and its tickets issue. `lost`: it can never take it, and the order is cancelled, its seats go back and the buyer is told the card was not charged. `may_capture` asks first and changes nothing: `void_me` means the event was cancelled or this buyer has bought again, so void it and say `lost`. A repeat changes nothing. It is your word, as the payment was: a lost payment on an order that is already paid is refused, because its tickets are out. A key with full scope only.

**Who may call it.** An API key with scope `full`. Any other scope answers `insufficient_scope`.

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

**Request body** (`SettleExternalPaymentInput`)

| Field | Type | Description |
| --- | --- | --- |
| `reference` * | string | The reference the held payment was sent with (your processor's payment id). |
| `outcome` * | "captured" \| "lost" \| "may_capture" | captured: your processor took the money. lost: it can never take it (the authorization was cancelled, expired or voided). may_capture: asks before taking it, and changes nothing: the answer is capture, or void_me if the… |
| `why` | "processor" \| "event_cancelled" \| "bought_again" | With lost: why it can never be taken. processor (the default): your processor ended it. event_cancelled or bought_again: you voided it because may_capture said void_me. |
| `note` | string | Only your team sees this. |

\* required

```json
{
  "reference": "SQPAYEXAMPLE0001",
  "outcome": "captured"
}
```

**Answers 200.** The order now: paid (captured), or cancelled (lost, or it had already ended). A repeat answers the same, changed false.

**Fields** (`ExternalPaymentResult`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "external_payment_result" |  |
| `order` * | Order | A purchase (or a comp): the buyer, the items, the price, the payment and its tickets. |
| `outcome` * | "paid" \| "cancelled" \| "capture" \| "void_me" | Where the order stands now: paid (the money is in) or cancelled (the payment was lost, or the order had already ended). To may_capture: capture (take it) or void_me (do not take it: void it, then say lost with why). |
| `void_why` | "event_cancelled" \| "bought_again" \| "order_ended" | With void_me: why not to take it. |
| `changed` * | boolean | True when this call moved the order. False for a repeat, or when the order had already ended. |
| `money_after_end` * | boolean | True when you said captured for an order that had already ended: the money was taken and no order keeps it. Refund it at your processor. An ALERT was raised. |

\* required

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

## Send the tickets again

`POST /v1/orders/{id}/resend`

Operation id `resendOrder`. MCP tool `resend_order`. SDK `tickets.orders.resend`.

Sends the order's tickets to the buyer again, by email, text or both.

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

**Request body** (`ResendOrderInput`)

| Field | Type | Description |
| --- | --- | --- |
| `channel` | "email" \| "sms" \| "both" |  |

```json
{
  "channel": "both"
}
```

**Answers 200.** Queued to send.

**Fields** (`Order`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "order" |  |
| `id` * | string | An id starting with ord_. |
| `mode` * | Mode | test or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix. |
| `number` * | string | What people read out at the door or on the phone ("7KQ2-M9XD"). |
| `event` * | string | An id starting with evt_. |
| `status` * | OrderStatus | pending (waiting for its payment), paid, partially_refunded, refunded, cancelled, disputed. Moves by the order state machine. |
| `channel` * | "api" \| "checkout_link" \| "door" \| "dashboard" \| "guest_list" |  |
| `comp` * | Comp \| null |  |
| `buyer` * | Buyer | Who bought it. |
| `answers` * | object | Answers to order-scope questions. |
| `items` * | array of OrderItem | What the order holds now: a completed exchange changes these (price keeps the original breakdown). |
| `price` * | object | The breakdown it was bought at. Exchanges price their own changes (exchanges). |
| `payments` * | array of Payment | Every payment, oldest first: the order's own (or a gate sale's), then each exchange's top-up. Empty for a comp. |
| `refunds` * | array of Refund |  |
| `amount_paid` * | object | The sum of succeeded payments. |
| `amount_refunded` * | object | The sum of succeeded refunds, plus a lost dispute's amount (the money went back by chargeback). |
| `amount_refundable` * | object | amount_paid − amount_refunded: the most a refund may be (refund_exceeds_remaining past it). |
| `pass_through_held` | Money | Given only when more than 0: refund protection held now for someone else, inside amount_refundable. It reads every refund and a lost chargeback: don't work it out from the stamps, a chargeback isn't stamped. |
| `exchanges` * | array of string | Completed exchanges, oldest first. |
| `dispute` * | Dispute \| null |  |
| `code` * | string \| null |  |
| `attribution` * | Attribution \| null |  |
| `tracking_event_id` * | string | The event_id our server-side Purchase uses: give it to your browser pixel so the two deduplicate. |
| `hold` * | string \| null | An id starting with hold_. |
| `checkout_link` * | string \| null | The hosted checkout link it came through. |
| `notify` * | object | Whether our email and text go out for it. On a comp or a gate sale this only says what went when it was made, and `comp.not_sent_why` says why neither did: a change, a postponement or a cancellation still reaches them,… |
| `url` * | string \| null | The private page with all of the order's tickets (/t/:token); null for a read key or a viewer. |
| `tickets_status` * | "pending" \| "issued" \| "none" | issued once its tickets exist (moments after it is paid); none for a cancelled or unpaid order. |
| `paid_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `cancelled_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `payment_end` | "not_charged" \| "not_confirmed" \| "taken_after_end" | What is known of the money on an order that was cancelled while it was held by your own processor. not_charged: your processor can never take it. not_confirmed: a person cancelled it and nobody has confirmed the money y… |
| `mail_failed` | object | Emails about this order that did not go, by kind, with when we gave up. confirmation is the buyer's tickets email: send it again with POST /v1/orders/{id}/resend, which takes this off. holder is a named holder's. Absent… |
| `mail_unsure` | object | Emails about this order where we can't tell if it went, and it is too late to ask again safely. The same kinds. Absent when there are none. |
| `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. |
| `tickets` * | array of Ticket | Its tickets, once issued (tickets_status). |

\* required

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

## Mark an order disputed (freezes its tickets)

`POST /v1/orders/{id}/dispute`

Operation id `openDispute`. MCP tool `open_dispute`. SDK `tickets.orders.openDispute`.

Marks an order disputed. Its tickets freeze until the dispute closes: a frozen ticket does not get through the door. The order cannot be changed, refunded or exchanged while disputed.

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

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

**Request body** (`OpenDisputeInput`)

| Field | Type | Description |
| --- | --- | --- |
| `reason` | "fraudulent" \| "not_received" \| "duplicate" \| "unrecognized" \| "other" |  |
| `amount` | integer | Default: the order's amount_refundable. |
| `evidence_due_by` | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `provider_reference` | string |  |

```json
{
  "reason": "not_received"
}
```

**Answers 200.** Disputed.

**Fields** (`Order`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "order" |  |
| `id` * | string | An id starting with ord_. |
| `mode` * | Mode | test or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix. |
| `number` * | string | What people read out at the door or on the phone ("7KQ2-M9XD"). |
| `event` * | string | An id starting with evt_. |
| `status` * | OrderStatus | pending (waiting for its payment), paid, partially_refunded, refunded, cancelled, disputed. Moves by the order state machine. |
| `channel` * | "api" \| "checkout_link" \| "door" \| "dashboard" \| "guest_list" |  |
| `comp` * | Comp \| null |  |
| `buyer` * | Buyer | Who bought it. |
| `answers` * | object | Answers to order-scope questions. |
| `items` * | array of OrderItem | What the order holds now: a completed exchange changes these (price keeps the original breakdown). |
| `price` * | object | The breakdown it was bought at. Exchanges price their own changes (exchanges). |
| `payments` * | array of Payment | Every payment, oldest first: the order's own (or a gate sale's), then each exchange's top-up. Empty for a comp. |
| `refunds` * | array of Refund |  |
| `amount_paid` * | object | The sum of succeeded payments. |
| `amount_refunded` * | object | The sum of succeeded refunds, plus a lost dispute's amount (the money went back by chargeback). |
| `amount_refundable` * | object | amount_paid − amount_refunded: the most a refund may be (refund_exceeds_remaining past it). |
| `pass_through_held` | Money | Given only when more than 0: refund protection held now for someone else, inside amount_refundable. It reads every refund and a lost chargeback: don't work it out from the stamps, a chargeback isn't stamped. |
| `exchanges` * | array of string | Completed exchanges, oldest first. |
| `dispute` * | Dispute \| null |  |
| `code` * | string \| null |  |
| `attribution` * | Attribution \| null |  |
| `tracking_event_id` * | string | The event_id our server-side Purchase uses: give it to your browser pixel so the two deduplicate. |
| `hold` * | string \| null | An id starting with hold_. |
| `checkout_link` * | string \| null | The hosted checkout link it came through. |
| `notify` * | object | Whether our email and text go out for it. On a comp or a gate sale this only says what went when it was made, and `comp.not_sent_why` says why neither did: a change, a postponement or a cancellation still reaches them,… |
| `url` * | string \| null | The private page with all of the order's tickets (/t/:token); null for a read key or a viewer. |
| `tickets_status` * | "pending" \| "issued" \| "none" | issued once its tickets exist (moments after it is paid); none for a cancelled or unpaid order. |
| `paid_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `cancelled_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `payment_end` | "not_charged" \| "not_confirmed" \| "taken_after_end" | What is known of the money on an order that was cancelled while it was held by your own processor. not_charged: your processor can never take it. not_confirmed: a person cancelled it and nobody has confirmed the money y… |
| `mail_failed` | object | Emails about this order that did not go, by kind, with when we gave up. confirmation is the buyer's tickets email: send it again with POST /v1/orders/{id}/resend, which takes this off. holder is a named holder's. Absent… |
| `mail_unsure` | object | Emails about this order where we can't tell if it went, and it is too late to ask again safely. The same kinds. Absent when there are none. |
| `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. |
| `tickets` * | array of Ticket | Its tickets, once issued (tickets_status). |

\* required

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

## Close a dispute: won or lost

`POST /v1/orders/{id}/dispute/close`

Operation id `closeDispute`. MCP tool `close_dispute`. SDK `tickets.orders.closeDispute`.

Closes a dispute as `won` (tickets valid again) or `lost` (tickets void, the money is gone).

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

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

**Request body** (`CloseDisputeInput`)

| Field | Type | Description |
| --- | --- | --- |
| `outcome` * | "won" \| "lost" | won: the tickets thaw; lost: they are voided, the order ends refunded and the dispute's amount counts in amount_refunded. |

\* required

```json
{
  "outcome": "won"
}
```

**Answers 200.** Closed.

**Fields** (`Order`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "order" |  |
| `id` * | string | An id starting with ord_. |
| `mode` * | Mode | test or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix. |
| `number` * | string | What people read out at the door or on the phone ("7KQ2-M9XD"). |
| `event` * | string | An id starting with evt_. |
| `status` * | OrderStatus | pending (waiting for its payment), paid, partially_refunded, refunded, cancelled, disputed. Moves by the order state machine. |
| `channel` * | "api" \| "checkout_link" \| "door" \| "dashboard" \| "guest_list" |  |
| `comp` * | Comp \| null |  |
| `buyer` * | Buyer | Who bought it. |
| `answers` * | object | Answers to order-scope questions. |
| `items` * | array of OrderItem | What the order holds now: a completed exchange changes these (price keeps the original breakdown). |
| `price` * | object | The breakdown it was bought at. Exchanges price their own changes (exchanges). |
| `payments` * | array of Payment | Every payment, oldest first: the order's own (or a gate sale's), then each exchange's top-up. Empty for a comp. |
| `refunds` * | array of Refund |  |
| `amount_paid` * | object | The sum of succeeded payments. |
| `amount_refunded` * | object | The sum of succeeded refunds, plus a lost dispute's amount (the money went back by chargeback). |
| `amount_refundable` * | object | amount_paid − amount_refunded: the most a refund may be (refund_exceeds_remaining past it). |
| `pass_through_held` | Money | Given only when more than 0: refund protection held now for someone else, inside amount_refundable. It reads every refund and a lost chargeback: don't work it out from the stamps, a chargeback isn't stamped. |
| `exchanges` * | array of string | Completed exchanges, oldest first. |
| `dispute` * | Dispute \| null |  |
| `code` * | string \| null |  |
| `attribution` * | Attribution \| null |  |
| `tracking_event_id` * | string | The event_id our server-side Purchase uses: give it to your browser pixel so the two deduplicate. |
| `hold` * | string \| null | An id starting with hold_. |
| `checkout_link` * | string \| null | The hosted checkout link it came through. |
| `notify` * | object | Whether our email and text go out for it. On a comp or a gate sale this only says what went when it was made, and `comp.not_sent_why` says why neither did: a change, a postponement or a cancellation still reaches them,… |
| `url` * | string \| null | The private page with all of the order's tickets (/t/:token); null for a read key or a viewer. |
| `tickets_status` * | "pending" \| "issued" \| "none" | issued once its tickets exist (moments after it is paid); none for a cancelled or unpaid order. |
| `paid_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `cancelled_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `payment_end` | "not_charged" \| "not_confirmed" \| "taken_after_end" | What is known of the money on an order that was cancelled while it was held by your own processor. not_charged: your processor can never take it. not_confirmed: a person cancelled it and nobody has confirmed the money y… |
| `mail_failed` | object | Emails about this order that did not go, by kind, with when we gave up. confirmation is the buyer's tickets email: send it again with POST /v1/orders/{id}/resend, which takes this off. holder is a named holder's. Absent… |
| `mail_unsure` | object | Emails about this order where we can't tell if it went, and it is too late to ask again safely. The same kinds. Absent when there are none. |
| `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. |
| `tickets` * | array of Ticket | Its tickets, once issued (tickets_status). |

\* required

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