Skip to content

Reference

Door sales

Selling at the gate and closing out each device.

View as Markdown

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.

ParameterInTypeDescription
limitqueryintegerHow many to return, 1 to 100 (default 20).
starting_afterquerystringAn id from the page before: the page after it.
ending_beforequerystringAn 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…
eventquerystringAn id starting with evt_.
devicequerystringAn id starting with dev_.
created_gtequerystring (date-time)Only those created at or after this instant.
created_ltquerystring (date-time)Only those created before this instant.

Answers 200. A page of sales (a device sees its own).

Fields

FieldTypeDescription
object *"list"
data *array of DoorSaleThis page, newest first.
has_more *booleanTrue 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)

FieldTypeDescription
hold *stringThe 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.
buyerobjectNothing 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 *objectcash and card_reader are recorded as external payments; test is the test provider.
admitbooleanAdmit the tickets now (only those valid today).
gatestringA gate or door name ("Gate B").
id_checkedbooleanSomeone 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

JSON
{
  "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)

FieldTypeDescription
object *"door_sale"
id *stringAn id starting with dsl_.
mode *Modetest or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix.
event *stringAn id starting with evt_.
device *string | nullnull when sold from the dashboard.
order *stringAn id starting with ord_.
items *array of OrderItem
method *"cash" | "card_reader" | "test"
amount *MoneyAn amount of money: whole minor units (cents) and a currency. Never a float.
change_due *Money | null
admitted *array of string
close_out *string | nullThe close-out it was counted in.
created_by *ActorWho 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_numberstringThe order's number, for the buyer to show at the door.
ticketsarray of DoorSaleTicketEvery ticket the sale made and what the admission did with it. Absent until finished.
daystring | nullThe event day the server's clock gave at the admission (a night past midnight is still its own day).
deliveryobjectWhat 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.
finishedbooleanFalse 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.

ParameterInTypeDescription
id *pathstringAn id starting with evt_.

Answers 200. The event's switches and consent words.

Fields (DoorSaleSetup)

FieldTypeDescription
object *"door_sale_setup"
event *stringAn id starting with evt_.
emails_on *booleanThe event's switch, else the organization's.
texts_on *booleanThe event's switch, else the organization's.
consent_texts *objectThe 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.

ParameterInTypeDescription
id *pathstringAn id starting with dsl_.

Answers 200. The sale.

Fields (DoorSale)

FieldTypeDescription
object *"door_sale"
id *stringAn id starting with dsl_.
mode *Modetest or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix.
event *stringAn id starting with evt_.
device *string | nullnull when sold from the dashboard.
order *stringAn id starting with ord_.
items *array of OrderItem
method *"cash" | "card_reader" | "test"
amount *MoneyAn amount of money: whole minor units (cents) and a currency. Never a float.
change_due *Money | null
admitted *array of string
close_out *string | nullThe close-out it was counted in.
created_by *ActorWho 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_numberstringThe order's number, for the buyer to show at the door.
ticketsarray of DoorSaleTicketEvery ticket the sale made and what the admission did with it. Absent until finished.
daystring | nullThe event day the server's clock gave at the admission (a night past midnight is still its own day).
deliveryobjectWhat 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.
finishedbooleanFalse 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.

ParameterInTypeDescription
limitqueryintegerHow many to return, 1 to 100 (default 20).
starting_afterquerystringAn id from the page before: the page after it.
ending_beforequerystringAn 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…
eventquerystringAn id starting with evt_.
devicequerystringAn id starting with dev_.

Answers 200. A page of close-outs.

Fields

FieldTypeDescription
object *"list"
data *array of CloseOutThis page, newest first.
has_more *booleanTrue 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)

FieldTypeDescription
devicestring | nullA device closes itself out without it. null, with event: the sales made from the dashboard.
eventstringThe event whose dashboard sales device: null closes.
dry_runbooleanShow the totals without closing.
JSON
{
  "device": "dev_gateb1",
  "dry_run": true
}

Answers 200. dry_run: the totals so far.

Fields (CloseOut)

FieldTypeDescription
object *"close_out"
id *stringAn id starting with clo_.
mode *Modetest or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix.
event *stringAn id starting with evt_.
device *string | nullAn 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 *MoneyAn amount of money: whole minor units (cents) and a currency. Never a float.
card_reader *MoneyAn amount of money: whole minor units (cents) and a currency. Never a float.
test *MoneyAn amount of money: whole minor units (cents) and a currency. Never a float.
total *MoneyAn amount of money: whole minor units (cents) and a currency. Never a float.
created_by *ActorWho 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.
referencesarray of stringThe card reader receipt numbers of these sales, to check against the reader.

* required

Answers 201. Closed out.

Fields (CloseOut)

FieldTypeDescription
object *"close_out"
id *stringAn id starting with clo_.
mode *Modetest or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix.
event *stringAn id starting with evt_.
device *string | nullAn 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 *MoneyAn amount of money: whole minor units (cents) and a currency. Never a float.
card_reader *MoneyAn amount of money: whole minor units (cents) and a currency. Never a float.
test *MoneyAn amount of money: whole minor units (cents) and a currency. Never a float.
total *MoneyAn amount of money: whole minor units (cents) and a currency. Never a float.
created_by *ActorWho 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.
referencesarray of stringThe 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.

ParameterInTypeDescription
id *pathstringAn id starting with clo_.

Answers 200. The close-out.

Fields (CloseOut)

FieldTypeDescription
object *"close_out"
id *stringAn id starting with clo_.
mode *Modetest or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix.
event *stringAn id starting with evt_.
device *string | nullAn 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 *MoneyAn amount of money: whole minor units (cents) and a currency. Never a float.
card_reader *MoneyAn amount of money: whole minor units (cents) and a currency. Never a float.
test *MoneyAn amount of money: whole minor units (cents) and a currency. Never a float.
total *MoneyAn amount of money: whole minor units (cents) and a currency. Never a float.
created_by *ActorWho 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.
referencesarray of stringThe 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.