Booking Service API Changes - v1.75.0

Release: v1.75.0 Date: 2026-11-24


Summary

Backward Compatible: MOSTLY: three private v2 endpoints that remove price assignments now answer 409 RESOURCE_IN_USE to a request that names a sold, held or blocked seat or area; every other change is additive New Endpoints: 0 Modified Endpoints: 3 private v2 endpoints answer 409; DELETE /events/{id} archives the event; the public event/, event/schema/, event/schema/rows/ and event/prices/ responses change as described below Removed or Deprecated: none

Migration Required: YES for integrations that remove price assignments from seats or areas that can be sold, held or blocked, with the steps under the first heading. NO for every other integration.


Authentication

The X-API-Key and X-Organization-ID header contract is unchanged. Private v2 endpoints take X-API-Key: {organizationToken}; tenant integrations send X-API-Key: {tenantToken} with X-Organization-ID: {orgId}. Tokens are opaque and come from your configured secret store; keep them out of the browser. The public endpoints the renderer calls take no API key, only the publicKey query parameter.


Price assignments and protected seats (SEAT-1382)

A seat is protected while it is sold, held (LOCKED) or blocked, and a general admission area is protected while it has held or sold tickets. Three private v2 endpoints that remove price assignments from an event now refuse the whole request when it names a protected seat or area. They answer 409 with errorCode RESOURCE_IN_USE, remove nothing and leave the event’s pricing version as it was. A request that names only unprotected seats and areas is not affected.

All paths below are relative to /api/private/v2.0/event/{eventId}/.

Method Path Body Refused when
POST unselection/ A list of { "objectId": 1001, "assignmentId": 501 } A listed seat is sold, held or blocked. The message lists the seat ids.
DELETE prices/assignments/ { "seatIds": [1001], "groupOfSeatIds": [2001] } A listed seat is sold, held or blocked, or a listed area has held or sold tickets. The message names no ids.
DELETE prices/assignments/all/ None Any seat of the event with an assignment is sold, held or blocked, or any area has held or sold tickets. The message names no ids.

In the unselection/ body, objectId is the seat id and assignmentId is the pricing zone id. In the prices/assignments/ body, seatIds and groupOfSeatIds are both optional lists, and the response is true when every id sent had an assignment to remove and false when some did not. prices/assignments/all/ answers true.

A refused request answers the Problem Details body the v2 API already returns:

{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "detail": "Seats [1002] are sold, held or blocked and cannot be unassigned",
  "instance": "/api/private/v2.0/event/123e4567-e89b-12d3-a456-426614174000/unselection/",
  "errors": [
    {
      "field": "general",
      "message": "Seats [1002] are sold, held or blocked and cannot be unassigned",
      "code": "RESOURCE_IN_USE"
    }
  ],
  "timestamp": "2026-02-14T10:30:45.123Z",
  "errorCode": "RESOURCE_IN_USE",
  "path": "/api/private/v2.0/event/123e4567-e89b-12d3-a456-426614174000/unselection/"
}

Migration: leave protected seats and areas out

Read the states first with GET prices/assignments/. Each entry of seatsOnEvent carries seatId and state, one of ACTIVE, SOLD, LOCKED or BLOCKED, and only an ACTIVE seat can be unassigned. Each entry of gaOnEvents carries groupOfSeatsId, activeCount and lockedCount, and an area with lockedCount above 0 has held tickets. The response shows no sold count for an area, so a request that names areas can be refused for sold tickets it does not show. Send such areas in separate requests to learn which one is refused.

A request that names a sold seat is refused as a whole:

POST /api/private/v2.0/event/{eventId}/unselection/
X-API-Key: {organizationToken}
Content-Type: application/json

[
  { "objectId": 1001, "assignmentId": 501 },
  { "objectId": 1002, "assignmentId": 501 }
]

The same request without seat 1002, which is sold, succeeds:

POST /api/private/v2.0/event/{eventId}/unselection/
X-API-Key: {organizationToken}
Content-Type: application/json

[
  { "objectId": 1001, "assignmentId": 501 }
]

The same steps for prices/assignments/, which takes seat ids:

interface SeatOnEvent {
  seatId: number;
  state: 'ACTIVE' | 'SOLD' | 'LOCKED' | 'BLOCKED';
}

interface AssignmentsResponse {
  seatsOnEvent: SeatOnEvent[];
}

const url = `${bookingServiceUrl}/api/private/v2.0/event/${eventId}/prices/assignments/`;
const headers = { 'X-API-Key': organizationToken, 'Content-Type': 'application/json' };

const assignments = (await (await fetch(url, { headers })).json()) as AssignmentsResponse;

const seatIds = assignments.seatsOnEvent
  .filter((seat) => seatsToClear.has(seat.seatId) && seat.state === 'ACTIVE')
  .map((seat) => seat.seatId);

