TicketUserServices

<back to all web services

VenueSeatingArrangementTicketTypePreviewRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequired permission:Tickets.Add
The following routes are available for this service:
GET/VenueSeatingArrangement/TicketTypePreview/{ArrangementId}
import Foundation
import ServiceStack

public class VenueSeatingArrangementTicketTypePreviewRequest : Codable
{
    public var arrangementId:Int?

    required public init(){}
}

public class VenueSeatingArrangementTicketTypePreviewResponse : Codable
{
    public var arrangementId:Int?
    public var venueId:Int?
    public var ticketTypes:[TemplateTicketTypePreviewItem] = []
    public var statusCode:Int?
    public var message:String?

    required public init(){}
}

public class TemplateTicketTypePreviewItem : Codable
{
    public var ownerTicketTypeId:Int?
    public var name:String?
    public var defaultPrice:Double?
    public var currency:String?
    public var maxTickets:Int?
    public var sectionCount:Int?
    public var sectionNames:[String] = []
    public var hiddenFromSale:Bool?
    public var typeCreatedAt:Date?
    public var lastSoldAt:Date?
    public var connectionIds:[Int] = []

    required public init(){}
}


Swift VenueSeatingArrangementTicketTypePreviewRequest 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.

GET /VenueSeatingArrangement/TicketTypePreview/{ArrangementId} HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	arrangementId: 0,
	venueId: 0,
	ticketTypes: 
	[
		{
			ownerTicketTypeId: 0,
			name: String,
			defaultPrice: 0,
			currency: String,
			maxTickets: 0,
			sectionCount: 0,
			sectionNames: 
			[
				String
			],
			hiddenFromSale: False,
			typeCreatedAt: 0001-01-01,
			lastSoldAt: 0001-01-01,
			connectionIds: 
			[
				0
			]
		}
	],
	statusCode: 0,
	message: String
}