TicketUserServices

<back to all web services

TicketOrder

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequires the permission:ReadData
The following routes are available for this service:
GET POST/ticketOrder
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports TicketUserServices.ServiceModel
Imports TicketUserServices.ServiceModel.Types
Imports BorgunRPGData

Namespace Global

    Namespace BorgunRPGData

        Public Partial Class Borgun3DFinal3DSecureInfo
            Public Overridable Property DataType As String
            Public Overridable Property MpiToken As String
        End Class

        Public Partial Class Borgun3DFinalPaymentMethodInfo
            Public Overridable Property PaymentType As String
            Public Overridable Property Token As String
        End Class

        Public Partial Class Borgun3DFinalRequest
            Public Overridable Property TransactionType As String
            Public Overridable Property Amount As Integer
            Public Overridable Property Currency As String
            Public Overridable Property TransactionDate As Nullable(Of Date)
            Public Overridable Property OrderId As String
            Public Overridable Property PaymentMethod As Borgun3DFinalPaymentMethodInfo
            Public Overridable Property ThreeDSecure As Borgun3DFinal3DSecureInfo
        End Class

        Public Partial Class BorgunApplePayFinalInfo
            Public Overridable Property OrderId As String
            Public Overridable Property ThreeDSecure As BorgunApplePayThreeDSecureInfo
        End Class

        Public Partial Class BorgunApplePayThreeDSecureInfo
            Public Overridable Property DataType As String
            Public Overridable Property SecurityLevelInd As String
            Public Overridable Property CAVV As String
            Public Overridable Property UCAF As String
        End Class
    End Namespace

    Namespace TicketUserServices.ServiceModel

        Public Partial Class EventTicketWithDetails
            Public Sub New()
                EventTicketDetails = New List(Of TicketDetailsInfo)
            End Sub

            Public Overridable Property EventTicket As Ticket
            Public Overridable Property EventTicketDetails As List(Of TicketDetailsInfo)
            Public Overridable Property EventInfo As EventDetails
            Public Overridable Property EventIsToday As Boolean
            Public Overridable Property EventisLive As Boolean
            Public Overridable Property MinutesToEvent As Long
        End Class

        Public Partial Class ExternalGateAccessCodeInfo
            Public Overridable Property Code As String
            Public Overridable Property CodeType As String
            Public Overridable Property CodeUrl As String
            Public Overridable Property ValidFrom As Date
            Public Overridable Property ValidTo As Date
        End Class

        Public Partial Class PaymentMethodCreditCardInfo
            Public Overridable Property PaymentType As String
            Public Overridable Property Token As String
            Public Overridable Property PAN As String
            Public Overridable Property ExpYear As String
            Public Overridable Property ExpMonth As String
            Public Overridable Property CVC As String
        End Class

        Public Partial Class PaymentRequestCreditCard
            Public Overridable Property PaymentMethod As PaymentMethodCreditCardInfo
            Public Overridable Property Amount As Decimal
            Public Overridable Property Currency As String
            Public Overridable Property OrderId As String
            Public Overridable Property TransActionDate As Date
            Public Overridable Property SaveCardToToken As Boolean
        End Class

        Public Partial Class RequestSignature
            Public Overridable Property SystemId As String
            Public Overridable Property SystemSecret As String
            Public Overridable Property Signature As String
        End Class

        Public Partial Class TicketDetailsInfo
            Inherits TicketDetails
            Public Sub New()
                TicketHolders = New List(Of TicketHolderInfo)
                GateAccessCodes = New List(Of ExternalGateAccessCodeInfo)
            End Sub

            Public Overridable Property HolderInfoRequired As Boolean
            Public Overridable Property BlockTransfer As Nullable(Of Boolean)
            Public Overridable Property TicketTypeImageUrl As String
            Public Overridable Property TicketHolders As List(Of TicketHolderInfo)
            Public Overridable Property GateAccessCodes As List(Of ExternalGateAccessCodeInfo)
        End Class

        Public Partial Class TicketHolderInfo
            Public Overridable Property Name As String
            Public Overridable Property FullPhoneNumber As String
            Public Overridable Property HolderId As String
            Public Overridable Property SeatId As Nullable(Of Integer)
            Public Overridable Property SeatDisplayString As String
        End Class

        Public Partial Class TicketHoldersList
            Public Sub New()
                TicketHolders = New List(Of TicketHolderInfo)
            End Sub

            Public Overridable Property TicketHolders As List(Of TicketHolderInfo)
            Public Overridable Property HolderInfoRequired As Boolean
        End Class

        Public Partial Class TicketOrder
            Public Sub New()
                OrderDetails = New List(Of TicketDetails)
            End Sub

            Public Overridable Property TeamPass As TeamPassType
            Public Overridable Property Order As Ticket
            Public Overridable Property OrderDetails As List(Of TicketDetails)
            Public Overridable Property TicketHolders As TicketHoldersList
            Public Overridable Property SeatReservationTokenId As String
            Public Overridable Property CardInfo As PaymentRequestCreditCard
            Public Overridable Property PaymentPhoneNumber As String
            Public Overridable Property PaymentCardId As Nullable(Of Integer)
            Public Overridable Property RequestUnixUTCTimeStamp As Long
            Public Overridable Property Signature As RequestSignature
            Public Overridable Property PhoneVerificationNumber As String
            Public Overridable Property DeviceId As String
            Public Overridable Property DontReturnTickets As Nullable(Of Boolean)
            Public Overridable Property AppMetaData As String
            Public Overridable Property ApplePayInfo As BorgunApplePayFinalInfo
            Public Overridable Property Borgun3DFinalInfo As Borgun3DFinalRequest
        End Class

        Public Partial Class TicketOrderResult
            Public Overridable Property TicketAndDetails As EventTicketWithDetails
            Public Overridable Property StatusCode As Integer
            Public Overridable Property Message As String
        End Class
    End Namespace

    Namespace TicketUserServices.ServiceModel.Types

        Public Partial Class EventDetails
            Public Overridable Property ID As Integer
            Public Overridable Property Name As String
            Public Overridable Property Description As String
            Public Overridable Property ExternalReference As String
            Public Overridable Property TimeOfEvent As Date
            Public Overridable Property EventLocationId As Nullable(Of Integer)
            Public Overridable Property EventSeriesId As Nullable(Of Integer)
            Public Overridable Property EventOwnerId As Nullable(Of Integer)
            Public Overridable Property EventActive As Boolean
            Public Overridable Property EventOwnerName As String
            Public Overridable Property ExternalOwnerId As String
            Public Overridable Property TeamAwayId As String
            Public Overridable Property TeamAwayName As String
            Public Overridable Property EventSeriesName As String
            Public Overridable Property EventLocationName As String
            Public Overridable Property Latitude As Decimal
            Public Overridable Property Longitude As Decimal
            Public Overridable Property DefaultValues As String
            Public Overridable Property ExternalReferenceType As String
            Public Overridable Property EventSeriesActive As Nullable(Of Boolean)
            Public Overridable Property AllowedKsiCard As String
            Public Overridable Property SeriesId As String
            Public Overridable Property SeriesShowByDefault As Nullable(Of Boolean)
            Public Overridable Property PostponedNoDate As Nullable(Of Boolean)
            Public Overridable Property AwayTeamExternalId As String
            Public Overridable Property SportGenderId As String
            Public Overridable Property ExternalIdType As String
            Public Overridable Property SeriesEventSaleSuspended As Nullable(Of Boolean)
            Public Overridable Property SeriesSaleSuspensionEventStartDate As Nullable(Of Date)
            Public Overridable Property SeriesSaleSuspensionEventEndDate As Nullable(Of Date)
            Public Overridable Property SaleIsActive As Nullable(Of Boolean)
            Public Overridable Property HideEvent As Nullable(Of Boolean)
            Public Overridable Property ImageUrl2 As String
            Public Overridable Property DirectAccessCode As String
            Public Overridable Property ImageUrl As String
            Public Overridable Property DetailedDescription As String
            Public Overridable Property OwnerImageUrl As String
            Public Overridable Property OwnerImageUrl2 As String
            Public Overridable Property OwnerCardsNotAllowed As Nullable(Of Boolean)
            Public Overridable Property SeatingImageUrl As String
            Public Overridable Property EndOfEvent As Nullable(Of Date)
            Public Overridable Property EndOfEventUTC As Nullable(Of Date)
            Public Overridable Property TimeZone As String
            Public Overridable Property TimeOfEventUTC As Nullable(Of Date)
        End Class

        Public Partial Class TeamPassType
            Public Overridable Property ID As Integer
            Public Overridable Property Name As String
            Public Overridable Property Price As Decimal
            Public Overridable Property SeriesId As Integer
            Public Overridable Property OwnerId As Integer
            Public Overridable Property SeriesTicketType As Nullable(Of Integer)
            Public Overridable Property SeriesOwnerTicketType As Nullable(Of Integer)
            Public Overridable Property isActive As Nullable(Of Boolean)
            Public Overridable Property OnlyForTeamUse As Nullable(Of Boolean)
            Public Overridable Property TimestampCreated As Nullable(Of Date)
            Public Overridable Property TimestampLastChanged As Nullable(Of Date)
        End Class

        Public Partial Class Ticket
            Public Overridable Property ID As Integer
            Public Overridable Property UserId As Nullable(Of Integer)
            Public Overridable Property UserAuthId As Nullable(Of Integer)
            Public Overridable Property EventId As Integer
            Public Overridable Property TimestampBought As Date
            Public Overridable Property TimestampActivated As Date
            Public Overridable Property TimeStampOrdered As Date
            Public Overridable Property DeviceId As String
            Public Overridable Property PhoneVerificationId As Integer
            Public Overridable Property PaymentMethodId As String
            Public Overridable Property PaymentReference As String
            Public Overridable Property TicketStatus As String
            Public Overridable Property PhoneVerificationNumber As String
            Public Overridable Property TicketTokenId As String
            Public Overridable Property PaymentPhoneNumber As String
            Public Overridable Property TicketTransferredFrom As Nullable(Of Integer)
            Public Overridable Property OriginalPhoneVerificationNumber As String
            Public Overridable Property TeamPassId As Nullable(Of Integer)
            Public Overridable Property PaymentId As String
            Public Overridable Property IsFree As Nullable(Of Boolean)
            Public Overridable Property FreeTicketFromId As String
            Public Overridable Property FreeTicketFromTypeId As String
            Public Overridable Property FreeTicketCardTypeId As String
            Public Overridable Property FreeTicketCardId As Nullable(Of Integer)
            Public Overridable Property TotalPaidForTicket As Nullable(Of Decimal)
            Public Overridable Property SeatsReservationId As String
            Public Overridable Property TimeStampLastStatusChange As Nullable(Of Date)
            Public Overridable Property LastTicketStatus As String
            Public Overridable Property ScanCode As String
            Public Overridable Property ScanCodeType As String
            Public Overridable Property ScanCodeNotActive As Nullable(Of Boolean)
            Public Overridable Property MultipleScanCodes As Nullable(Of Boolean)
            Public Overridable Property Currency As String
            Public Overridable Property TicketHasExpired As Boolean
        End Class

        Public Partial Class TicketDetails
            Public Overridable Property ID As Integer
            Public Overridable Property TicketId As Integer
            Public Overridable Property EventSeriesTicketType As Nullable(Of Integer)
            Public Overridable Property EventSeriesOwnerTicketType As Nullable(Of Integer)
            Public Overridable Property TicketPrice As Decimal
            Public Overridable Property TotalPrice As Decimal
            Public Overridable Property Count As Integer
            Public Overridable Property TicketColor As String
            Public Overridable Property ShowUsedTickets As Nullable(Of Boolean)
            Public Overridable Property TicketName As String
            Public Overridable Property TicketDisplayString As String
            Public Overridable Property TicketDetailsTransferredFrom As Nullable(Of Integer)
            Public Overridable Property TeamPassId As Nullable(Of Integer)
            Public Overridable Property IsSpecialTicket As Nullable(Of Boolean)
            Public Overridable Property SpecialTicketId As String
            Public Overridable Property JustChangedBySQL As Nullable(Of Boolean)
            Public Overridable Property SQLJustChangedTimeStamp As Nullable(Of Date)
            Public Overridable Property Currency As String
        End Class
    End Namespace
