TicketUserServices

<back to all web services

SelfServiceAvailableSeatsRequest

Requires Authentication
The following routes are available for this service:
POST/selfService/transferTicket/availableSeatsSeats a buyer may pick for a seated exchange, grouped by section and row
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 SelfServiceAvailableSeatsRequest
            Public Overridable Property TicketTokenId As String
            Public Overridable Property BuyerPhone As String
            Public Overridable Property ToEventId As Integer
            Public Overridable Property ToOwnerTicketTypeId As Nullable(Of Integer)
            Public Overridable Property ToSeriesTicketTypeId As Nullable(Of Integer)
        End Class

        Public Partial Class SelfServiceAvailableSeatsResult
            Inherits SelfServiceTransferResultBase
            Public Sub New()
                Sections = New List(Of SelfServiceSeatSection)
            End Sub

            Public Overridable Property ToEventId As Integer
            Public Overridable Property ToTicketTypeName As String
            Public Overridable Property AssignedSeatId As Nullable(Of Integer)
            Public Overridable Property AssignedSeatLabel As String
            Public Overridable Property Sections As List(Of SelfServiceSeatSection)
            Public Overridable Property TotalSeats As Integer
            Public Overridable Property SelectableSeats As Integer
            Public Overridable Property Truncated As Boolean
        End Class

        Public Partial Class SelfServiceSeatOption
            Public Overridable Property SeatId As Integer
            Public Overridable Property SeatName As String
            Public Overridable Property Label As String
            Public Overridable Property Status As String
            Public Overridable Property IsSeat As Boolean
            Public Overridable Property Selectable As Boolean
            Public Overridable Property PositionX As Nullable(Of Decimal)
            Public Overridable Property PositionY As Nullable(Of Decimal)
            Public Overridable Property Rotation As Nullable(Of Decimal)
            Public Overridable Property SortOrder As Nullable(Of Decimal)
            Public Overridable Property RowId As Nullable(Of Integer)
            Public Overridable Property RowName As String
        End Class

        Public Partial Class SelfServiceSeatSection
            Public Sub New()
                Seats = New List(Of SelfServiceSeatOption)
            End Sub

            Public Overridable Property SectionId As Nullable(Of Integer)
            Public Overridable Property SectionName As String
            Public Overridable Property PositionX As Nullable(Of Decimal)
            Public Overridable Property PositionY As Nullable(Of Decimal)
            Public Overridable Property Rotation As Nullable(Of Decimal)
            Public Overridable Property ViewType As String
            Public Overridable Property Seats As List(Of SelfServiceSeatOption)
        End Class

        Public Partial Class SelfServiceTransferResultBase
            Public Overridable Property Ok As Boolean
            Public Overridable Property StatusCode As Integer
            Public Overridable Property Code As String
            Public Overridable Property Message As String
        End Class
    End Namespace
End Namespace

VB.NET SelfServiceAvailableSeatsRequest 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 /selfService/transferTicket/availableSeats HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<SelfServiceAvailableSeatsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <BuyerPhone>String</BuyerPhone>
  <TicketTokenId>String</TicketTokenId>
  <ToEventId>0</ToEventId>
  <ToOwnerTicketTypeId>0</ToOwnerTicketTypeId>
  <ToSeriesTicketTypeId>0</ToSeriesTicketTypeId>
</SelfServiceAvailableSeatsRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<SelfServiceAvailableSeatsResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Code>String</Code>
  <Message>String</Message>
  <Ok>false</Ok>
  <StatusCode>0</StatusCode>
  <AssignedSeatId>0</AssignedSeatId>
  <AssignedSeatLabel>String</AssignedSeatLabel>
  <Sections>
    <SelfServiceSeatSection>
      <PositionX>0</PositionX>
      <PositionY>0</PositionY>
      <Rotation>0</Rotation>
      <Seats>
        <SelfServiceSeatOption>
          <IsSeat>false</IsSeat>
          <Label>String</Label>
          <PositionX>0</PositionX>
          <PositionY>0</PositionY>
          <Rotation>0</Rotation>
          <RowId>0</RowId>
          <RowName>String</RowName>
          <SeatId>0</SeatId>
          <SeatName>String</SeatName>
          <Selectable>false</Selectable>
          <SortOrder>0</SortOrder>
          <Status>String</Status>
        </SelfServiceSeatOption>
      </Seats>
      <SectionId>0</SectionId>
      <SectionName>String</SectionName>
      <ViewType>String</ViewType>
    </SelfServiceSeatSection>
  </Sections>
  <SelectableSeats>0</SelectableSeats>
  <ToEventId>0</ToEventId>
  <ToTicketTypeName>String</ToTicketTypeName>
  <TotalSeats>0</TotalSeats>
  <Truncated>false</Truncated>
</SelfServiceAvailableSeatsResult>