TicketUserServices

<back to all web services

TransferTicketToEventRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequires the permission:ReadData
The following routes are available for this service:
POST/TransferTicketToEventTransfer a ticket to a different event with automatic price reconciliation
import Foundation
import ServiceStack

public class TransferTicketToEventRequest : Codable
{
    public var ticketTokenId:String?
    public var toEventId:Int?
    public var userId:Int?
    public var reason:String?
    public var idempotencyKey:String?
    public var expectedPriceDifference:Double?
    public var toOwnerTicketTypeId:Int?
    public var toSeriesTicketTypeId:Int?
    public var toSeatId:Int?

    required public init(){}
}

public class TransferTicketToEventResult : Codable
{
    public var ok:Bool?
    public var statusCode:Int?
    public var code:String?
    public var message:String?
    public var transferLogId:Int?
    public var newTicketTokenId:String?
    public var direction:String?
    public var priceDifference:Double?
    public var originalTicketPrice:Double?
    public var targetTicketPrice:Double?
    public var sourceEventPaidOut:Bool?
    public var outstandingCostHandledByServer:Bool?
    public var refund:TransferRefundInstruction?
    public var topup:TransferTopupInstruction?
    public var quote:TransferTicketQuoteResult?

    required public init(){}
}

public class TransferRefundInstruction : Codable
{
    public var amountIsk:Double?
    public var paymentReference:String?
    public var instruction:String?

    required public init(){}
}

public class TransferTopupInstruction : Codable
{
    public var amountIsk:Double?
    public var paymentLinkUrl:String?
    public var sessionToken:String?
    public var expiresAt:Date?

    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 TransferTicketToEventRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /TransferTicketToEvent HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"ticketTokenId":"String","toEventId":0,"userId":0,"reason":"String","idempotencyKey":"String","expectedPriceDifference":0,"toOwnerTicketTypeId":0,"toSeriesTicketTypeId":0,"toSeatId":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ok":false,"statusCode":0,"code":"String","message":"String","transferLogId":0,"newTicketTokenId":"String","direction":"String","priceDifference":0,"originalTicketPrice":0,"targetTicketPrice":0,"sourceEventPaidOut":false,"outstandingCostHandledByServer":false,"refund":{"amountIsk":0,"paymentReference":"String","instruction":"String"},"topup":{"amountIsk":0,"paymentLinkUrl":"String","sessionToken":"String","expiresAt":"0001-01-01T00:00:00.0000000"},"quote":{"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}}