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 java.math.*
import java.util.*
import net.servicestack.client.*


open class TransferTicketToEventRequest
{
    var ticketTokenId:String? = null
    var toEventId:Int? = null
    var userId:Int? = null
    var reason:String? = null
    var idempotencyKey:String? = null
    var expectedPriceDifference:BigDecimal? = null
    var toOwnerTicketTypeId:Int? = null
    var toSeriesTicketTypeId:Int? = null
    var toSeatId:Int? = null
}

open class TransferTicketToEventResult
{
    var ok:Boolean? = null
    var statusCode:Int? = null
    var code:String? = null
    var message:String? = null
    var transferLogId:Int? = null
    var newTicketTokenId:String? = null
    var direction:String? = null
    var priceDifference:BigDecimal? = null
    var originalTicketPrice:BigDecimal? = null
    var targetTicketPrice:BigDecimal? = null
    var sourceEventPaidOut:Boolean? = null
    var outstandingCostHandledByServer:Boolean? = null
    var refund:TransferRefundInstruction? = null
    var topup:TransferTopupInstruction? = null
    var quote:TransferTicketQuoteResult? = null
}

open class TransferRefundInstruction
{
    var amountIsk:BigDecimal? = null
    var paymentReference:String? = null
    var instruction:String? = null
}

open class TransferTopupInstruction
{
    var amountIsk:BigDecimal? = null
    var paymentLinkUrl:String? = null
    var sessionToken:String? = null
    var expiresAt:Date? = 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 TransferTicketToEventRequest 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 /TransferTicketToEvent HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
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: text/jsv
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-01
	},
	quote: 
	{
		ok: False,
		statusCode: 0,
		code: String,
		message: String,
		from: 
		{
			eventId: 0,
			eventName: String,
			timeOfEvent: 0001-01-01,
			ticketPrice: 0,
			paymentMethodId: String,
			paymentReference: String,
			availableSeats: 0
		},
		to: 
		{
			eventId: 0,
			eventName: String,
			timeOfEvent: 0001-01-01,
			ticketPrice: 0,
			paymentMethodId: String,
			paymentReference: String,
			availableSeats: 0
		},
		priceDifference: 0,
		direction: String,
		refundableViaBorgun: False,
		afterPayout: False
	}
}