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 Foundation
import ServiceStack

public class TransferTicketQuoteRequest : Codable
{
    public var ticketTokenId:String?
    public var toEventId:Int?
    public var userId:Int?
    public var toOwnerTicketTypeId:Int?
    public var toSeriesTicketTypeId:Int?

    required public init(){}
}

public class TransferTicketQuoteResult : Codable
{
    public var ok:Bool?
    public var statusCode:Int?
    public var code:String?
    public var message:String?
    public var from:TransferQuoteEventSide?
    public var to:TransferQuoteEventSide?
    public var priceDifference:Double?
    public var direction:String?
    public var refundableViaBorgun:Bool?
    public var afterPayout:Bool?

    required public init(){}
}

public class TransferQuoteEventSide : Codable
{
    public var eventId:Int?
    public var eventName:String?
    public var timeOfEvent:Date?
    public var ticketPrice:Double?
    public var paymentMethodId:String?
    public var paymentReference:String?
    public var availableSeats:Int?

    required public init(){}
}


Swift 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}