Skip to content

Reference

Comps

Free tickets, one at a time or a guest list.

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.

Give tickets away#

POST /v1/comps

Operation id createComp. MCP tool create_comp. SDK tickets.comps.create.

Gives tickets away: a paid-looking order of total 0, with a required reason the guest list is grouped by. Takes the same items as a hold, but not refund protection (a pass_through add-on): no money is paid, so nothing would be held for it. Comps do not need a payment and count as comps in reports.

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

Request body (CreateCompInput)

FieldTypeDescription
event *stringAn id starting with evt_.
items *array of HoldItemInput
buyer *objectWho the comp is for. A name is enough (the door finds them by name). An email sends the tickets by email. Only a phone number sends them by text, where texts are on and the org allows its country; if not, nothing goes a…
attendeesarray of AttendeeInput
reason *stringWhy ("Artist guest list", "Radio giveaway").
codestringThe partner code it is credited to (in reports; a comp never takes one of its uses).
notifyboolean
metadataobjectYour 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.
atstring (date-time)Test mode only (live answers test_mode_only): record this as having happened then, at most 730 days ago and never in the future. created_at, paid_at and the event log rows carry it, so reports bucket it there; a hold st…

* required

JSON
{
  "event": "evt_yrd2027",
  "items": [
    {
      "ticket_type": "tt_ga_weekend",
      "quantity": 2
    }
  ],
  "buyer": {
    "name": "Pat Guest"
  },
  "reason": "Radio giveaway"
}

Answers 201. The comp order (paid, total 0).

Fields (Order)

FieldTypeDescription
object *"order"
id *stringAn id starting with ord_.
mode *Modetest or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix.
number *stringWhat people read out at the door or on the phone ("7KQ2-M9XD").
event *stringAn id starting with evt_.
status *OrderStatuspending (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 *BuyerWho bought it.
answers *objectAnswers to order-scope questions.
items *array of OrderItemWhat the order holds now: a completed exchange changes these (price keeps the original breakdown).
price *objectThe breakdown it was bought at. Exchanges price their own changes (exchanges).
payments *array of PaymentEvery 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 *objectThe sum of succeeded payments.
amount_refunded *objectThe sum of succeeded refunds, plus a lost dispute's amount (the money went back by chargeback).
amount_refundable *objectamount_paid − amount_refunded: the most a refund may be (refund_exceeds_remaining past it).
pass_through_heldMoneyGiven 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 stringCompleted exchanges, oldest first.
dispute *Dispute | null
code *string | null
attribution *Attribution | null
tracking_event_id *stringThe event_id our server-side Purchase uses: give it to your browser pixel so the two deduplicate.
hold *string | nullAn id starting with hold_.
checkout_link *string | nullThe hosted checkout link it came through.
notify *objectWhether 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 | nullThe 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 | nullAn instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC.
cancelled_at *string | nullAn 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_failedobjectEmails 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_unsureobjectEmails 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 *MetadataYour 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 TicketIts tickets, once issued (tickets_status).

* required

Errors of its own. event_not_on_sale, sold_out, quantity_unavailable, too_many_tickets, too_many_pools, code_invalid, test_mode_only, add_on_requires_ticket, ticket_type_unavailable. The errors every operation can answer are on the errors page.

A guest list: many comps at once#

POST /v1/comps/import

Operation id importComps. MCP tool import_comps. SDK tickets.comps.import.

A guest list: many comps at once from rows of name, email or phone, ticket type and quantity. dry_run: true checks each row and changes nothing. Without it the import runs as a background job (202).

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

Request body (ImportCompsInput)

FieldTypeDescription
event *stringAn id starting with evt_.
rows *array of GuestListRowThe guest list (the dashboard turns the CSV into these). Each row becomes its own comp order.
reason *stringFor rows without their own.
notifyboolean
dry_runbooleanCheck every row and change nothing.

* required

JSON
{
  "event": "evt_yrd2027",
  "rows": [
    {
      "name": "Pat Guest",
      "ticket_type": "tt_ga_weekend",
      "quantity": 1
    }
  ],
  "reason": "Guest list"
}

Answers 200. dry_run: each row checked.

Fields (CompImportPreview)

FieldTypeDescription
object *"comp_import_preview"
rows *array of object
orders *integer
tickets *integer

* required

Answers 202. The import runs as a job.

Fields (Job)

FieldTypeDescription
object *"job"
id *stringAn id starting with job_.
mode *Modetest or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix.
kind *"event_cancel" | "event_postpone" | "event_changed" | "comp_import" | "test_reset" | "code_batch" | "code_batch_off"
status *"queued" | "running" | "succeeded" | "failed"
event *string | nullAn id starting with evt_.
progress *object
errors *array of object
rows *array | nullcomp_import: every row's outcome, in row order, with the order it made (null for other kinds).
result *object | nullkind-specific totals once finished (orders refunded, comps made). A comp_import has comps_made, rows_failed, and who was made but not sent tickets: texts_not_sent (texts off, a country not allowed, or today's texts used…
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.
finished_at *string | nullAn instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC.

* required

Errors of its own. event_not_on_sale. The errors every operation can answer are on the errors page.