Reference
Door sales
Selling at the gate and closing out each device.
Every operation below is also in the OpenAPI document. One that names an MCP tool can be called through the MCP server; one that names none cannot.
List gate sales#
GET /v1/door_sales
Operation id listDoorSales. MCP tool list_door_sales. SDK tickets.doorSales.list.
Gate sales, newest first, filtered by event or device. A device sees only its own sales.
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); A door device that is allowed to sell, for its own event.
| 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_. |
device | query | string | An id starting with dev_. |
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 sales (a device sees its own).
Fields
| Field | Type | Description |
|---|---|---|
object * | "list" | |
data * | array of DoorSale | This page, newest first. |
has_more * | boolean | True when there is another page: pass the last id as starting_after. |
url * | "/v1/door_sales" | The path this list came from (/v1/door_sales). |
* required
Errors of its own. device_token_invalid, device_sales_not_allowed. The errors every operation can answer are on the errors page.
Sell at the gate (from a hold)#
POST /v1/door_sales
Operation id createDoorSale. MCP tool create_door_sale. SDK tickets.doorSales.create.
Sells at the gate from a hold: cash, a card reader's reference or a test token. The sale is admitted at once unless admit is false. Requires an Idempotency-Key, so a retry on bad wifi never sells twice. A 21+ ticket needs id_checked: true.
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 door.sell (owner, admin, staff); A door device that is allowed to sell, for its own event.
Request body (CreateDoorSaleInput)
| Field | Type | Description |
|---|---|---|
hold * | string | The hold made for this sale (POST /v1/holds, with a device token or the dashboard): its price is the total to take. Consumed exactly once, like an order's. |
buyer | object | Nothing is required. An email gets the tickets by email; only a phone gets them by text, where texts are on and the org allows its country. No tick is needed for that: marketing is only about future shows. delivery… |
payment * | object | cash and card_reader are recorded as external payments; test is the test provider. |
admit | boolean | Admit the tickets now (only those valid today). |
gate | string | A gate or door name ("Gate B"). |
id_checked | boolean | Someone looked at their ID. A ticket with a min_age is admitted by the sale only with this; without it the ticket is sold, not admitted, and the door's Check admits it through Look up. |
* required
{
"hold": "hold_door1",
"buyer": {
"name": "Pat Walkup",
"marketing": {
"email": false
}
},
"payment": {
"method": "cash",
"amount": 66600,
"tendered": 70000
}
}Answers 201. Sold (and admitted); the hold is consumed.
Fields (DoorSale)
| Field | Type | Description |
|---|---|---|
object * | "door_sale" | |
id * | string | An id starting with dsl_. |
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_. |
device * | string | null | null when sold from the dashboard. |
order * | string | An id starting with ord_. |
items * | array of OrderItem | |
method * | "cash" | "card_reader" | "test" | |
amount * | Money | An amount of money: whole minor units (cents) and a currency. Never a float. |
change_due * | Money | null | |
admitted * | array of string | |
close_out * | string | null | The close-out it was counted in. |
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. |
order_number | string | The order's number, for the buyer to show at the door. |
tickets | array of DoorSaleTicket | Every ticket the sale made and what the admission did with it. Absent until finished. |
day | string | null | The event day the server's clock gave at the admission (a night past midnight is still its own day). |
delivery | object | What we will try to send: an email by email only, only a phone number by text. It is a promise to try: give them the order number either way. |
finished | boolean | False while the tickets are not made and admitted yet: asking again with the same Idempotency-Key finishes it, and a sweep does if nobody asks. |
* required
Errors of its own. device_token_invalid, device_sales_not_allowed, event_not_on_sale, hold_expired, hold_released, hold_consumed, amount_mismatch, payment_declined, payment_failed, provider_unavailable, consent_requires_phone, order_maximum_exceeded, payment_reference_conflict. The errors every operation can answer are on the errors page.
What a sale screen may ask: whether messages go out, and the words#
GET /v1/events/{id}/door_sale_setup
Operation id getDoorSaleSetup. MCP tool get_door_sale_setup. SDK tickets.events.doorSaleSetup.
What a sale screen may ask: whether messages go out, and the consent words to show next to the mobile field.
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 door.sell (owner, admin, staff); A door device that is allowed to sell, for its own event.
| Parameter | In | Type | Description |
|---|---|---|---|
id * | path | string | An id starting with evt_. |
Answers 200. The event's switches and consent words.
Fields (DoorSaleSetup)
| Field | Type | Description |
|---|---|---|
object * | "door_sale_setup" | |
event * | string | An id starting with evt_. |
emails_on * | boolean | The event's switch, else the organization's. |
texts_on * | boolean | The event's switch, else the organization's. |
consent_texts * | object | The exact words to show; null: not asked. A text goes only with a tick in the sms words. |
* required
Errors of its own. device_token_invalid, device_sales_not_allowed. The errors every operation can answer are on the errors page.
Retrieve a gate sale#
GET /v1/door_sales/{id}
Operation id getDoorSale. MCP tool get_door_sale. SDK tickets.doorSales.retrieve.
One gate sale with its payment, its tickets and whether it was admitted at the door.
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); A door device that is allowed to sell, for its own event.
| Parameter | In | Type | Description |
|---|---|---|---|
id * | path | string | An id starting with dsl_. |
Answers 200. The sale.
Fields (DoorSale)
| Field | Type | Description |
|---|---|---|
object * | "door_sale" | |
id * | string | An id starting with dsl_. |
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_. |
device * | string | null | null when sold from the dashboard. |
order * | string | An id starting with ord_. |
items * | array of OrderItem | |
method * | "cash" | "card_reader" | "test" | |
amount * | Money | An amount of money: whole minor units (cents) and a currency. Never a float. |
change_due * | Money | null | |
admitted * | array of string | |
close_out * | string | null | The close-out it was counted in. |
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. |
order_number | string | The order's number, for the buyer to show at the door. |
tickets | array of DoorSaleTicket | Every ticket the sale made and what the admission did with it. Absent until finished. |
day | string | null | The event day the server's clock gave at the admission (a night past midnight is still its own day). |
delivery | object | What we will try to send: an email by email only, only a phone number by text. It is a promise to try: give them the order number either way. |
finished | boolean | False while the tickets are not made and admitted yet: asking again with the same Idempotency-Key finishes it, and a sweep does if nobody asks. |
* required
Errors of its own. device_token_invalid, device_sales_not_allowed. The errors every operation can answer are on the errors page.
List close-outs#
GET /v1/close_outs
Operation id listCloseOuts. MCP tool list_close_outs. SDK tickets.closeOuts.list.
Close-outs of a device's cash and card, newest first, filtered by event or device.
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); A door device that is allowed to sell, for its own event.
| 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_. |
device | query | string | An id starting with dev_. |
Answers 200. A page of close-outs.
Fields
| Field | Type | Description |
|---|---|---|
object * | "list" | |
data * | array of CloseOut | This page, newest first. |
has_more * | boolean | True when there is another page: pass the last id as starting_after. |
url * | "/v1/close_outs" | The path this list came from (/v1/close_outs). |
* required
Errors of its own. device_token_invalid, device_sales_not_allowed. The errors every operation can answer are on the errors page.
Close out a device's cash and card#
POST /v1/close_outs
Operation id createCloseOut. MCP tool create_close_out. SDK tickets.closeOuts.create.
Closes out a device's cash and card at the end of a shift. dry_run: true shows the totals so far.
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 door.sell (owner, admin, staff); A door device that is allowed to sell, for its own event.
Request body (CreateCloseOutInput)
| Field | Type | Description |
|---|---|---|
device | string | null | A device closes itself out without it. null, with event: the sales made from the dashboard. |
event | string | The event whose dashboard sales device: null closes. |
dry_run | boolean | Show the totals without closing. |
{
"device": "dev_gateb1",
"dry_run": true
}Answers 200. dry_run: the totals so far.
Fields (CloseOut)
| Field | Type | Description |
|---|---|---|
object * | "close_out" | |
id * | string | An id starting with clo_. |
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_. |
device * | string | null | An id starting with dev_. |
period_start * | string (date-time) | After the device's previous close-out (or its first sale). |
period_end * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
sales * | integer | |
tickets * | integer | |
cash * | Money | An amount of money: whole minor units (cents) and a currency. Never a float. |
card_reader * | Money | An amount of money: whole minor units (cents) and a currency. Never a float. |
test * | Money | An amount of money: whole minor units (cents) and a currency. Never a float. |
total * | Money | An amount of money: whole minor units (cents) and a currency. Never a float. |
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. |
references | array of string | The card reader receipt numbers of these sales, to check against the reader. |
* required
Answers 201. Closed out.
Fields (CloseOut)
| Field | Type | Description |
|---|---|---|
object * | "close_out" | |
id * | string | An id starting with clo_. |
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_. |
device * | string | null | An id starting with dev_. |
period_start * | string (date-time) | After the device's previous close-out (or its first sale). |
period_end * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
sales * | integer | |
tickets * | integer | |
cash * | Money | An amount of money: whole minor units (cents) and a currency. Never a float. |
card_reader * | Money | An amount of money: whole minor units (cents) and a currency. Never a float. |
test * | Money | An amount of money: whole minor units (cents) and a currency. Never a float. |
total * | Money | An amount of money: whole minor units (cents) and a currency. Never a float. |
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. |
references | array of string | The card reader receipt numbers of these sales, to check against the reader. |
* required
Errors of its own. device_token_invalid, device_sales_not_allowed, invalid_state_transition. The errors every operation can answer are on the errors page.
Retrieve a close-out#
GET /v1/close_outs/{id}
Operation id getCloseOut. MCP tool get_close_out. SDK tickets.closeOuts.retrieve.
One close-out with the cash and card totals it settled and who closed it.
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); A door device that is allowed to sell, for its own event.
| Parameter | In | Type | Description |
|---|---|---|---|
id * | path | string | An id starting with clo_. |
Answers 200. The close-out.
Fields (CloseOut)
| Field | Type | Description |
|---|---|---|
object * | "close_out" | |
id * | string | An id starting with clo_. |
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_. |
device * | string | null | An id starting with dev_. |
period_start * | string (date-time) | After the device's previous close-out (or its first sale). |
period_end * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
sales * | integer | |
tickets * | integer | |
cash * | Money | An amount of money: whole minor units (cents) and a currency. Never a float. |
card_reader * | Money | An amount of money: whole minor units (cents) and a currency. Never a float. |
test * | Money | An amount of money: whole minor units (cents) and a currency. Never a float. |
total * | Money | An amount of money: whole minor units (cents) and a currency. Never a float. |
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. |
references | array of string | The card reader receipt numbers of these sales, to check against the reader. |
* required
Errors of its own. device_token_invalid, device_sales_not_allowed. The errors every operation can answer are on the errors page.