TicketUserServices

<back to all web services

TicketHoldFindAndReserveRequest

The following routes are available for this service:
POST/ticketHold/findAndReserve
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 CategoryHoldLine
            Public Overridable Property EventSeriesTicketType As Nullable(Of Integer)
            Public Overridable Property EventSeriesOwnerTicketType As Nullable(Of Integer)
            Public Overridable Property Quantity As Integer
        End Class

        Public Partial Class HoldLineRequest
            Public Overridable Property EventSeriesTicketType As Nullable(Of Integer)
            Public Overridable Property EventSeriesOwnerTicketType As Nullable(Of Integer)
            Public Overridable Property Quantity As Integer
        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

        Public Partial Class TicketHoldFindAndReserveRequest
            Public Sub New()
                Lines = New List(Of HoldLineRequest)
            End Sub

            Public Overridable Property EventId As Integer
            Public Overridable Property Lines As List(Of HoldLineRequest)
            Public Overridable Property DeviceId As String
            Public Overridable Property PhoneVerificationNumber As String
            Public Overridable Property ReservationTokenId As String
            Public Overridable Property RequestUnixUTCTimeStamp As Long
            Public Overridable Property Signature As RequestSignature
        End Class

        Public Partial Class TicketHoldResult
            Public Sub New()
                Lines = New List(Of CategoryHoldLine)
                PerCategory = New List(Of CategoryAvailability)
            End Sub

            Public Overridable Property StatusCode As Integer
            Public Overridable Property Message As String
            Public Overridable Property ReservationTokenId As String
            Public Overridable Property ExpiresUtc As Nullable(Of Date)
            Public Overridable Property Lines As List(Of CategoryHoldLine)
            Public Overridable Property PerCategory As List(Of CategoryAvailability)
            Public Overridable Property Scarcity As Boolean
        End Class
    End Namespace
End Namespace

VB.NET TicketHoldFindAndReserveRequest DTOs

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

HTTP + CSV

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

POST /ticketHold/findAndReserve HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"eventId":0,"lines":[{"eventSeriesTicketType":0,"eventSeriesOwnerTicketType":0,"quantity":0}],"deviceId":"String","phoneVerificationNumber":"String","reservationTokenId":"String","requestUnixUTCTimeStamp":0,"signature":{"systemId":"String","systemSecret":"String","signature":"String"}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"statusCode":0,"message":"String","reservationTokenId":"String","expiresUtc":"0001-01-01T00:00:00.0000000","lines":[{"eventSeriesTicketType":0,"eventSeriesOwnerTicketType":0,"quantity":0}],"perCategory":[{"eventSeriesTicketType":0,"eventSeriesOwnerTicketType":0,"maxTickets":0,"remaining":0}],"scarcity":false}