# Refunds

> Money back, whole or part

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

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 refunds

`GET /v1/refunds`

Operation id `listRefunds`. MCP tool `list_refunds`. SDK `tickets.refunds.list`.

Refunds, newest first, filtered by order or event, each with its status and amount.

**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… |
| `order` | query | string | An id starting with ord_. |
| `event` | query | string | An id starting with evt_. |
| `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 refunds.

**Fields**

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

\* required

## Refund an order, whole or part

`POST /v1/refunds`

Operation id `createRefund`. MCP tool `create_refund`. SDK `tickets.refunds.create`.

Refunds an order whole or in part: by `amount`, or by naming tickets and add-ons (their share of fees and tax comes with them). `dry_run: true` answers the refund it would make without doing it. The refund is `pending` until the payment provider answers; refunds of external payments are recorded at once. A refund cannot be more than what is left (`refund_exceeds_remaining`). Only one refund of an order can be on its way at a time: while one is `pending`, a new refund or its dry run is refused with `order_not_refundable`; that answer is kept under its key, so try again with a new `Idempotency-Key` once the first has ended. A `503 outcome_unknown` means the refund may have started: read it, or repeat with the same `Idempotency-Key`, and never make another under a new key. A same-key retry of a refund the provider refused answers `payment_failed`. A refund still pending after 14 days raises an alert to the operator. Refund protection (a `pass_through` add-on) is left alone unless asked for: `refund_pass_through: true`, or naming it in `add_ons`; left out, an event_cancelled, event_postponed, duplicate or fraudulent refund gives it back and any other reason does not. `refund_pass_through: true` with no amount, tickets or add-ons gives back the protection and nothing else, on a refunded ticket too, and voids nothing. So `{"reason": "event_cancelled", "refund_pass_through": true}` returns only the protection, while `{"reason": "event_cancelled"}` returns everything. Beside named tickets or add-ons, `true` takes the order's protection with them. With an `amount` the organizer's money goes first, so an amount that does not reach the protection and asks for it is refused (`parameter_invalid`).

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

**Request body** (`CreateRefundInput`)

| Field | Type | Description |
| --- | --- | --- |
| `order` * | string | An id starting with ord_. |
| `amount` | integer | Minor units to refund; default: the lines of the tickets and add-ons named, or everything left. |
| `tickets` | array of string | Tickets to refund and void. |
| `add_ons` | array of object |  |
| `refund_fees` | boolean | Refund the passed-on fees of what is refunded. |
| `refund_pass_through` | boolean | Also give back pass-through money (refund protection). Left out, it follows the reason: an event_cancelled, event_postponed, duplicate or fraudulent refund returns it, any other leaves it with whoever holds it. Naming a… |
| `reason` | "requested_by_customer" \| "event_cancelled" \| "event_postponed" \| "duplicate" \| "fraudulent" \| "exchange" \| "other" | Why. `event_cancelled` is refused unless the event is cancelled: it is the cancel job's own word, and it returns no seats. |
| `note` | string |  |
| `notify` | boolean | Email the buyer. |
| `dry_run` | boolean | Work out the refund (lines, fees, tax, allocations) and change nothing: answers a RefundPreview. |

\* required

```json
{
  "order": "ord_abc123",
  "tickets": [
    "tkt_ga001"
  ],
  "dry_run": true
}
```

**Answers 200.** dry_run: the refund it would make; nothing changed.

**Fields** (`RefundPreview`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "refund_preview" |  |
| `order` * | string | An id starting with ord_. |
| `amount` * | object | What the refund would give back. |
| `fees` * | object | Passed-on fees included in amount. |
| `tax` * | object | Tax included in amount. |
| `pass_through` | Money | Given only when more than 0: the part of amount that is pass-through money (refund protection). |
| `tickets` * | array of string | Tickets it would void. |
| `add_ons` * | array of object |  |
| `allocations` * | array of object |  |
| `recorded_only` * | boolean |  |
| `amount_refundable_after` * | object | What would be left to refund on the order. |
| `status_after` * | "pending" \| "paid" \| "partially_refunded" \| "refunded" \| "cancelled" \| "disputed" | The order's status after it. |

\* required

**Answers 201.** The refund (pending until the provider answers; external refunds are recorded at once).

**Fields** (`Refund`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "refund" |  |
| `id` * | string | An id starting with rfd_. |
| `mode` * | Mode | test or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix. |
| `order` * | string | An id starting with ord_. |
| `amount` * | Money | An amount of money: whole minor units (cents) and a currency. Never a float. |
| `status` * | "pending" \| "succeeded" \| "failed" |  |
| `reason` * | "requested_by_customer" \| "event_cancelled" \| "event_postponed" \| "duplicate" \| "fraudulent" \| "exchange" \| "other" |  |
| `note` * | string \| null |  |
| `tickets` * | array of string | Tickets it voided. |
| `add_ons` * | array of object |  |
| `allocations` * | array of RefundAllocation | Which payments it goes back to: the order's payments newest first, each up to what is left on it. Their amounts add up to amount; one provider refund each. |
| `recorded_only` * | boolean | An external payment: we record the refund; you return the money. |
| `chargeback` | true | Given only on an entry that stands for a lost chargeback: the bank took this money, nobody refunded it. |
| `provider_reference` * | string \| null |  |
| `failure` * | object |  |
| `created_by` * | Actor | Who made a change. |
| `created_at` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `pass_through` | Money | Given only when more than 0: how much of amount is pass-through money (refund protection) going back to the buyer. The rest came out of the organizer's money. A refund that does not ask for it leaves refund protection a… |

\* required

**Errors of its own.** [`order_not_refundable`](https://tickets.roostertail.com/docs/errors.md#order_not_refundable), [`refund_exceeds_remaining`](https://tickets.roostertail.com/docs/errors.md#refund_exceeds_remaining), [`order_disputed`](https://tickets.roostertail.com/docs/errors.md#order_disputed), [`payment_failed`](https://tickets.roostertail.com/docs/errors.md#payment_failed), [`ticket_void`](https://tickets.roostertail.com/docs/errors.md#ticket_void). The errors every operation can answer are on [the errors page](https://tickets.roostertail.com/docs/errors.md).

## Retrieve a refund

`GET /v1/refunds/{id}`

Operation id `getRefund`. MCP tool `get_refund`. SDK `tickets.refunds.retrieve`.

One refund with its status (`pending`, `succeeded`, `failed`), the amount, and the provider's reference.

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

**Answers 200.** The refund.

**Fields** (`Refund`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "refund" |  |
| `id` * | string | An id starting with rfd_. |
| `mode` * | Mode | test or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix. |
| `order` * | string | An id starting with ord_. |
| `amount` * | Money | An amount of money: whole minor units (cents) and a currency. Never a float. |
| `status` * | "pending" \| "succeeded" \| "failed" |  |
| `reason` * | "requested_by_customer" \| "event_cancelled" \| "event_postponed" \| "duplicate" \| "fraudulent" \| "exchange" \| "other" |  |
| `note` * | string \| null |  |
| `tickets` * | array of string | Tickets it voided. |
| `add_ons` * | array of object |  |
| `allocations` * | array of RefundAllocation | Which payments it goes back to: the order's payments newest first, each up to what is left on it. Their amounts add up to amount; one provider refund each. |
| `recorded_only` * | boolean | An external payment: we record the refund; you return the money. |
| `chargeback` | true | Given only on an entry that stands for a lost chargeback: the bank took this money, nobody refunded it. |
| `provider_reference` * | string \| null |  |
| `failure` * | object |  |
| `created_by` * | Actor | Who made a change. |
| `created_at` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `pass_through` | Money | Given only when more than 0: how much of amount is pass-through money (refund protection) going back to the buyer. The rest came out of the organizer's money. A refund that does not ask for it leaves refund protection a… |

\* required
