TicketUserServices

<back to all web services

SelfServiceTransferTargetEventsRequest

Requires Authentication
The following routes are available for this service:
POST/selfService/transferTicket/targetEventsEvents a buyer may exchange their ticket onto (same series, same owner, still upcoming, source event included)
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 SelfServiceTargetEvent
            Public Overridable Property EventId As Integer
            Public Overridable Property EventName As String
            Public Overridable Property TimeOfEvent As Nullable(Of Date)
            Public Overridable Property IsSeated As Boolean
            Public Overridable Property IsSourceEvent As Boolean
            Public Overridable Property SaleNotOpenYet As Boolean
            Public Overridable Property TicketSaleStartsUTC 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 SelfServiceTransferTargetEventsRequest
            Public Overridable Property TicketTokenId As String
            Public Overridable Property BuyerPhone As String
        End Class

        Public Partial Class SelfServiceTransferTargetEventsResult
            Inherits SelfServiceTransferResultBase
            Public Sub New()
                Events = New List(Of SelfServiceTargetEvent)
            End Sub

            Public Overridable Property EventSeriesId As Nullable(Of Integer)
            Public Overridable Property SourceEventId As Integer
            Public Overridable Property SourceEventName As String
            Public Overridable Property SourceEventTimeOfEvent As Nullable(Of Date)
            Public Overridable Property SourceTicketPrice As Decimal
            Public Overridable Property SourceTicketTypeName As String
            Public Overridable Property Events As List(Of SelfServiceTargetEvent)
        End Class
    End Namespace
End Namespace

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

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

{"eventSeriesId":0,"sourceEventId":0,"sourceEventName":"String","sourceEventTimeOfEvent":"0001-01-01T00:00:00.0000000","sourceTicketPrice":0,"sourceTicketTypeName":"String","events":[{"eventId":0,"eventName":"String","timeOfEvent":"0001-01-01T00:00:00.0000000","isSeated":false,"isSourceEvent":false,"saleNotOpenYet":false,"ticketSaleStartsUTC":"0001-01-01T00:00:00.0000000"}],"ok":false,"statusCode":0,"code":"String","message":"String"}