const response = await fetch(url, {
  method: 'DELETE',
  headers,
  body: JSON.stringify({ seatIds }),
});

bookingServiceUrl is the booking-service origin of your installation, organizationToken comes from your secret store and seatsToClear is the Set<number> of seat ids you want to clear.

DELETE prices/assignments/all/ succeeds only while no assignment of the event belongs to a protected seat or area. To clear an event that has sales, send the ids of its unprotected seats to DELETE prices/assignments/.


Deleting an event archives it (SEAT-1573)

DELETE /api/private/v2.0/events/{id} archives the event and answers 204. Nothing is removed: the event’s prices, price assignments and bookings are kept. The deprecated DELETE /api/private/v1.0/events/{id} archives the event the same way and answers 200 with true.

An archived event behaves as follows:

  • The private event list does not include it, and GET /api/private/v2.0/events/{id} answers 404.
  • GET /api/public/v1.0/event/, GET /api/public/v1.0/event/schema/rows/ and GET /api/public/v1.0/event/prices/ answer 410 with errorCode EVENT_ARCHIVED, so the renderer cannot load it and it cannot be booked.

An editor user restores an archived event from the Events Hub, where it is listed under the Archived status filter. A restored event comes back as a draft and has to be published in the editor before it can be booked again.

Events that were deleted through the Booking API before this release move to Archived when editor-service starts on this version. Upgrade booking-service together with editor-service: an event that an older booking-service deletes after that step keeps its previous status and does not appear under Archived.


Levels in the public event payload (SEAT-1443)

The payload of GET /api/public/v1.0/event/ and GET /api/public/v1.0/event/schema/ gains a levels array, and each entry of sectors gains two members:

{
  "levels": [
    {
      "id": "balcony",
      "name": "Balcony",
      "elevation": 120,
      "displayScale": null,
      "originalScale": null,
      "displayOffset": null,
      "originalOffset": null
    }
  ],
  "sectors": [
    {
      "levelId": "balcony",
      "elevation": 120.0
    }
  ]
}

Only the members that are new are shown. The rules:

  • levels is an empty array when the map defines no levels, and a level without an id, a name or a numeric elevation is left out.
  • levelId is present only on a section that sits on one of the listed levels, and elevation is that level’s height in map units. A section on the ground, or on a level that is not listed, has no levelId and an elevation of 0.0.
  • displayScale, originalScale, displayOffset and originalOffset are always null: level views apply in the editor only.

A map without levels carries an empty levels array and an elevation of 0.0 on every section, so every section stays at height zero. The renderer shows levels only with enableLevels: true; see the Renderer API Changes.


Revalidation and compression of public event responses (SEAT-1617)

Three public endpoints answer with compression, and two of them with revalidation. All three send Vary: Accept-Encoding and take the event as id and the organization’s public key as publicKey.

Endpoint Cache-Control ETag Body
GET /api/public/v1.0/event/ no-cache, private Weak JSON, the event payload
GET /api/public/v1.0/event/schema/rows/ no-cache, private Weak text/plain;charset=UTF-8, the row overlay SVG
GET /api/public/v1.0/event/prices/ no-store None JSON with the prices, the current seat availability and the general admission counts

The first two list ETag in Access-Control-Expose-Headers, so a page on another origin can read it. The body is gzip-compressed when Accept-Encoding accepts gzip, or *, with a quality above 0, and an explicit gzip entry takes precedence over *. Otherwise the body is sent uncompressed.

no-cache makes a client revalidate a stored copy before it reuses it. Send the ETag back as If-None-Match, and an unchanged payload answers 304 with no body:

GET /api/public/v1.0/event/?id={eventId}&publicKey={publicKey} HTTP/1.1
Accept-Encoding: gzip
If-None-Match: W/"{digest}"

The event is checked on every request, including a conditional one, before any stored payload is used. An archived event answers 410 with errorCode EVENT_ARCHIVED, an unpublished one 422 with EVENT_NOT_PUBLISHED, and an unknown event or public key 404. The rows endpoint also answers 404 unless the event’s schema is active and belongs to the public key. The ETag changes when the payload changes.

event/prices/ is generated on each request and sent with Cache-Control: no-store. Its response carries live seat availability and general admission counts as well as prices, so a pricing version alone does not identify a change in it.

The optional debug parameter of GET /api/public/v1.0/event/ is accepted for compatibility, and the response is always the regular payload.


General admission shapes in the public event payload (SEAT-1617)

The shapes of a general admission section in the public event payload now carry fill, fontScale and order with the values set in the editor, and are listed in rendering order, lowest order first.


OpenAPI changes

The OpenAPI document lists 409 on the operations UnSelection, cleanAllAssignments and cleanAssignmentsBySeatIdAndGroupOfSeatsId, and describes deleteEventById as archiving the event, with its prices, price assignments and bookings kept.