TicketUserServices

<back to all web services

TicketHoldAvailabilityRequest

The following routes are available for this service:
GET/ticketHold/availability
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports TicketUserServices.ServiceModel

Namespace Global

    Namespace TicketUserServices.ServiceModel

        Public Partial Class CategoryAvailability
            Public Overridable Property EventSeriesTicketType As Nullable(Of Integer)
            Public Overridable Property EventSeriesOwnerTicketType As Nullable(Of Integer)
            Public Overridable Property MaxTickets As Nullable(Of Integer)
            Public Overridable Property Remaining As Integer
        End Class

        Public Partial Class TicketHoldAvailabilityRequest
            Public Overridable Property EventId As Integer
        End Class

        Public Partial Class TicketHoldAvailabilityResult
            Public Sub New()
                PerCategory = New List(Of CategoryAvailability)
            End Sub

            Public Overridable Property StatusCode As Integer
            Public Overridable Property Message As String
            Public Overridable Property PerCategory As List(Of CategoryAvailability)
            Public Overridable Property Scarcity As Boolean
        End Class
    End Namespace
End Namespace

VB.NET TicketHoldAvailabilityRequest 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 /ticketHold/availability HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"statusCode":0,"message":"String","perCategory":[{"eventSeriesTicketType":0,"eventSeriesOwnerTicketType":0,"maxTickets":0,"remaining":0}],"scarcity":false}