TicketUserServices

<back to all web services

ReseatQuoteRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequires the permission:ReadData
The following routes are available for this service:
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(){}
}


Swift ReseatQuoteRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	eventId: 0,
	moves: 
	[
		{
			fromSeatId: 0,
			toSeatId: 0,
			toOwnerTicketTypeId: 0
		}
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ok: False,
	statusCode: 0,
	message: String,
	totalFromPrice: 0,
	totalToPrice: 0,
	priceDifference: 0,
	direction: String,
	refundableViaBorgun: False,
	paymentReference: String,
	seats: 
	[
		{
			fromSeatId: 0,
			toSeatId: 0,
			ticketTokenId: String,
			fromPrice: 0,
			toPrice: 0,
			difference: 0,
			toSectionName: String,
			toSeatName: String,
			ok: False,
			message: String
		}
	]
}