Skip to main content

Seating map and concurrent selection

GET /sessions/{sessionId}/seating shows the state of every seat of the session at the time of the request. Pass the orderId of your order to tell seats in this order apart from seats taken by others: ?orderId=1234.

Response format​

Request: GET {{base_url}}/api/v1/private/agent/sessions/50/seating?orderId=1234

Response example:

{
"sessionId": 50,
"sessionVersionId": 501,
"configurationId": 12,
"tariffs": [
{ "tariffRowId": 3, "name": "VIP", "color": "#E53935", "price": 300000, "seatCount": 120,
"benefits": [ { "benefitId": 9, "name": "Seniors", "discountPercent": 30, "seatCount": 20 } ] }
],
"seats": [
{ "seatId": "seat-parter-3-10", "sectorKey": "1b4e28ba-2fa1-11d2-883f-0016d3cca427", "sector": "Stalls",
"row": "3", "seat": "10", "tariffRowId": 3, "benefitId": null, "price": 300000, "status": "FREE" }
],
"sectors": [
{ "sectorKey": "6fa459ea-ee8a-3ca4-894e-db77e160355e", "name": "Fan zone", "ga": true,
"tariffRowId": 7, "capacity": 500, "available": 312 }
]
}
BlockWhat it contains
tariffsLegend: tariff, color on the map, price, number of seats and benefits on seats of this tariff
seatsEach seat: seatId, sector (sectorKey, sector), row, number, tariff, benefit, price and status
sectorsHall sectors; standing ones (ga: true) have the capacity capacity and the remainder available

The sessionVersionId and configurationId fields are internal: you do not need to pass them anywhere. One hall can have both numbered seats and standing sectors.

If the session has no seating map, the method returns 404. Check GET /sessions/{sessionId}: if it returns 200, sell by quantity via POST /orders/{orderId}/items with sessionId.

Seat statuses​

StatusMeaningHow to display
FREEFreeIn the tariff color, selectable
IN_ORDERIn the order passed in orderIdSelected by the buyer
HELDIn any other unpaid order, including another order of your accountTaken, may be released
SOLDSoldTaken
UNAVAILABLENot for saleHide or show as unavailable

How to show the hall to the buyer​

The API returns seats as a list; it does not return an image of the hall map.

MethodHow it works
Seat list"Sector → Row → Seat" selection with statuses from seats
Your own graphic mapSeats on your map are matched to ESBO seats by sectorKey + row + seat; the ESBO seatId is passed when reserving

Rules:

  • Highlight free seats with the tariff color from tariffs[].color by tariffRowId; HELD and SOLD with a single "taken" color.
  • price: null on a seat means the tariff has visitor types with their own prices (adult, child). Prices are in the session's tariff tree; the selected type is passed as rowId when reserving.
  • benefitId on a seat is a benefit that can be applied to this seat. The seat is added to the order at the tariff price; to sell it with the benefit, set the benefit via PUT /orders/{orderId}/items/{itemId}/benefits with quantity = 1.
  • Show a standing sector as a block with the remainder available and a quantity selector.
  • Request the map when it is opened, after a 409 response and before payment.

Why one seat cannot be sold twice​

  • Only one hold applies to a seat in a session. If the seat is already held by another active order, POST /orders/{orderId}/seats gets 409. With simultaneous requests, the seat goes to whoever's request arrived first.
  • In standing sectors a number of tickets is reserved; you cannot sell more than the capacity.
  • All ESBO sales channels reserve seats in one system.
  • After confirm the seat stays SOLD.

Example: two partners sell tickets to the same concert; seat 3-10 is row 3, seat 10.

TimePartner APartner B
12:00GET /sessions/50/seating: 3-10 FREEGET /sessions/50/seating: 3-10 FREE
12:01POST /orders → order, expiresAt 12:16—
12:01POST /orders/{orderId}/seats, seat 3-10 → 200—
12:02—POST /orders/{orderId}/seats, seat 3-10 → 409; re-reads the map: 3-10 HELD
12:05confirm → PAID3-10 SOLD

If partner A had not confirmed the order by 12:16, seat 3-10 would have become FREE again for everyone.

What the storefront should do on 409

Re-read the map with ?orderId= of your order, show the buyer that the seat has been taken and offer another one. Do not retry holding the same seat in a loop: it will be released only if the other order is deleted or expires.