Contract 4d1e0ad · updated 2026-11-11
Lissen Ticketing
GuidesConfiguration

Events

The door-and-clock record of an occasion — what it holds, what it deliberately does not, and how you stop selling one

An event is a time and a place with a door. It is not the concert.

That distinction is the whole design. The engine records commerce: it holds an event because admission is shared across several offers — three tiers, one door — and the manifest, the door and the clock all need that shared anchor on our side of the wall. Everything that makes someone want to come (lineup, artwork, description, normalized venue identity, the pretty photo) stays in your catalog and joins by id. We store what our own surfaces render — a receipt, a checkout page, a door scan, an invitation — and nothing else.

If you are looking for the sale window, it is on the item, not the event.

The shape on the wire

{
  "id": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22",
  "name": "Acme Winter Social",
  "starts_at": "2026-11-14T19:30:00.000Z",
  "ends_at": "2026-11-15T02:00:00.000Z",
  "timezone": "Europe/London",
  "venue_name": "The Old Dock",
  "venue_address": "12 Wharf Road, London N1 7GS",
  "metadata": {},
  "min_tickets_per_order": null,
  "max_tickets_per_order": 6,
  "max_tickets_per_customer": 10
}
FieldNotes
nameRequired, free text. Displayed on receipts and at the door.
starts_atRequired. Send RFC3339 timestamps with an offset; responses normalize to UTC with milliseconds.
ends_atOptional. When set it must be strictly after starts_at; omit it, or send null, for an event with no fixed end. Responses carry null in that case.
timezoneRequired IANA zone — Europe/London, America/New_York. Anything the platform cannot resolve as a zone is rejected.
venue_nameRequired, free text.
venue_addressOptional, free text, nullable. One string: there is no structured address, and no venue object to reuse.
metadataYours. Opaque key-values the engine stores, echoes on the wire and in every activity payload, and never reads. Put your own event id in here.
min_tickets_per_orderOptional whole number of tickets, at least 1, or null for no minimum. See checkout limits.
max_tickets_per_orderOptional whole number of tickets, at least 1, or null for no maximum.
max_tickets_per_customerOptional whole number of tickets, at least 1, or null for no cap. Counted per purchaser across all their orders for the event.

There is no status, no currency and no display attributes, and that is not an oversight — see gotchas.

Two clocks, on purpose

Send RFC3339 timestamps with an offset; responses normalize to UTC with milliseconds. The venue's IANA zone rides alongside them as a separate field: "doors at 7:30pm" is a fact about the venue, not about UTC, and keeping both lets you render local time correctly even across a daylight-saving boundary, which a fixed offset cannot do.

Changing timezone does not move starts_at. They are independent fields: one is the instant, the other is how to render it.

Checkout limits

An event can limit how many tickets a buyer takes. All three limits count tickets: the sum of the quantities of a checkout's lines whose item belongs to this event. They apply across the event's items together, not to each item, and an item with no event or another event's item does not count.

  • min_tickets_per_order and max_tickets_per_order bound the event's tickets in one checkout. A small event can ask for exactly two by setting both to 2.
  • max_tickets_per_customer is a cumulative cap on one purchaser, the checkout session's customer, across every order and open checkout they have for the event. With a cap of five, a customer who bought two can buy at most three more. Transferring a ticket to someone else does not return the allowance: the cap is about who bought, not who holds.

Each is null or absent for no limit, and responses always carry all three, with null where none is set. Events created before these fields existed have no limits. On a patch, send a number to set a limit, null to clear it, or leave the field out to keep it.

When both are set, min_tickets_per_order must not exceed max_tickets_per_order or max_tickets_per_customer: no checkout could satisfy both. The engine refuses that with 400 invalid_order_limits, param naming the field to change, and checks it against the merged result of a patch, like the event window.

The engine enforces the limits at checkout, whichever client starts the session, so hiding a quantity control is not the enforcement: when a session is created, when its lines or its customer change, and again at completion. See event checkout limits for what counts, when it is checked and the refusals. Direct comps are exempt. The buyer-plane session carries the limits on each line's event: the hosted checkout shows them in plain words and keeps payment disabled until the cart fits, and your own quantity controls can use them to bound a selection before the engine refuses.

Create one

