TicketUserServices

<back to all web services

TransferTargetTicketTypesRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequires the permission:ReadData
The following routes are available for this service:
POST/transferTicket/targetTicketTypesList all ticket types available on the target event with price diff vs source
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 TransferTargetTicketTypeOption
            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 BlockTransfer As Boolean
            Public Overridable Property Hidden As Boolean
            Public Overridable Property MaxTickets As Nullable(Of Integer)
            Public Overridable Property TicketsSold As Nullable(Of Integer)
            Public Overridable Property TicketsLeft As Nullable(Of Integer)
        End Class

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

        Public Partial Class TransferTargetTicketTypesResult
            Public Sub New()
                Options = New List(Of TransferTargetTicketTypeOption)
            End Sub

            Public Overridable Property Ok As Boolean
            Public Overridable Property StatusCode As Integer
            Public Overridable Property Code As String
            Public Overridable Property Message As String
            Public Overridable Property SourceTicketPrice As Decimal
            Public Overridable Property SourceTicketTypeName As String
            Public Overridable Property Options As List(Of TransferTargetTicketTypeOption)
        End Class
    End Namespace
End Namespace

VB.NET TransferTargetTicketTypesRequest 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.

POST /transferTicket/targetTicketTypes HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"ticketTokenId":"String","toEventId":0,"sectionId":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ok":false,"statusCode":0,"code":"String","message":"String","sourceTicketPrice":0,"sourceTicketTypeName":"String","options":[{"ownerTicketTypeId":0,"seriesTicketTypeId":0,"name":"String","price":0,"direction":"String","priceDifference":0,"nameMatchesSource":false,"blockTransfer":false,"hidden":false,"maxTickets":0,"ticketsSold":0,"ticketsLeft":0}]}