TicketUserServices

<back to all web services

EventsSearchRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequired permission:Tickets.Add
The following routes are available for this service:
POST/Event/Search
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 EventsResult
            Public Sub New()
                Items = New List(Of Event)
            End Sub

            Public Overridable Property Items As List(Of Event)
            Public Overridable Property StatusCode As Integer
            Public Overridable Property Message As String
        End Class

        Public Partial Class EventsSearchRequest
            Public Overridable Property Name As String
            Public Overridable Property ExternalID As String
            Public Overridable Property ExternalIdType As String
        End Class
    End Namespace

    Namespace TicketUserServices.ServiceModel.Types

        Public Partial Class Event
            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 DefaultValues As String
            Public Overridable Property ExternalReferenceType As String
            Public Overridable Property PostponedNoDate As Nullable(Of Boolean)
            Public Overridable Property AwayTeamExternalId As String
            Public Overridable Property SportGenderId As String
            Public Overridable Property SaleIsActive As Nullable(Of Boolean)
            Public Overridable Property SeatingImageUrl As String
            Public Overridable Property VenueId As Nullable(Of Integer)
            Public Overridable Property AwayTeamOwnerId As Nullable(Of Integer)
            Public Overridable Property DetailedDescription As String
            Public Overridable Property ImageUrl As String
            Public Overridable Property DirectAccessCode As String
            Public Overridable Property ImageUrl2 As String
            Public Overridable Property HideEvent As Nullable(Of Boolean)
            Public Overridable Property OwnerCardsNotAllowed As Nullable(Of Boolean)
            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
    End Namespace
End Namespace

VB.NET EventsSearchRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /Event/Search HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<EventsSearchRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <ExternalID>String</ExternalID>
  <ExternalIdType>String</ExternalIdType>
  <Name>String</Name>
</EventsSearchRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<EventsResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types">
    <d2p1:Event>
      <d2p1:AwayTeamExternalId>String</d2p1:AwayTeamExternalId>
      <d2p1:AwayTeamOwnerId>0</d2p1:AwayTeamOwnerId>
      <d2p1:DefaultValues>String</d2p1:DefaultValues>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:DetailedDescription>String</d2p1:DetailedDescription>
      <d2p1:DirectAccessCode>String</d2p1:DirectAccessCode>
      <d2p1:EndOfEvent>0001-01-01T00:00:00</d2p1:EndOfEvent>
      <d2p1:EndOfEventUTC>0001-01-01T00:00:00</d2p1:EndOfEventUTC>
      <d2p1:EventActive>false</d2p1:EventActive>
      <d2p1:EventLocationId>0</d2p1:EventLocationId>
      <d2p1:EventOwnerId>0</d2p1:EventOwnerId>
      <d2p1:EventSeriesId>0</d2p1:EventSeriesId>
      <d2p1:ExternalReference>String</d2p1:ExternalReference>
      <d2p1:ExternalReferenceType>String</d2p1:ExternalReferenceType>
      <d2p1:HideEvent>false</d2p1:HideEvent>
      <d2p1:ID>0</d2p1:ID>
      <d2p1:ImageUrl>String</d2p1:ImageUrl>
      <d2p1:ImageUrl2>String</d2p1:ImageUrl2>
      <d2p1:Name>String</d2p1:Name>
      <d2p1:OwnerCardsNotAllowed>false</d2p1:OwnerCardsNotAllowed>
      <d2p1:PostponedNoDate>false</d2p1:PostponedNoDate>
      <d2p1:SaleIsActive>false</d2p1:SaleIsActive>
      <d2p1:SeatingImageUrl>String</d2p1:SeatingImageUrl>
      <d2p1:SportGenderId>String</d2p1:SportGenderId>
      <d2p1:TimeOfEvent>0001-01-01T00:00:00</d2p1:TimeOfEvent>
      <d2p1:TimeOfEventUTC>0001-01-01T00:00:00</d2p1:TimeOfEventUTC>
      <d2p1:TimeZone>String</d2p1:TimeZone>
      <d2p1:VenueId>0</d2p1:VenueId>
    </d2p1:Event>
  </Items>
  <Message>String</Message>
  <StatusCode>0</StatusCode>
</EventsResult>