| Requires any of the roles: | Admin, TeamAdmin | Requires the permission: | ReadData |
| POST | /EventSeating/ReseatQuote |
|---|
import Foundation
import ServiceStack
public class ReseatQuoteRequest : Codable
{
public var eventId:Int?
public var moves:[ReseatMovePair] = []
required public init(){}
}
public class ReseatMovePair : Codable
{
public var fromSeatId:Int?
public var toSeatId:Int?
public var toOwnerTicketTypeId:Int?
required public init(){}
}
public class ReseatQuoteResult : Codable
{
public var ok:Bool?
public var statusCode:Int?
public var message:String?
public var totalFromPrice:Double?
public var totalToPrice:Double?
public var priceDifference:Double?
public var direction:String?
public var refundableViaBorgun:Bool?
public var paymentReference:String?
public var seats:[ReseatSeatQuote] = []
required public init(){}
}
public class ReseatSeatQuote : Codable
{
public var fromSeatId:Int?
public var toSeatId:Int?
public var ticketTokenId:String?
public var fromPrice:Double?
public var toPrice:Double?
public var difference:Double?
public var toSectionName:String?
public var toSeatName:String?
public var ok:Bool?
public var message:String?
required public init(){}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /EventSeating/ReseatQuote HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<ReseatQuoteRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<EventId>0</EventId>
<Moves>
<ReseatMovePair>
<FromSeatId>0</FromSeatId>
<ToOwnerTicketTypeId>0</ToOwnerTicketTypeId>
<ToSeatId>0</ToSeatId>
</ReseatMovePair>
</Moves>
</ReseatQuoteRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ReseatQuoteResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Direction>String</Direction>
<Message>String</Message>
<Ok>false</Ok>
<PaymentReference>String</PaymentReference>
<PriceDifference>0</PriceDifference>
<RefundableViaBorgun>false</RefundableViaBorgun>
<Seats>
<ReseatSeatQuote>
<Difference>0</Difference>
<FromPrice>0</FromPrice>
<FromSeatId>0</FromSeatId>
<Message>String</Message>
<Ok>false</Ok>
<TicketTokenId>String</TicketTokenId>
<ToPrice>0</ToPrice>
<ToSeatId>0</ToSeatId>
<ToSeatName>String</ToSeatName>
<ToSectionName>String</ToSectionName>
</ReseatSeatQuote>
</Seats>
<StatusCode>0</StatusCode>
<TotalFromPrice>0</TotalFromPrice>
<TotalToPrice>0</TotalToPrice>
</ReseatQuoteResult>