Testing
Before connecting to the production environment, run the scenarios in the test environment https://dev-api.globalticket.uz/esbo.
Test scenarios
Free visit
- Get an
accessTokenvialogin - Create an order for a card with
saleType: FREE_VISIT - Add a tariff by quantity via
POST /orders/{orderId}/itemswithoutsessionId - Call
validate, thenconfirm - Check that the response contains tickets with
qrToken
Session with a seating map
- Get a session and the map
GET /sessions/{sessionId}/seating - Add a seat via
POST /orders/{orderId}/seats - Re-read the map with
?orderId=— the seat is in theIN_ORDERstatus - Confirm the order — the seat is in the
SOLDstatus
Double booking
Open two orders for the same card — this also works from one account: a seat in your other order appears as HELD.
POST /orderstwice → orders A and BPOST /orders/{A}/seatswith a seat →200POST /orders/{B}/seatswith the same seat →409,code1008GET /sessions/{sessionId}/seating?orderId={B}→ the seat is in theHELDstatusDELETE /orders/{A}→204; the seat isFREEagain
Negative scenarios
| Scenario | Expected response |
|---|---|
| Wrong password | 400 |
| Request without a token | 401, code 1004 |
Order with an outdated versionId | 409, code 1008 |
Standing sector: quantity greater than available | 409, code 1008 |
confirm after the order lifetime has expired | 409, code 1008 |
| Card of another organization | 404, code 1003 |
warning
An order without confirmation becomes EXPIRED after 15 minutes. The storefront must not accept payment for an expired order.
Pre-launch checklist
- Login works,
accessTokenis refreshed viarefresh-tokenbefore it expires - The catalog shows cards of the organizations available to you; filters and the period work
- Free visit: order →
items→validate→confirm→ tickets with a QR code - Session without a seating map:
itemswithsessionId→validate→confirm - Session with a seating map: after
seatsthe seat isIN_ORDERin your order andHELDfor others - Double booking: the second attempt gets
409, the storefront re-reads the map and offers another seat - Standing sector:
availabledecreases; a quantity above the remainder gets409 - Deleting an order item or the order returns the seat to
FREE - An order without confirmation becomes
EXPIREDafter 15 minutes, seats are released - A repeated
confirmwith the sameIdempotency-Keyresults in one order and one set of tickets - Benefits: the discount is visible in
discountAmount,finalAmountis charged - With
requiresData: truepayment starts only afterfilledequalstotal - The buyer receives the ticket QR code
-
orderId,Idempotency-Keyand errortraceIdvalues are stored in the logs
Contacting support
Send the traceId from the error response, the method and path, the request body without credentials, and the request time.