TicketUserServices

<back to all web services

SelfServiceTransferTargetTicketTypesRequest

Requires Authentication
The following routes are available for this service:
POST/selfService/transferTicket/targetTicketTypesTicket types on the target event a buyer may exchange into, with per-option price difference and blocking reason
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 SelfServiceTargetTicketTypeOption
            Public Overridable Property OwnerTicketTypeId As Nullable(Of Integer)
            Public Overridable Property SeriesTicketTypeId As Nullable(Of Integer)
            Public Overridable Property Name As String
            Public Overridable Property Price As Decimal
            Public Overridable Property Direction As String
            Public Overridable Property PriceDifference As Decimal
            Public Overridable Property NameMatchesSource As Boolean
            Public Overridable Property Selectable As Boolean
            Public Overridable Property BlockedReason As String
            Public Overridable Property BlockedMessage As String
            Public Overridable Property MaxTickets As Nullable(Of Integer)
            Public Overridable Property TicketsSold As Nullable(Of Integer)
            Public Overridable Property TicketsLeft As Nullable(Of Integer)
            Public Overridable Property SaleStatus As String
            Public Overridable Property SaleStartsUTC As Nullable(Of Date)
            Public Overridable Property SaleEndsUTC As Nullable(Of Date)
        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

        Public Partial Class SelfServiceTransferTargetTicketTypesRequest
            Public Overridable Property TicketTokenId As String
            Public Overridable Property BuyerPhone As String
            Public Overridable Property ToEventId As Integer
            Public Overridable Property SectionId As Nullable(Of Integer)
        End Class

        Public Partial Class SelfServiceTransferTargetTicketTypesResult
            Inherits SelfServiceTransferResultBase
            Public Sub New()
                Options = New List(Of SelfServiceTargetTicketTypeOption)
            End Sub

            Public Overridable Property SourceTicketPrice As Decimal
            Public Overridable Property SourceTicketTypeName As String
            Public Overridable Property ToEventId As Integer
            Public Overridable Property TargetIsSeated As Boolean
            Public Overridable Property Options As List(Of SelfServiceTargetTicketTypeOption)
        End Class
    End Namespace
End Namespace

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

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

<SelfServiceTransferTargetTicketTypesResult 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>
  <Options>
    <SelfServiceTargetTicketTypeOption>
      <BlockedMessage>String</BlockedMessage>
      <BlockedReason>String</BlockedReason>
      <Direction>String</Direction>
      <MaxTickets>0</MaxTickets>
      <Name>String</Name>
      <NameMatchesSource>false</NameMatchesSource>
      <OwnerTicketTypeId>0</OwnerTicketTypeId>
      <Price>0</Price>
      <PriceDifference>0</PriceDifference>
      <SaleEndsUTC>0001-01-01T00:00:00</SaleEndsUTC>
      <SaleStartsUTC>0001-01-01T00:00:00</SaleStartsUTC>
      <SaleStatus>String</SaleStatus>
      <Selectable>false</Selectable>
      <SeriesTicketTypeId>0</SeriesTicketTypeId>
      <TicketsLeft>0</TicketsLeft>
      <TicketsSold>0</TicketsSold>
    </SelfServiceTargetTicketTypeOption>
  </Options>
  <SourceTicketPrice>0</SourceTicketPrice>
  <SourceTicketTypeName>String</SourceTicketTypeName>
  <TargetIsSeated>false</TargetIsSeated>
  <ToEventId>0</ToEventId>
</SelfServiceTransferTargetTicketTypesResult>