# Settlement

> The statement of what an event took, kept back, refunded, owes the organizer and has paid out (owners and admins). Payouts are recorded by a person or agent and move no money

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

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.

## The settlement statement: totals, payouts and what is still owed

`GET /v1/settlement`

Operation id `getSettlement`. MCP tool `get_settlement`. SDK `tickets.settlement.retrieve`.

The settlement statement for an event or series: what it took, what was kept back as fees, refunded, owed to the organizer and already paid out.

**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 `settlement.read` (owner, admin).

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `event` | query | string | An id starting with evt_. |
| `series` | query | string | Every event with this series tag (one currency). |
| `from` | query | string (date-time) | Money records on or after this instant (an order's own payment counts at its paid time). |
| `to` | query | string (date-time) | Money records before this instant. |

**Answers 200.** The totals.

**Fields** (`Settlement`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "settlement" |  |
| `event` * | string \| null | An id starting with evt_. |
| `series` * | string \| null |  |
| `events` * | array of string | The events on the statement (one, or the series'). |
| `currency` * | Currency | An ISO 4217 currency in lower case. Every one listed has two minor digits. |
| `from` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `to` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `as_of` * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `totals` * | SettlementTotals |  |
| `held_by_organizer` * | SettlementHeld | The totals' money on one side of who holds it. The two sides add up to the totals. |
| `held_by_processor` * | SettlementHeld | The totals' money on one side of who holds it. The two sides add up to the totals. |
| `processor_fees` * | object | What the card processor kept. Its own line: it is on no money record, so totals and lines do not include it. |
| `platform_fee` * | object | What the platform keeps of these sales, out of the organizer's net. Its own line: it is on no money record, so totals and lines do not include it. Zero everywhere for an org with no platform fee. |
| `fees_on_organizer_held` * | integer | Fees charged on money the organizer holds (held_by_organizer.fees). Stated on its own, and not taken off still_owed. |
| `in_flight` * | object | Money on its way, as of now, whatever the period. |
| `payouts` * | object |  |
| `still_owed` * | integer \| null | held_by_processor.net_to_organizer − payouts.received: money a processor holds and has not paid out, before any platform fee (what is left after it is platform_fee.net_after). Below 0 means more was paid out than it hol… |
| `owed_to_others` * | integer \| null | Pass-through money (refund protection) held for someone else, in all: what buyers paid for it, less what was given back. Owed to them, never to the organizer, and not taken off by a payout. It does not reflect anything… |
| `still_owed_exact` * | boolean | false when some lines have no fee and tax split (totals.unsplit_*), or still_owed is null. |
| `net_off_by_at_most` * | integer \| null | How far net_to_organizer and still_owed can be from the truth because of lines with no split: on each order with one, that money plus the fees it still shows. 0 with none. Null for a period, where the fees such a line t… |
| `notes` * | array of string | What to know to read these figures, in words. |

\* required

## The statement's lines: every order's money records

`GET /v1/settlement/lines`

Operation id `getSettlementLines`. MCP tool `get_settlement_lines`. SDK `tickets.settlement.lines`.

The statement's lines: one per order with every money record on it. Page with `cursor` (this list pages forward only).

**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 `settlement.read` (owner, admin).

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `event` | query | string | An id starting with evt_. |
| `series` | query | string | Every event with this series tag (one currency). |
| `from` | query | string (date-time) | Money records on or after this instant (an order's own payment counts at its paid time). |
| `to` | query | string (date-time) | Money records before this instant. |
| `limit` | query | integer | Orders per page, 1 to 100 (a page holds every line of those orders). |
| `cursor` | query | string | `next_cursor` of the page before. |

**Answers 200.** A page of orders' lines.

**Fields** (`SettlementLines`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "settlement_lines" |  |
| `data` * | array of SettlementLine |  |
| `has_more` * | boolean |  |
| `next_cursor` * | string \| null | Pass as `cursor` for the page after; null on the last page. |

\* required

## Recorded payouts

`GET /v1/settlement/payouts`

Operation id `listSettlementPayouts`. MCP tool `list_settlement_payouts`. SDK `tickets.settlement.payouts`.

Payouts that have been recorded, filtered by event or series, voided ones included.

**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 `settlement.read` (owner, admin).

| 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_. |
| `series` | query | string |  |

**Answers 200.** A page of payouts, voided ones included.

**Fields**

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

\* required

## Record a payout (moves no money; the Idempotency-Key header is required)

`POST /v1/settlement/payouts`

Operation id `recordSettlementPayout`. MCP tool `record_settlement_payout`. SDK `tickets.settlement.recordPayout`.

Records a payout someone made outside the system (it moves no money). `Idempotency-Key` is required, so a retry never records it twice.

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

**Request body** (`RecordPayoutInput`)

| Field | Type | Description |
| --- | --- | --- |
| `event` | string | An id starting with evt_. |
| `series` | string |  |
| `amount` * | Money | An amount of money: whole minor units (cents) and a currency. Never a float. |
| `paid_on` * | string | A calendar date, YYYY-MM-DD, with no time and no zone (it never shifts a day). |
| `method` * | "bank_transfer" \| "check" \| "cash" \| "external" \| "other" |  |
| `reference` | string |  |
| `note` | string |  |

\* required

```json
{
  "event": "evt_yrd2027",
  "amount": {
    "amount": 20000,
    "currency": "usd"
  },
  "paid_on": "2027-03-05",
  "method": "bank_transfer",
  "reference": "ACH 1042"
}
```

**Answers 201.** The payout.

**Fields** (`SettlementPayout`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "settlement_payout" |  |
| `id` * | string | An id starting with pyo_. |
| `mode` * | "test" \| "live" |  |
| `event` * | string \| null | An id starting with evt_. |
| `series` * | string \| null |  |
| `amount` * | Money | An amount of money: whole minor units (cents) and a currency. Never a float. |
| `paid_on` * | string | The day the money left (a date, never a time). |
| `method` * | "bank_transfer" \| "check" \| "cash" \| "external" \| "other" |  |
| `reference` * | string \| null | The bank reference, check number or similar. |
| `note` * | string \| null |  |
| `status` * | "recorded" \| "voided" |  |
| `recorded_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. |
| `voided_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `voided_by` * | Actor \| null |  |
| `void_reason` * | string \| null |  |

\* required

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

## Void a payout recorded by mistake

`POST /v1/settlement/payouts/{id}/void`

Operation id `voidSettlementPayout`. MCP tool `void_settlement_payout`. SDK `tickets.settlement.voidPayout`.

Voids a payout that was recorded by mistake, with a reason. The record stays, marked void.

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

**Request body** (`VoidPayoutInput`)

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

\* required

```json
{
  "reason": "Entered twice"
}
```

**Answers 200.** The voided payout.

**Fields** (`SettlementPayout`)

| Field | Type | Description |
| --- | --- | --- |
| `object` * | "settlement_payout" |  |
| `id` * | string | An id starting with pyo_. |
| `mode` * | "test" \| "live" |  |
| `event` * | string \| null | An id starting with evt_. |
| `series` * | string \| null |  |
| `amount` * | Money | An amount of money: whole minor units (cents) and a currency. Never a float. |
| `paid_on` * | string | The day the money left (a date, never a time). |
| `method` * | "bank_transfer" \| "check" \| "cash" \| "external" \| "other" |  |
| `reference` * | string \| null | The bank reference, check number or similar. |
| `note` * | string \| null |  |
| `status` * | "recorded" \| "voided" |  |
| `recorded_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. |
| `voided_at` * | string \| null | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
| `voided_by` * | Actor \| null |  |
| `void_reason` * | string \| null |  |

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