Order statuses
Main statuses
| Status | Meaning |
|---|---|
DRAFT | The order is being built; seats are held until expiresAt |
PAID | Payment confirmed via confirm, tickets issued |
EXPIRED | The lifetime ended without confirmation, seats released |
Order lifetime
An order is valid for 15 minutes from creation. Changes to the order do not extend this time. Within it you need to add the order items, accept payment and call confirm.
Order lifecycle
An unpaid order can be deleted: DELETE /orders/{orderId} returns 204, after which GET /orders/{orderId} returns 404.
Seat statuses
| Status | Meaning |
|---|---|
FREE | Free |
IN_ORDER | In the order passed in the orderId parameter |
HELD | In any other unpaid order |
SOLD | Sold |
UNAVAILABLE | Not for sale |
Transitions:
- A seat in your order:
FREE→IN_ORDERafterPOST /orders/{orderId}/seats→SOLDafterconfirm. - When the order item is deleted, the order is deleted or the lifetime expires, the seat becomes
FREEagain. - A seat in someone else's order is
HELD; it will becomeFREEorSOLD.
Ticket status
An issued ticket has the ACTIVE status.
How to check the status
GET /orders/{orderId} — the status and expiresAt fields. Your list of orders — GET /orders with sorting by sortBy (createdAt, savedAt, paidAt, status, totalAmount, finalAmount) and sortOrder (desc by default, or asc).
Final statuses
PAID and EXPIRED are final. An order in the EXPIRED status cannot be confirmed: build a new one.