| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Requires the permission: | ReadData |
| 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} |
namespace TicketUserServices.ServiceModel
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type KsiCards() =
member val Id:Int32 = new Int32() with get,set
member val CreationDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val PhoneFullVerificationNumber:String = null with get,set
member val DeviceId:String = null with get,set
member val KsiCardTypeId:String = null with get,set
member val KsiClubId:String = null with get,set
member val HolderName:String = null with get,set
member val CanTransferToPhoneFullNumber:String = null with get,set
member val CanTransferToNName:String = null with get,set
member val ExpYear:String = null with get,set
member val ExpMonth:String = null with get,set
member val IsActive:Boolean = new Boolean() with get,set
member val ValidFromDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val ValidToDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val LastModifiedDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val RevokedDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val RevokedReason:String = null with get,set
[<AllowNullLiteral>]
type KsiCardsSearchResult() =
member val Cards:ResizeArray<KsiCards> = new ResizeArray<KsiCards>() with get,set
member val StatusCode:Int32 = new Int32() with get,set
member val Message:String = null with get,set
[<AllowNullLiteral>]
type RequestSignature() =
member val SystemId:String = null with get,set
member val SystemSecret:String = null with get,set
member val Signature:String = null with get,set
[<AllowNullLiteral>]
type KsiCardsSearchRequest() =
member val Id:Nullable<Int32> = new Nullable<Int32>() with get,set
member val KsiClubId:String = null with get,set
member val ExpiryYear:String = null with get,set
member val KsiCardType:String = null with get,set
member val FullPhoneNumber:String = null with get,set
member val OnlyValidForEventId:Nullable<Int32> = new Nullable<Int32>() with get,set
member val IncludeInactive:Nullable<Boolean> = new Nullable<Boolean>() with get,set
member val IncludeExpired:Nullable<Boolean> = new Nullable<Boolean>() with get,set
member val RequestUnixUTCTimeStamp:Int64 = new Int64() with get,set
member val Signature:RequestSignature = null with get,set
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=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-app.azurewebsites.net
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>
<IncludeExpired>false</IncludeExpired>
<IncludeInactive>false</IncludeInactive>
<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:IsActive>false</d2p1:IsActive>
<d2p1:KsiCardTypeId>String</d2p1:KsiCardTypeId>
<d2p1:KsiClubId>String</d2p1:KsiClubId>
<d2p1:LastModifiedDate>0001-01-01T00:00:00</d2p1:LastModifiedDate>
<d2p1:PhoneFullVerificationNumber>String</d2p1:PhoneFullVerificationNumber>
<d2p1:RevokedDate>0001-01-01T00:00:00</d2p1:RevokedDate>
<d2p1:RevokedReason>String</d2p1:RevokedReason>
<d2p1:ValidFromDate>0001-01-01T00:00:00</d2p1:ValidFromDate>
<d2p1:ValidToDate>0001-01-01T00:00:00</d2p1:ValidToDate>
</d2p1:KsiCards>
</Cards>
<Message>String</Message>
<StatusCode>0</StatusCode>
</KsiCardsSearchResult>