| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Requires the permission: | ReadData |
| POST | /EventSeatingFindAndReserve | Find best available seats and reserve them atomically |
|---|
import Foundation
import ServiceStack
public class EventSeatingFindAndReserveRequest : Codable
{
public var eventId:Int?
public var quantity:Int?
public var sectionId:Int?
public var reservationTokenId:String?
public var phoneVerificationNumber:String?
public var skipIndex:Int?
public var deviceId:String?
public var requestUnixUTCTimeStamp:Int?
public var signature:RequestSignature?
required public init(){}
}
public class RequestSignature : Codable
{
public var systemId:String?
public var systemSecret:String?
public var signature:String?
required public init(){}
}
public class EventSeatingFindAndReserveResult : Codable
{
public var statusCode:Int?
public var message:String?
public var reservationTokenId:String?
public var totalCandidates:Int?
public var seats:[FoundSeat] = []
required public init(){}
}
public class FoundSeat : Codable
{
public var id:Int?
public var name:String?
public var rowName:String?
public var sectionName:String?
public var sectionId:Int?
required public init(){}
}
Swift EventSeatingFindAndReserveRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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/csv
Content-Type: text/csv
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/csv
Content-Length: length
{"statusCode":0,"message":"String","reservationTokenId":"String","totalCandidates":0,"seats":[{"id":0,"name":"String","rowName":"String","sectionName":"String","sectionId":0}]}