TicketUserServices

<back to all web services

TransferTicketQuoteRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequires the permission:ReadData
The following routes are available for this service:
POST/transferTicket/quoteRead-only price-diff lookup for a prospective ticket transfer
import java.math.*
import java.util.*
import net.servicestack.client.*


open class TransferTicketQuoteRequest
{
    var ticketTokenId:String? = null
    var toEventId:Int? = null
    var userId:Int? = null
    var toOwnerTicketTypeId:Int? = null
    var toSeriesTicketTypeId:Int? = null
}

open class TransferTicketQuoteResult
{
    var ok:Boolean? = null
    var statusCode:Int? = null
    var code:String? = null
    var message:String? = null
    var from:TransferQuoteEventSide? = null
    var to:TransferQuoteEventSide? = null
    var priceDifference:BigDecimal? = null
    var direction:String? = null
    var refundableViaBorgun:Boolean? = null
    var afterPayout:Boolean? = null
}

open class TransferQuoteEventSide
{
    var eventId:Int? = null
    var eventName:String? = null
    var timeOfEvent:Date? = null
    var ticketPrice:BigDecimal? = null
    var paymentMethodId:String? = null
    var paymentReference:String? = null
    var availableSeats:Int? = null
}

Kotlin TransferTicketQuoteRequest DTOs

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

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /transferTicket/quote HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"ticketTokenId":"String","toEventId":0,"userId":0,"toOwnerTicketTypeId":0,"toSeriesTicketTypeId":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ok":false,"statusCode":0,"code":"String","message":"String","from":{"eventId":0,"eventName":"String","timeOfEvent":"0001-01-01T00:00:00.0000000","ticketPrice":0,"paymentMethodId":"String","paymentReference":"String","availableSeats":0},"to":{"eventId":0,"eventName":"String","timeOfEvent":"0001-01-01T00:00:00.0000000","ticketPrice":0,"paymentMethodId":"String","paymentReference":"String","availableSeats":0},"priceDifference":0,"direction":"String","refundableViaBorgun":false,"afterPayout":false}