POST/v1/events
curl -X POST https://tickets.lissen.com/api/v1/events \
  -H "Authorization: Bearer tk_test_..." \
  -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \
  -H "Idempotency-Key: 7c1f0a3e-4d29-4f81-9b6b-1e2a5c8d0f44" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Acme Winter Social",
    "starts_at": "2026-11-14T19:30:00Z",
    "ends_at": "2026-11-15T02:00:00Z",
    "timezone": "Europe/London",
    "venue_name": "The Old Dock",
    "venue_address": "12 Wharf Road, London N1 7GS",
    "metadata": { "your_event_id": "winter-social-2026" },
    "max_tickets_per_order": 6,
    "max_tickets_per_customer": 10
  }'

Idempotency-Key is required on this create, as it is on every create in the configuration API. Omitting it is a 400 missing_idempotency_key. Send a fresh UUID per logical event and reuse it for every retry of that one.

Read them

GET/v1/events is keyset-paginated, reverse-chronological, and takes no filters — no date range, no name search. The id is the cursor, so a client that stores the last id it saw can resume from it later.

curl "https://tickets.lissen.com/api/v1/events?limit=50" \
  -H "Authorization: Bearer tk_test_..." \
  -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7"

Retrieving one is GET/v1/events/{id}, with the id from the create.

Who is coming

GET/v1/events/{id}/attendees lists the holders of the event's live tickets, newest ticket first, paged by starting_after set to the last position_id:

curl "https://tickets.lissen.com/api/v1/events/evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22/attendees?limit=50" \
  -H "Authorization: Bearer tk_test_..." \
  -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7"
{
  "data": [
    {
      "object": "attendee",
      "position_id": "pos_0199c4f0-7a21-7c10-9d12-4e8b1f2a3c55",
      "event_id": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22",
      "item_id": "itm_0199c4e7-1d3c-7b21-8c60-5a9e2f4b7d10",
      "item_name": "General admission",
      "holder": {
        "customer_id": "cus_0199c4ee-5c44-7a90-b1d3-2f6e8a0c9b71",
        "name": "Sam Holder",
        "email": "sam@example.com"
      },
      "checked_in": false
    }
  ],
  "has_more": false
}

It is deliberately narrow. The holder is who holds the ticket now, which is not always who bought it; checked_in is true when an admitted, non-voided scan exists. There is no admission code, price, order, buyer or payment state, so the list cannot be walked to a customer's other orders. A revoked ticket is not an attendee. This is the attendee view an event editor has in the dashboard: an event outside their access answers not_found.

Update one

PATCH/v1/events/{id} is a partial update: send only the fields you are changing, and at least one of them. Every field is mutable — including the times and the timezone. The id in the path below is the event created above; substitute your own.

curl -X PATCH https://tickets.lissen.com/api/v1/events/evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22 \
  -H "Authorization: Bearer tk_test_..." \
  -H "Ticketing-Organizer: org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7" \
  -H "Content-Type: application/json" \
  -d '{ "starts_at": "2026-11-14T20:00:00Z", "venue_name": "The New Dock" }'

Two things to know about the merge:

  • The rule is checked against the merged result, not your patch. Moving starts_at past the existing ends_at fails with invalid_event_window even though your patch never mentioned ends_at.
  • metadata is replaced wholesale, not merged. Send the whole object every time you change one key of it.

Idempotency-Key is optional here, and still worth sending.

What the stream sees

The update appends event.updated carrying the full new snapshot plus previous_attributes — the shallow set of fields that actually changed, with their prior values:

{
  "id": "act_0199c4eb-8b76-7f00-a057-9c3d6e1f4a88",
  "type": "event.updated",
  "created": "2026-10-02T11:31:07.482Z",
  "organizer_id": "org_0199c4e2-1f7a-7c31-8d44-2b9f6a1e05c7",
  "actor": { "kind": "api_key", "id": "key_0199c4e1-0a93-7b22-9c58-2f7d1b6e3a04" },
  "request_id": "d2b7f0c4-9a51-4a2f-9c1e-6c4b0a7e12f3",
  "livemode": false,
  "data": {
    "object": {
      "id": "evt_0199c4e5-2b10-7f44-8a91-3c7d0e5f8a22",
      "name": "Acme Winter Social",
      "starts_at": "2026-11-14T20:00:00.000Z",
      "ends_at": "2026-11-15T02:00:00.000Z",
      "timezone": "Europe/London",
      "venue_name": "The New Dock",
      "venue_address": "12 Wharf Road, London N1 7GS",
      "metadata": {},
      "min_tickets_per_order": null,
      "max_tickets_per_order": 6,
      "max_tickets_per_customer": 10
    },
    "previous_attributes": {
      "starts_at": "2026-11-14T19:30:00.000Z",
      "venue_name": "The Old Dock"
    }
  }
}

