| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Requires the permission: | ReadData |
| POST | /EventSeatingFindAndReserve | Find best available seats and reserve them atomically |
|---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class EventSeatingFindAndReserveRequest
{
var eventId:Int? = null
var quantity:Int? = null
var sectionId:Int? = null
var reservationTokenId:String? = null
var phoneVerificationNumber:String? = null
var skipIndex:Int? = null
var deviceId:String? = null
var requestUnixUTCTimeStamp:Long? = null
var signature:RequestSignature? = null
}
open class RequestSignature
{
var systemId:String? = null
var systemSecret:String? = null
var signature:String? = null
}
open class EventSeatingFindAndReserveResult
{
var statusCode:Int? = null
var message:String? = null
var reservationTokenId:String? = null
var totalCandidates:Int? = null
var seats:ArrayList<FoundSeat> = ArrayList<FoundSeat>()
}
open class FoundSeat
{
var id:Int? = null
var name:String? = null
var rowName:String? = null
var sectionName:String? = null
var sectionId:Int? = null
}
Kotlin EventSeatingFindAndReserveRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /EventSeatingFindAndReserve HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
eventId: 0,
quantity: 0,
sectionId: 0,
reservationTokenId: String,
phoneVerificationNumber: String,
skipIndex: 0,
deviceId: String,
requestUnixUTCTimeStamp: 0,
signature:
{
systemId: String,
systemSecret: String,
signature: String
}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
statusCode: 0,
message: String,
reservationTokenId: String,
totalCandidates: 0,
seats:
[
{
id: 0,
name: String,
rowName: String,
sectionName: String,
sectionId: 0
}
]
}