TicketUserServices

<back to all web services

OwnerCardTypeGetRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequired permission:ReadData
The following routes are available for this service:
GET/OwnerCardType/{Id}
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 OwnerCardTypeGetRequest
            Public Overridable Property Id As Integer
        End Class

        Public Partial Class OwnerCardTypeResult
            Public Overridable Property Item As OwnerCardType
            Public Overridable Property StatusCode As Integer
            Public Overridable Property Message As String
        End Class
    End Namespace

    Namespace TicketUserServices.ServiceModel.Types

        Public Partial Class OwnerCardType
            Public Overridable Property ID As Integer
            Public Overridable Property OwnerId As Integer
            Public Overridable Property MaxTickets As Nullable(Of Integer)
            Public Overridable Property TimeStampCreatedUTC As Nullable(Of Date)
            Public Overridable Property TimeStampLastChangedUTC As Nullable(Of Date)
            Public Overridable Property SaleStartDateUTC As Nullable(Of Date)
            Public Overridable Property SaleEndDateUTC As Nullable(Of Date)
            Public Overridable Property ValidStartDateForNewCardsUTC As Nullable(Of Date)
            Public Overridable Property ValidEndDateForNewCardsUTC As Nullable(Of Date)
            Public Overridable Property HasStoreCredit As Boolean
            Public Overridable Property IsActive As Boolean
            Public Overridable Property OnlyForTeamUse As Nullable(Of Boolean)
            Public Overridable Property Price As Decimal
            Public Overridable Property InitialStoreCredit As Decimal
            Public Overridable Property Description As String
            Public Overridable Property Name As String
            Public Overridable Property ImageUrl As String
            Public Overridable Property Currency As String
            Public Overridable Property MaxTicketsPerEvent As Nullable(Of Integer)
            Public Overridable Property BackgroundImageUrl As String
            Public Overridable Property ValidForConnectedOwners As Nullable(Of Boolean)
            Public Overridable Property SuperOwnerId As Nullable(Of Integer)
        End Class
    End Namespace
End Namespace

VB.NET OwnerCardTypeGetRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

GET /OwnerCardType/{Id} HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"item":{"id":0,"ownerId":0,"maxTickets":0,"timeStampCreatedUTC":"0001-01-01T00:00:00.0000000","timeStampLastChangedUTC":"0001-01-01T00:00:00.0000000","saleStartDateUTC":"0001-01-01T00:00:00.0000000","saleEndDateUTC":"0001-01-01T00:00:00.0000000","validStartDateForNewCardsUTC":"0001-01-01T00:00:00.0000000","validEndDateForNewCardsUTC":"0001-01-01T00:00:00.0000000","hasStoreCredit":false,"isActive":false,"onlyForTeamUse":false,"price":0,"initialStoreCredit":0,"description":"String","name":"String","imageUrl":"String","currency":"String","maxTicketsPerEvent":0,"backgroundImageUrl":"String","validForConnectedOwners":false,"superOwnerId":0},"statusCode":0,"message":"String"}