# Changelog

Changes to the Lupeno API, newest first. `/v1` only grows — see [Versioning](https://lupeno.com/developers/guides/versioning).

## 30 November 2026 — `/v1`, `info.version` 1.12.1, `@lupeno/sdk` 1.12.1

**Wording only.** `POST /v1/events/{eventId}/orders`' description no longer lists daily reaches by kind of organization: a refusal names yours — `409 bulk.over_daily_cap` with `context: { limit, remaining, resetsAt }`, as before.

## 29 November 2026 — `/v1`, `info.version` 1.12.0, `@lupeno/sdk` 1.12.0

**Orders as they are placed, documents as they are issued, and bundle orders on every event.**

- **The `order.created` webhook** (`data`: the `Order`): an order was placed, in whatever state it starts — waiting for its payment or for approval, or paid at once (`order.paid` comes too). Imported orders are never announced.
- **The `document.issued` webhook** (`data`: the `Document`): a proforma, a tax document or a credit note got its number, Lupeno's own or the organizer's tool's. Once per document. Both types reach an endpoint within a minute, and only one that chooses them.
- **A bundle order is every included event's.** `GET /v1/events/{eventId}/orders` lists it on each event it sold a ticket type of — the same order, by its `id`: for what an event took, sum its own `items` (their `eventId`), never `totalMinor`. A key scoped to an included event reads the order and hears its `order.*` and the refunds that return its tickets, with that event's `items` and `ticketIds` only; cancelling it and its documents stay with the home event's key or the organization's. (Until now an included event's list left it out.)
- **`Order.vatMinor`** is `0` when the seller is not a VAT payer, whatever rate its ticket types and extras carry — as its documents always said.
- **`GET /v1/events/{eventId}/orders?state=`** takes `approved` and `declined` too.
- **`Order.extrasMinor`**'s description no longer says extras carry no ticket fee: on a paid event each piece carries Lupeno's fee as a ticket does (since 27 November 2026).
- `GET /v1/webhook-samples?type=refund.completed` answered `500`; it answers samples now.
- **`ticket.voided`** is sent for every ticket a succeeded refund returned and every ticket a cancelled event voided — until now only for free tickets voided by the organizer and for upgrades. A ticket whose refund is still on its way reads `voided` already; the event comes when the refund succeeded.
- **`Refund`** says what it took away: `keptMinor` (the cancellation fee the organizer kept), `donationMinor` and `extras` (`extraId`, `quantity`, `amountMinor`), both inside `amountMinor`. **`Order.extras[].refundedQuantity`**: how many pieces were refunded or voided.
- **A comp on a pay-what-you-want type** (`kind: "comp"`) answered `500`; it is placed now. A chosen amount its type no longer allows answers `409 order.amount_changed`.

## 28 November 2026 — `/v1`, `info.version` 1.11.0, `@lupeno/sdk` 1.11.0

**The venue map is the organizer's choice.** Organizers now pick per event: a map they frame themselves on a live map (saved as a picture, light and dark), a picture of their own, or no map.

- **`MapPicture.mode`**: `map` — a map with the venue's pin, “© OpenStreetMap” drawn in its bottom-right corner (never crop or cover it); `image` — a picture the organizer uploaded instead of a map.
- **`MapPicture.darkSources`**: the same map drawn for a dark display, narrowest first like `sources` — show it when your page is dark; `null` for an organizer's image and for a map saved before this version.
- `Event.venueMap` is `null` while the organizer saved no picture, chose no map, or moved the pin since saving one; `Event.venueGeo` still gives the venue's coordinates then.
- The `event.cancelled` and `event.postponed` webhooks carry the new fields too.

## 28 November 2026 — `/v1`, `info.version` 1.10.0, `@lupeno/sdk` 1.10.0

**The event page's gallery, map, practical information and tour.** What an event's page shows beyond its text is now readable through the API — only what the page itself shows, with pictures served from the event's own address:

- **`Event.venueGeo`** (`GeoPoint`: `lat`, `lng`): the venue's coordinates, only while they belong to the current address — `null` for an online event, an address not found yet, or one changed since.
- **`Event.venueMap`** (`MapPicture`: `sources` by width, `width`, `height`): the map picture with the pin that the page shows; `null` when it shows none. Its attribution (Geoapify, OpenStreetMap) is drawn in the picture's bottom-right corner — never crop or cover it.
- **`Event.practical`** (`PracticalInfo`): `doorsOpenAt`, `ageLimit` and `ageLimitNote`, `accessibility` (`step_free`, `accessible_toilet`, `hearing_loop`, `wheelchair_spaces`, `companion_free`) and `accessibilityNote`, `parkingNote`, `transportNote`, and the organizer's `instructions` (plain text with light marks: `**bold**`, `*italic*`, `- ` lists, `## ` headings); other languages in `translations`. `null` when the organizer filled none.
- **`Event.tour`** (`EventTour`): the tour the event is a date of — `slug`, `name`, `description`, its own `defaultLanguage` and `translations`, the public tour page's `url` (`null` while none of its dates is published), and its **other** `dates` (`TourDate`: `eventId`, `slug`, `title`, `startsAt`, `endsAt`, `timezone`, `venue` with `name` and `city`, `url`) — published events in the key's mode, never a draft, a cancelled or archived event; a key for one event lists none. `null` when the event is in no tour.
- **`GET /v1/events/{eventId}/gallery`** (`listGalleryItems`, `GalleryItemList`): the photos and YouTube/Vimeo videos of the event's gallery in the organizer's order (at most 24) — each `GalleryItem` with `kind`, `alt` (a video's title) and its `translations`, `width`, `height`, picture `sources` by width, and for a video its `provider`, `id`, the privacy-friendly `playerUrl` (`youtube-nocookie.com`, Vimeo with `dnt=1`) and its `pageUrl`. An item Lupeno took down is never listed.
- The `event.cancelled` and `event.postponed` webhooks carry the new `Event` fields too. The read scope suffices.

## 28 November 2026 — `/v1`, `info.version` 1.9.0, `@lupeno/sdk` 1.9.0

**Reserved seating.** An event may sell seats from a seat map: each ticket of a seated ticket type holds exactly one seat, chosen by the buyer at checkout (or the best available, for orders entered in the portal).

- **`Ticket.seat`** and **`Attendee.seat`** (`TicketSeat`: `section`, `row`, `seat`, `accessible`): where the ticket sits, with the labels as they were when the seat was taken; `null` on an event without reserved seating. A transfer keeps the seat; a voided ticket still names the seat it had.
- Every webhook that carries a ticket brings the new field.
- Orders placed through `/v1` take the best available seats for seated ticket types, at most the seat map's limit per order.

## 28 November 2026 — `/v1`, `info.version` 1.8.0, `@lupeno/sdk` 1.8.0

**Webhook subscriptions through the API** — what n8n, Make and Zapier need for instant triggers, and anyone else who subscribes a URL when something is switched on and unsubscribes it when it is switched off ("REST hooks"). See [Webhooks](https://lupeno.com/developers/guides/webhooks#subscribe-through-the-api).

- **`POST /v1/webhook-subscriptions`** (`createWebhookSubscription`): `url` (`https://`, public), `eventTypes`, an optional `description` and `pii`. The answer is a **`CreatedWebhookSubscription`** — the `WebhookSubscription` and its signing `secret`, shown once. Deliveries are exactly an endpoint's: the same envelope, `Lupeno-Signature`, retries and pause. Any key scope may subscribe; `pii: true` needs the key's `pii` (`403 api.scope_missing`).
- **The subscription follows its key**: the key's mode (a test key hears test events only), the key's event for a key scoped to one event (`WebhookSubscription.eventId`), and its life — revoking or ending the key removes its subscriptions.
- **Subscribing a URL the key already subscribed replaces it** (a new secret; what waited for the old one is cancelled), so a retry is safe without an `Idempotency-Key`. At most 20 per key and 50 per organization: `409 webhook.too_many_subscriptions`.
- **`GET /v1/webhook-subscriptions`** (`listWebhookSubscriptions`) lists the key's own; **`DELETE /v1/webhook-subscriptions/{subscriptionId}`** (`deleteWebhookSubscription`) unsubscribes, answering the subscription with `state: "deleted"`.
- **`GET /v1/webhook-samples?type=…&limit=…`** (`listWebhookSamples`): envelopes as a subscription to `type` would receive them, for a tool to show sample data — the newest resources of that kind the key reaches, or one made-up sample when there is none. Each says `sample: true`, whose description now covers these too.
- The organization sees every subscription on its Webhooks screen, under the key's name, and may pause or remove it there.

## 27 November 2026 — `/v1`, `info.version` 1.7.0, `@lupeno/sdk` 1.7.0

**Bundles (festival passes).** An organization may sell one price for one ticket in each of several of its events — a festival's days, a series. Buying a bundle places **one order on the bundle's home event** with one ticket per included event, each admitting at its own event's door:

- **`Order.bundleId`** and **`Order.bundleQuantity`**: on a bundle order, the bundle and how many were bought; `null` on every other order.
- **`Order.items[].eventId`**: the line's ticket type's event — the order's own `eventId` on an ordinary order, the included event's on a bundle order. A bundle order's `unitPriceMinor` is that type's **share** of the bundle's price (the price split by the types' list prices, summing to it exactly).
- Tickets already carry their own `eventId`. A key scoped to one event sees a bundle order only when that event is its home; it sees the included event's tickets and attendees either way.
- Every webhook that carries an order brings the new fields.

## 27 November 2026 — `/v1`, `info.version` 1.6.0, `@lupeno/sdk` 1.6.0

**Ticket upgrades.** A buyer (or the organizer) may move a paid ticket to a dearer ticket type of the same event, paying only the difference. The difference is an order of its own — an **upgrade order** — of one line: the new type at its price, what the ticket was paid taken off as the line's discount. Once it is paid, the ticket is replaced:

- **`Order.upgradeOfTicketId`**: on an upgrade order, the ticket it replaces; `null` on every other order. Its `order.paid` webhook is the moment the ticket moved.
- **`Ticket.upgradedFromTicketId`**: on the upgrade order's ticket, the ticket it replaced. It has a new code — the old QR stops admitting.
- **`Ticket.upgradedToTicketId`**: on the replaced ticket, the ticket that admits instead. The replaced ticket is `voided` (a `ticket.voided` webhook is sent when the upgrade is paid) and stays on its first order, whose money is not refunded by the upgrade.
- Attendees list only the ticket that admits.

## 26 November 2026 — `/v1`, `info.version` 1.5.0, `@lupeno/sdk` 1.5.0

**Extras.** An organizer may offer extras that buyers add to their tickets at checkout — a workshop, merch, parking — each with its own price and VAT rate. An extra is never bought without a ticket and is not a ticket itself:

- **`Order.extras`**: the extras bought with the order, in the event's order — each `extraId`, `name` (in the buyer's language where the organizer wrote one), `quantity` and `unitPriceMinor` (the listed price; no discount code or volume rule reaches an extra). An empty array for none.
- **`Order.extrasMinor`**: their sum, inside `totalMinor`. Extras carry VAT at their own rate and **no Lupeno ticket fee**. `0` for none. *(Corrected on 29 November 2026: since 27 November each piece of an extra on a paid event carries Lupeno's fee as a ticket does — see 1.12.0.)*
- Every webhook that carries an order — `order.paid`, `order.expired`, `order.cancelled` and the rest — brings both fields too.

## 26 November 2026 — `/v1`, `info.version` 1.4.0, `@lupeno/sdk` 1.4.0

**Pay what you want, and donations.** A ticket type may let the buyer choose its price, and an order may carry a donation:

- **`Tier.priceMode`**: `fixed`, or `pay_what_you_want` — the buyer chooses each ticket's price at checkout, from `price` (the least it may be, possibly 0) to **`Tier.maxPrice`**, offered **`Tier.suggestedPrice`** first. Both are `null` on a fixed type. An order's `items[].unitPriceMinor` is the amount the buyer chose.
- **`CreateOrder` items take `amountMinor`** for a pay-what-you-want type — between its `price` and `maxPrice`; left out, its `suggestedPrice`. It is refused for a fixed type (`422 order.amount_not_allowed`), and an amount outside the limits is `422 order.amount_below_minimum`, `order.amount_below_floor` (a positive amount under 10 Kč) or `order.amount_above_maximum`.
- **`Order.donationMinor`**: the donation inside `totalMinor` — an amount the buyer added at checkout, not a ticket: it carries no VAT and no ticket fee. `0` for none. It arrives on every webhook that carries an order.

## 25 November 2026 — `/v1`, `info.version` 1.3.0, `@lupeno/sdk` 1.3.0

**Postponed events.** An organizer may move a published event to a new date; its tickets stay valid with their codes:

- **`Event.postponedFrom`**: the start before the event was first postponed (later postponements keep it); `null` for an event never postponed. `startsAt` and `endsAt` are always the current dates.
- **The `event.postponed` webhook** (`data`: the `Event`, with its new dates): subscribe to it to move the event in your own systems. Recorded in the event's own mode, like `event.cancelled`.

## 24 November 2026 — `/v1`, `info.version` 1.2.0, `@lupeno/sdk` 1.2.0

**The checkout form's answers**, for keys with the `pii` scope and webhook endpoints with personal data on — so a mailing tool can add a buyer to a list only when they agreed to it:

- **`Order.answers`**: the questions asked once per order — a marketing consent among them. **`Ticket.answers`** and **`Attendee.answers`**: those asked once per ticket. Each is an **`Answer`**: `fieldId`, `type`, `label` (the question as the buyer read it, in their language), `value`, `formVersion`.
- **A consent answer** carries `consentWordingId` — one id per exact wording of the consent text, the same across form versions that kept it. Keep it with the subscriber as the record of what they agreed to.
- **`order.paid`** and every other event carrying an order or a ticket bring the answers too, to an endpoint with personal data on.
- Without `pii` the field is absent, not empty. The holder's name and address are never answers — they are `Ticket.holder`.
- The help center's **Connect a mailing tool through Make** walks the whole scenario.

Also in this release:

- **`@lupeno/sdk` retries and times out by itself** what is safe to repeat: `429`, `5xx`, network failures and timeouts, for reads, `PUT`, `DELETE` and creates carrying an `Idempotency-Key` — twice by default, honouring `Retry-After` up to a minute, 30 s per attempt (`createLupeno({ retries, timeoutMs })`). `LupenoError.retryAfter` gives the wait in seconds.
- **`downloadDocument(lupeno, documentId)`** returns a document's PDF as bytes; the plain call parsed it as JSON and failed.
- **Webhook events are a union on `type`** (`LupenoWebhookEvent`, `WebhookEventOf<…>`): `constructWebhookEvent` returns it, so `event.data` is typed in each branch.
- **Optional fields of a create are optional in the SDK's types** (`CreateDiscountCode`'s `tierIds`, `validFrom` … and `CreateOrder`'s `locale` were typed as required because the API description gives them a default).
- The SDK **warns when a live key is used in a browser**.
- **A create whose first attempt never answered** (the server handling it went down) no longer answers `409 api.idempotency_in_flight` for a day: after 90 seconds a retry with the same request runs it again, and returns the order the lost attempt made rather than a second one. The `409` carries `Retry-After` ([Idempotency](https://lupeno.com/developers/guides/idempotency)).

## 24 November 2026 — `/v1`, `info.version` 1.1.0, `@lupeno/sdk` 1.1.0

**The baseline.** From this version on, `/v1` keeps every promise in [Versioning](https://lupeno.com/developers/guides/versioning). It gathers what changed since 1.0.0, including three changes that version's policy would not allow today:

- **A document's PDF needs the `pii` scope** as well as `read` (`GET /v1/documents/{documentId}/pdf`): it prints the buyer unmasked. A forgotten order's documents answer `409 order.forgotten`.
- **A live key no longer sees a test-mode event**, its tiers, orders or codes; test and live keys never see the same event ([Test mode](https://lupeno.com/developers/guides/getting-started#test-mode)).
- **Names refuse links:** a buyer's or holder's name holding a web address or a domain is refused with `422` and `validation.no_links` at the field.
- **`Tier.quantitySold` counts tickets sold** — live, valid tickets in paid orders, the same figure the portal shows — no longer every place taken (a test order left behind, a refunded ticket whose place is kept). So `quantityTotal − quantitySold` is not what is left; `availability` says whether a buyer can buy.

Additions:

- **`Order.forgottenAt`**, and the **`order.forgotten`** webhook: the order's people were forgotten — drop any copy of them you keep.
- **`409 bulk.over_daily_cap`** — orders you create and holders you name count against the organization's daily reach — now carries `context: { limit, remaining, resetsAt }`; the `Problem` schema documents `context` ([Limits](https://lupeno.com/developers/guides/getting-started#limits)).
- **Webhook envelopes** carry `apiVersion: "v1"` and `sample`; **Send a test event** on the Webhooks screen delivers a signed sample ([Try it](https://lupeno.com/developers/guides/webhooks#try-it)).
- **`event.cancelled` for a test-mode event** now reaches test endpoints (it reached none).
- **Every answer carries `X-Request-Id`**, a UUID unless you sent your own; `requestId` in an error body is the same value.
- **An empty `cursor=`** is the first page, as no cursor is; **`endsAfter`** accepts an offset as well as `Z`.
- **A path id that is not a UUID** still answers `400 http.400`, now with `errors` naming the parameter.
- **Discount codes** you create follow the portal's rules: a code no buyer could type, or a discount of nothing, is refused.
- **`paidOn`** of a `paid_outside` order is held between the event's creation and today.

## October 2026 — `/v1`

The first public version of the API, described at [`api.lupeno.com/openapi.json`](https://api.lupeno.com/openapi.json) (OpenAPI 3.1, `info.version` 1.0.0).

- **API keys** per organization or per event, live or test, with the scopes `read`, `write`, `checkin` and `pii`; 300 requests a minute per key.
- **Events and tiers:** list and get your events, list an event's tiers.
- **Orders:** list and get; create a complimentary or manual order; cancel an unpaid one. Creates are [idempotent](https://lupeno.com/developers/guides/idempotency).
- **Tickets and attendees:** list and get; name a ticket's holder.
- **Discount codes:** list, get, create and revoke.
- **Check-ins:** record and revert an entry by ticket id or scanned code; list an event's check-ins.
- **Documents:** list an order's invoices and credit notes, download their PDFs.
- **Webhooks:** `order.paid`, `order.expired`, `order.cancelled`, `refund.completed`, `ticket.assigned`, `ticket.transferred`, `ticket.voided`, `checkin.recorded`, `checkin.reverted`, `event.cancelled` — signed, retried for about 15 hours, with a 30-day delivery log and replay.
- **`@lupeno/sdk` 1.0.0** for TypeScript and JavaScript.
- **The ticket widget** (`widget.js`) and its `lupeno:order` event.
