| POST | /selfService/transferTicket/quote | Price difference and eligibility for a prospective buyer-initiated exchange |
|---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class SelfServiceTransferQuoteRequest
{
var ticketTokenId:String? = null
var buyerPhone:String? = null
var toEventId:Int? = null
var toOwnerTicketTypeId:Int? = null
var toSeriesTicketTypeId:Int? = null
var toSeatId:Int? = null
}
open class SelfServiceTransferQuoteResult : SelfServiceTransferResultBase()
{
var direction:String? = null
var priceDifference:BigDecimal? = null
var sourceTicketPrice:BigDecimal? = null
var targetTicketPrice:BigDecimal? = null
var sourceEventId:Int? = null
var sourceEventName:String? = null
var sourceEventTimeOfEvent:Date? = null
var toEventId:Int? = null
var toEventName:String? = null
var toEventTimeOfEvent:Date? = null
var toTicketTypeName:String? = null
var targetIsSeated:Boolean? = null
var toSeatId:Int? = null
var assignedSeatId:Int? = null
var assignedSeatLabel:String? = null
var ticketsLeft:Int? = null
var saleStatus:String? = null
var expectedPriceDifference:BigDecimal? = null
}
open class SelfServiceTransferResultBase
{
var ok:Boolean? = null
var statusCode:Int? = null
var code:String? = null
var message:String? = null
}
Kotlin SelfServiceTransferQuoteRequest 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 /selfService/transferTicket/quote HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ticketTokenId: String,
buyerPhone: String,
toEventId: 0,
toOwnerTicketTypeId: 0,
toSeriesTicketTypeId: 0,
toSeatId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
direction: String,
priceDifference: 0,
sourceTicketPrice: 0,
targetTicketPrice: 0,
sourceEventId: 0,
sourceEventName: String,
sourceEventTimeOfEvent: 0001-01-01,
toEventId: 0,
toEventName: String,
toEventTimeOfEvent: 0001-01-01,
toTicketTypeName: String,
targetIsSeated: False,
toSeatId: 0,
assignedSeatId: 0,
assignedSeatLabel: String,
ticketsLeft: 0,
saleStatus: String,
expectedPriceDifference: 0,
ok: False,
statusCode: 0,
code: String,
message: String
}