TicketUserServices

<back to all web services

TeamPassTypesSearchRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequires the permission:ReadData
The following routes are available for this service:
All Verbs/teamPassTypes/Search
All Verbs/teamPassTypes/Search/{Id}
All Verbs/teamPassTypes/Search/Club/ksi/{KsiClubId}/{EventSeriesId}
All Verbs/teamPassTypes/Search/Club/{EventOwnerId}/{EventSeriesId}
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

Namespace Global

    Namespace TicketUserServices.ServiceModel

        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 TeamPassTypesResult
            Public Sub New()
                PassTypes = New List(Of TeamPassType)
            End Sub

            Public Overridable Property PassTypes As List(Of TeamPassType)
            Public Overridable Property StatusCode As Integer
            Public Overridable Property Message As String
        End Class

        Public Partial Class TeamPassTypesSearchRequest
            Public Overridable Property Id As Nullable(Of Integer)
            Public Overridable Property KsiClubId As String
            Public Overridable Property TeamId As Nullable(Of Integer)
            Public Overridable Property EventSeriesId As Nullable(Of Integer)
            Public Overridable Property RequestUnixUTCTimeStamp As Long
            Public Overridable Property Signature As RequestSignature
        End Class
    End Namespace

    Namespace TicketUserServices.ServiceModel.Types

        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
    End Namespace
End Namespace

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

{
	id: 0,
	ksiClubId: String,
	teamId: 0,
	eventSeriesId: 0,
	requestUnixUTCTimeStamp: 0,
	signature: 
	{
		systemId: String,
		systemSecret: String,
		signature: String
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	passTypes: 
	[
		{
			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
		}
	],
	statusCode: 0,
	message: String
}