TicketUserServices

<back to all web services

TransferTargetTicketTypesRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequires the permission:ReadData
The following routes are available for this service:
POST/transferTicket/targetTicketTypesList all ticket types available on the target event with price diff vs source
import Foundation
import ServiceStack

public class TransferTargetTicketTypesRequest : Codable
{
    public var ticketTokenId:String?
    public var toEventId:Int?
    public var sectionId:Int?

    required public init(){}
}

public class TransferTargetTicketTypesResult : Codable
{
    public var ok:Bool?
    public var statusCode:Int?
    public var code:String?
    public var message:String?
    public var sourceTicketPrice:Double?
    public var sourceTicketTypeName:String?
    public var options:[TransferTargetTicketTypeOption] = []

    required public init(){}
}

public class TransferTargetTicketTypeOption : Codable
{
    public var ownerTicketTypeId:Int?
    public var seriesTicketTypeId:Int?
    public var name:String?
    public var price:Double?
    public var direction:String?
    public var priceDifference:Double?
    public var nameMatchesSource:Bool?
    public var blockTransfer:Bool?
    public var hidden:Bool?
    public var maxTickets:Int?
    public var ticketsSold:Int?
    public var ticketsLeft:Int?

    required public init(){}
}


Swift TransferTargetTicketTypesRequest 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 /transferTicket/targetTicketTypes HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	ticketTokenId: String,
	toEventId: 0,
	sectionId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ok: False,
	statusCode: 0,
	code: String,
	message: String,
	sourceTicketPrice: 0,
	sourceTicketTypeName: String,
	options: 
	[
		{
			ownerTicketTypeId: 0,
			seriesTicketTypeId: 0,
			name: String,
			price: 0,
			direction: String,
			priceDifference: 0,
			nameMatchesSource: False,
			blockTransfer: False,
			hidden: False,
			maxTickets: 0,
			ticketsSold: 0,
			ticketsLeft: 0
		}
	]
}