A field you patched to the value it already held is not in previous_attributes — the diff is computed from the before and after images, not from the keys you sent. A key that did not exist before records null, so "this attribute was added" survives serialization.

Cancelling an event

Cancelling is a recorded fact with a policy behind it, not a flag and not a delete. The organizer decides in advance what cancelling does; cancelling then applies exactly that, with no choices at the time. There is still no delete and no event status field: orders, tickets, refunds and check-ins are all kept, and the event simply has a cancellation attached.

1. Configure the policy

PUT /v1/events/{id}/cancellation_policy saves five independent switches, all required, none defaulted:

SwitchWhen the event is cancelled
stop_new_salesNew checkouts for the event are refused (item_not_sellable, quote blocked_reason: event_cancelled). Off: sales continue.
close_pending_checkoutsOpen checkouts are expired the normal way, their payment intents cancelled. A checkout whose payment has started is left to finish. Off: they keep their ordinary lifecycle.
refund_paid_ticketsEvery paid ticket's money is returned as a money-only refund, so the ticket stays usable unless admission is also disabled. Off: no refund is issued automatically.
disable_admissionDoors refuse the event's tickets and its manifest is empty. Nothing is revoked and no money moves. Off: admission is unaffected.
notify_attendeesOne event_cancellation_notice.requested activity per order, which the notification sink can send as the event_cancelled message. Off: no attendee notice is requested.

Refund and admission are independent, so all four combinations work: refund and keep tickets valid, disable entry without returning money, both, or neither. Saving the policy cancels nothing, and an event with no policy cannot be cancelled (cancellation_policy_required). GET reads it back, answering cancellation_policy_not_configured until one exists.

2. Cancel

POST /v1/events/{id}/cancel takes only a reason (your own record, never sent to attendees) and confirm: true. It accepts nothing else: a body that names a refund, admission or any other effect is refused with invalid_request, because those were decided in the policy. The engine snapshots the policy as it is now and answers 202 with the cancellation. Stopping sales and disabling admission take effect at once; closing checkouts, refunds and notices run in the background. A second cancel answers event_already_cancelled.

Editing the policy afterwards never changes a cancellation that has started: it keeps the snapshot it began with, through every retry.

3. Follow it

GET /v1/events/{id}/cancellation returns the reason, who cancelled, the snapshot and each action's status (pending, completed, failed or skipped), how many orders or checkouts it has found and finished, and a last_error code on failure. The cancellation is in_progress while any action is pending, needs_attention when one failed and none is pending, and completed otherwise. Each step also appears on the activity stream as event_cancellation.started, .action_completed, .action_failed, .retried and .completed, whether or not the policy notifies attendees.

POST /v1/events/{id}/cancellation/retry hands failed actions back. A retry resumes where the failure left off: an order already refunded or noticed is not refunded or noticed again, and a refund the provider refused is replaced by a new one. Without a retry, a failed action is left alone.

Who a cancellation covers

A cancellation covers the purchases that existed when it was recorded: orders whose checkout started at or before the cancellation, and checkouts open then. Refunds and notices wait for those checkouts to become orders or expire, so a payment that lands a moment after cancelling is still covered. A purchase made afterwards, which only happens if the organizer deliberately left sales on, is not refunded, closed or noticed by the policy; its tickets still follow the admission rule, which belongs to the event.

Configuring the policy and cancelling both need the organizer's administrator authority (its own API key, an owner, or Lissen staff). A credential that may only edit events answers organizer_admin_required.

What scanners see

With disable_admission, a live scan is rejected with admission_disabled and the manifest comes back empty. A scanner that is offline keeps its last manifest and cannot be told. When its scans sync they are judged by when they were taken: before the cancellation they are recorded as admitted, after it they are rejected and reported as revoked_since_manifest. See check-in.

Stopping sales without cancelling

If you only want to stop selling, without refunds or notices, use the item:

  • Close the sale window. Set sale_ends_at on each item to a time in the past. The window is engine-enforced: the item stops being sellable at the boundary.
  • Or deactivate the item. active: false takes it out of sale immediately, without touching the window you configured.
  • Or close the pool, if the quota is finite. Shrink its size down to exactly what is already consumed: that sells no more without invalidating anything already sold, and the engine refuses a reduction below that figure. An unlimited quota cannot be closed this way — giving it a finite size is refused with quota_unlimited_immutable — so for an item on an unlimited pool, use active: false or sale_ends_at.