End Namespace

VB.NET TicketOrder 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 /ticketOrder HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	teamPass: 
	{
		id: 0,
		name: String,
		price: 0,
		seriesId: 0,
		ownerId: 0,
		seriesTicketType: 0,
		seriesOwnerTicketType: 0,
		isActive: False,
		onlyForTeamUse: False,
		timestampCreated: 0001-01-01,
		timestampLastChanged: 0001-01-01
	},
	order: 
	{
		id: 0,
		userId: 0,
		userAuthId: 0,
		eventId: 0,
		timestampBought: 0001-01-01,
		timestampActivated: 0001-01-01,
		timeStampOrdered: 0001-01-01,
		deviceId: String,
		phoneVerificationId: 0,
		paymentMethodId: String,
		paymentReference: String,
		ticketStatus: String,
		phoneVerificationNumber: String,
		ticketTokenId: String,
		paymentPhoneNumber: String,
		ticketTransferredFrom: 0,
		originalPhoneVerificationNumber: String,
		teamPassId: 0,
		paymentId: String,
		isFree: False,
		freeTicketFromId: String,
		freeTicketFromTypeId: String,
		freeTicketCardTypeId: String,
		freeTicketCardId: 0,
		totalPaidForTicket: 0,
		seatsReservationId: String,
		timeStampLastStatusChange: 0001-01-01,
		lastTicketStatus: String,
		scanCode: String,
		scanCodeType: String,
		scanCodeNotActive: False,
		multipleScanCodes: False,
		currency: String,
		ticketHasExpired: False
	},
	orderDetails: 
	[
		{
			id: 0,
			ticketId: 0,
			eventSeriesTicketType: 0,
			eventSeriesOwnerTicketType: 0,
			ticketPrice: 0,
			totalPrice: 0,
			count: 0,
			ticketColor: String,
			showUsedTickets: False,
			ticketName: String,
			ticketDisplayString: String,
			ticketDetailsTransferredFrom: 0,
			teamPassId: 0,
			isSpecialTicket: False,
			specialTicketId: String,
			justChangedBySQL: False,
			sqlJustChangedTimeStamp: 0001-01-01,
			currency: String
		}
	],
	ticketHolders: 
	{
		ticketHolders: 
		[
			{
				name: String,
				fullPhoneNumber: String,
				holderId: String,
				seatId: 0,
				seatDisplayString: String
			}
		],
		holderInfoRequired: False
	},
	seatReservationTokenId: String,
	cardInfo: 
	{
		paymentMethod: 
		{
			paymentType: String,
			token: String,
			pan: String,
			expYear: String,
			expMonth: String,
			cvc: String
		},
		amount: 0,
		currency: String,
		orderId: String,
		transActionDate: 0001-01-01,
		saveCardToToken: False
	},
	paymentPhoneNumber: String,
	paymentCardId: 0,
	requestUnixUTCTimeStamp: 0,
	signature: 
	{
		systemId: String,
		systemSecret: String,
		signature: String
	},
	phoneVerificationNumber: String,
	deviceId: String,
	dontReturnTickets: False,
	appMetaData: String,
	applePayInfo: 
	{
		orderId: String,
		threeDSecure: 
		{
			dataType: String,
			securityLevelInd: String,
			cavv: String,
			ucaf: String
		}
	},
	borgun3DFinalInfo: 
	{
		transactionType: String,
		amount: 0,
		currency: String,
		transactionDate: 0001-01-01,
		orderId: String,
		paymentMethod: 
		{
			paymentType: String,
			token: String
		},
		threeDSecure: 
		{
			dataType: String,
			mpiToken: String
		}
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ticketAndDetails: 
	{
		eventTicket: 
		{
			id: 0,
			userId: 0,
			userAuthId: 0,
			eventId: 0,
			timestampBought: 0001-01-01,
			timestampActivated: 0001-01-01,
			timeStampOrdered: 0001-01-01,
			deviceId: String,
			phoneVerificationId: 0,
			paymentMethodId: String,
			paymentReference: String,
			ticketStatus: String,
			phoneVerificationNumber: String,
			ticketTokenId: String,
			paymentPhoneNumber: String,
			ticketTransferredFrom: 0,
			originalPhoneVerificationNumber: String,
			teamPassId: 0,
			paymentId: String,
			isFree: False,
			freeTicketFromId: String,
			freeTicketFromTypeId: String,
			freeTicketCardTypeId: String,
			freeTicketCardId: 0,
			totalPaidForTicket: 0,
			seatsReservationId: String,
			timeStampLastStatusChange: 0001-01-01,
			lastTicketStatus: String,
			scanCode: String,
			scanCodeType: String,
			scanCodeNotActive: False,
			multipleScanCodes: False,
			currency: String,
			ticketHasExpired: False
		},
		eventTicketDetails: 
		[
			{
				
			}
		],
		eventInfo: 
		{
			id: 0,
			name: String,
			description: String,
			externalReference: String,
			timeOfEvent: 0001-01-01,
			eventLocationId: 0,
			eventSeriesId: 0,
			eventOwnerId: 0,
			eventActive: False,
			eventOwnerName: String,
			externalOwnerId: String,
			teamAwayId: String,
			teamAwayName: String,
			eventSeriesName: String,
			eventLocationName: String,
			latitude: 0,
			longitude: 0,
			defaultValues: String,
			externalReferenceType: String,
			eventSeriesActive: False,
			allowedKsiCard: String,
			seriesId: String,
			seriesShowByDefault: False,
			postponedNoDate: False,
			awayTeamExternalId: String,
			sportGenderId: String,
			externalIdType: String,
			seriesEventSaleSuspended: False,
			seriesSaleSuspensionEventStartDate: 0001-01-01,
			seriesSaleSuspensionEventEndDate: 0001-01-01,
			saleIsActive: False,
			hideEvent: False,
			imageUrl2: String,
			directAccessCode: String,
			imageUrl: String,
			detailedDescription: String,
			ownerImageUrl: String,
			ownerImageUrl2: String,
			ownerCardsNotAllowed: False,
			seatingImageUrl: String,
			endOfEvent: 0001-01-01,
			endOfEventUTC: 0001-01-01,
			timeZone: String,
			timeOfEventUTC: 0001-01-01
		},
		eventIsToday: False,
		eventisLive: False,
		minutesToEvent: 0
	},
	statusCode: 0,
	message: String
}