| POST | /selfService/transferTicket/quote | Price difference and eligibility for a prospective buyer-initiated exchange |
|---|
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 SelfServiceTransferQuoteRequest
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)
Public Overridable Property ToSeatId As Nullable(Of Integer)
End Class
Public Partial Class SelfServiceTransferQuoteResult
Inherits SelfServiceTransferResultBase
Public Overridable Property Direction As String
Public Overridable Property PriceDifference As Decimal
Public Overridable Property SourceTicketPrice As Decimal
Public Overridable Property TargetTicketPrice As Decimal
Public Overridable Property SourceEventId As Integer
Public Overridable Property SourceEventName As String
Public Overridable Property SourceEventTimeOfEvent As Nullable(Of Date)
Public Overridable Property ToEventId As Integer
Public Overridable Property ToEventName As String
Public Overridable Property ToEventTimeOfEvent As Nullable(Of Date)
Public Overridable Property ToTicketTypeName As String
Public Overridable Property TargetIsSeated As Boolean
Public Overridable Property ToSeatId As Nullable(Of Integer)
Public Overridable Property AssignedSeatId As Nullable(Of Integer)
Public Overridable Property AssignedSeatLabel As String
Public Overridable Property TicketsLeft As Nullable(Of Integer)
Public Overridable Property SaleStatus As String
Public Overridable Property ExpectedPriceDifference As Decimal
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 SelfServiceTransferQuoteRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /selfService/transferTicket/quote HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<SelfServiceTransferQuoteRequest 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>
<ToSeatId>0</ToSeatId>
<ToSeriesTicketTypeId>0</ToSeriesTicketTypeId>
</SelfServiceTransferQuoteRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <SelfServiceTransferQuoteResult 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> <Direction>String</Direction> <ExpectedPriceDifference>0</ExpectedPriceDifference> <PriceDifference>0</PriceDifference> <SaleStatus>String</SaleStatus> <SourceEventId>0</SourceEventId> <SourceEventName>String</SourceEventName> <SourceEventTimeOfEvent>0001-01-01T00:00:00</SourceEventTimeOfEvent> <SourceTicketPrice>0</SourceTicketPrice> <TargetIsSeated>false</TargetIsSeated> <TargetTicketPrice>0</TargetTicketPrice> <TicketsLeft>0</TicketsLeft> <ToEventId>0</ToEventId> <ToEventName>String</ToEventName> <ToEventTimeOfEvent>0001-01-01T00:00:00</ToEventTimeOfEvent> <ToSeatId>0</ToSeatId> <ToTicketTypeName>String</ToTicketTypeName> </SelfServiceTransferQuoteResult>