Shrinking a quota to what is consumed also counts as running out for any item that opens when this one runs out.

Refunding what has already been sold outside a cancellation is a separate act — see refunds and disputes.

Be deliberate about renaming or re-timing an event that has already sold. A purchased position snapshots only its item description and its prices; the event's name, times and venue are read live, so changing them changes what every surface shows for orders that were placed before the change.

Errors this resource returns

CodeStatusTypeWhat it meansWhat to do
invalid_event_window400invalid_request_errorAn event's `starts_at` is not before its `ends_at`.Fix the times. Both are RFC 3339 UTC.
invalid_order_limits400invalid_request_errorAn event's `min_tickets_per_order` is greater than its `max_tickets_per_order` or `max_tickets_per_customer`, so no checkout could satisfy both. `param` names the field to change.Lower the minimum, raise the maximum, or clear one of them with `null`. The check uses the event's stored values for any field the request leaves out.
invalid_request400invalid_request_errorThe request body or query failed validation. `param` names the field.Fix the named field and send the request again.
not_found404invalid_request_errorNo such object under this organizer. An object belonging to another tenant reads as absent, never as forbidden.Check the id and the organizer header.
cancellation_policy_not_configured404invalid_request_errorThe event has no cancellation policy: its organizer has not configured what cancelling it does (stop new sales, close pending checkouts, refund paid tickets, disable admission, notify attendees). There is no default, so nothing happens and an event with no policy cannot be cancelled.Save the policy with `PUT /v1/events/{id}/cancellation_policy`, deciding all five consequences explicitly, then retry.
cancellation_policy_required422invalid_request_errorThe event has no cancellation policy, so cancelling it was refused and nothing changed. There is no default: an organizer decides what cancelling does before it can happen.Save the policy with `PUT /v1/events/{id}/cancellation_policy`, then cancel again.
event_already_cancelled409invalid_request_errorThe event was already cancelled. A cancellation is recorded once and is not reversed by this API; its `detail.cancellation_id` names the one that exists. Nothing changed.Read it with `GET /v1/events/{id}/cancellation` to see its policy snapshot and progress. Do not retry the cancel.
cancellation_not_retryable409invalid_request_errorThe cancellation has no failed action to retry: it is still in progress, or it already completed. Nothing changed.Read `GET /v1/events/{id}/cancellation`. While it is `in_progress` the background executor keeps working; retry only when its status is `needs_attention`.
organizer_admin_required403authentication_errorThe operation changes money- or admission-affecting policy, or cancels an event, and needs the organizer's administrator authority. The credential is valid but does not carry it. Nothing changed.Use the organizer's own API key or an owner's sign-in. A credential that may only edit events cannot configure the cancellation policy or cancel an event.

A malformed timezone lands under invalid_request, with param naming it. An id that belongs to another tenant reads as not_found — absent, never forbidden. The full list is the error registry.

What emits on the activity stream

Two types carry the complete event snapshot in data.object:

  • event.created — appended by the create, inside the same transaction that wrote the row. If you got a 201, the activity exists.
  • event.updated — appended by every accepted patch, with previous_attributes alongside the snapshot.

Cancellation policy changes are event_cancellation_policy.created and .updated; a cancellation and its progress are the event_cancellation.* types described above.

Because the snapshot is complete, a consumer of the feed never needs to call back to find out what an event looks like now. The full type registry lists every type the engine emits.

An idempotent replay emits nothing. Retrying a create with the same key returns the stored response and appends no second activity, so a feed consumer never sees a duplicate.

Gotchas

  • The event has no sale window. starts_at is when the doors open, not when tickets go on sale. Sale windows are sale_starts_at / sale_ends_at on the item.
  • The event has no currency. Currency is an item attribute, so one event can hold items priced in different currencies. A single cart is single-currency; mixing them answers currency_mismatch.
  • The event has no price and no capacity. Both live on items and quotas. An event with no items sells nothing and is not an error.
  • An event cannot be deleted. Nothing removes it, and nothing should: it is the anchor an old order's positions point at.
  • venue_address is one free-text string. There is no structured address, no geocoding, and no reusable venue object. If you need those, keep them in your own catalog and join on metadata.
  • ends_at must be strictly after starts_at, on the create and on the merged result of any patch. Equal timestamps are refused.
  • Order limits count this event's tickets only. A cart that mixes events is checked per event; merchandise with no event never counts.
  • Times are not validated against the present. You can create an event entirely in the past; that is legitimate for backfilling records.

On this page