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

export class TransferRefundInstruction
{
    public amountIsk?: number;
    public paymentReference?: string;
    public instruction?: string;

    public constructor(init?: Partial<TransferRefundInstruction>) { (Object as any).assign(this, init); }
}

export class TransferTopupInstruction
{
    public amountIsk?: number;
    public paymentLinkUrl?: string;
    public sessionToken?: string;
    public expiresAt?: string;

    public constructor(init?: Partial<TransferTopupInstruction>) { (Object as any).assign(this, init); }
}

export class TransferQuoteEventSide
{
    public eventId?: number;
    public eventName?: string;
    public timeOfEvent?: string;
    public ticketPrice?: number;
    public paymentMethodId?: string;
    public paymentReference?: string;
    public availableSeats?: number;

    public constructor(init?: Partial<TransferQuoteEventSide>) { (Object as any).assign(this, init); }
}

export class TransferTicketQuoteResult
{
    public ok?: boolean;
    public statusCode?: number;
    public code?: string;
    public message?: string;
    public from?: TransferQuoteEventSide;
    public to?: TransferQuoteEventSide;
    public priceDifference?: number;
    public direction?: string;
    public refundableViaBorgun?: boolean;
    public afterPayout?: boolean;

    public constructor(init?: Partial<TransferTicketQuoteResult>) { (Object as any).assign(this, init); }
}

export class TransferTicketToEventResult
{
    public ok?: boolean;
    public statusCode?: number;
    public code?: string;
    public message?: string;
    public transferLogId?: number;
    public newTicketTokenId?: string;
    public direction?: string;
    public priceDifference?: number;
    public originalTicketPrice?: number;
    public targetTicketPrice?: number;
    public sourceEventPaidOut?: boolean;
    public outstandingCostHandledByServer?: boolean;
    public refund?: TransferRefundInstruction;
    public topup?: TransferTopupInstruction;
    public quote?: TransferTicketQuoteResult;

    public constructor(init?: Partial<TransferTicketToEventResult>) { (Object as any).assign(this, init); }
}

export class TransferTicketToEventRequest
{
    public ticketTokenId?: string;
    public toEventId?: number;
    public userId?: number;
    public reason?: string;
    public idempotencyKey?: string;
    public expectedPriceDifference?: number;
    public toOwnerTicketTypeId?: number;
    public toSeriesTicketTypeId?: number;
    public toSeatId?: number;

    public constructor(init?: Partial<TransferTicketToEventRequest>) { (Object as any).assign(this, init); }
}

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