TicketUserServices

<back to all web services

KsiCardsSearchRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequires the permission:ReadData
The following routes are available for this service:
All Verbs/ksiCards/Search
All Verbs/ksiCards/Search/{Id}
All Verbs/ksiCards/Search/Club/{KsiClubId}/{ExpiryYear}
All Verbs/ksiCards/Search/Club/CardType/{KsiClubId}/{KsiCardType}/{ExpiryYear}
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 KsiCardsSearchRequest
            Public Overridable Property Id As Nullable(Of Integer)
            Public Overridable Property KsiClubId As String
            Public Overridable Property ExpiryYear As String
            Public Overridable Property KsiCardType As String
            Public Overridable Property FullPhoneNumber As String
            Public Overridable Property OnlyValidForEventId As Nullable(Of Integer)
            Public Overridable Property RequestUnixUTCTimeStamp As Long
            Public Overridable Property Signature As RequestSignature
        End Class

        Public Partial Class KsiCardsSearchResult
            Public Sub New()
                Cards = New List(Of KsiCards)
            End Sub

            Public Overridable Property Cards As List(Of KsiCards)
            Public Overridable Property StatusCode As Integer
            Public Overridable Property Message As String
        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
    End Namespace

    Namespace TicketUserServices.ServiceModel.Types

        Public Partial Class KsiCards
            Public Overridable Property Id As Integer
            Public Overridable Property CreationDate As Nullable(Of Date)
            Public Overridable Property PhoneFullVerificationNumber As String
            Public Overridable Property DeviceId As String
            Public Overridable Property KsiCardTypeId As String
            Public Overridable Property KsiClubId As String
            Public Overridable Property HolderName As String
            Public Overridable Property CanTransferToPhoneFullNumber As String
            Public Overridable Property CanTransferToNName As String
            Public Overridable Property ExpYear As String
            Public Overridable Property ExpMonth As String
        End Class
    End Namespace
End Namespace

VB.NET KsiCardsSearchRequest 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 /ksiCards/Search HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<KsiCardsSearchRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <ExpiryYear>String</ExpiryYear>
  <FullPhoneNumber>String</FullPhoneNumber>
  <Id>0</Id>
  <KsiCardType>String</KsiCardType>
  <KsiClubId>String</KsiClubId>
  <OnlyValidForEventId>0</OnlyValidForEventId>
  <RequestUnixUTCTimeStamp>0</RequestUnixUTCTimeStamp>
  <Signature>
    <Signature>String</Signature>
    <SystemId>String</SystemId>
    <SystemSecret>String</SystemSecret>
  </Signature>
</KsiCardsSearchRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<KsiCardsSearchResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Cards xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types">
    <d2p1:KsiCards>
      <d2p1:CanTransferToNName>String</d2p1:CanTransferToNName>
      <d2p1:CanTransferToPhoneFullNumber>String</d2p1:CanTransferToPhoneFullNumber>
      <d2p1:CreationDate>0001-01-01T00:00:00</d2p1:CreationDate>
      <d2p1:DeviceId>String</d2p1:DeviceId>
      <d2p1:ExpMonth>String</d2p1:ExpMonth>
      <d2p1:ExpYear>String</d2p1:ExpYear>
      <d2p1:HolderName>String</d2p1:HolderName>
      <d2p1:Id>0</d2p1:Id>
      <d2p1:KsiCardTypeId>String</d2p1:KsiCardTypeId>
      <d2p1:KsiClubId>String</d2p1:KsiClubId>
      <d2p1:PhoneFullVerificationNumber>String</d2p1:PhoneFullVerificationNumber>
    </d2p1:KsiCards>
  </Cards>
  <Message>String</Message>
  <StatusCode>0</StatusCode>
</KsiCardsSearchResult>