| POST | /selfService/transferTicket/confirm | Execute a buyer-initiated ticket 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 SelfServiceTransferConfirmRequest
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)
Public Overridable Property IdempotencyKey As String
Public Overridable Property ExpectedPriceDifference As Decimal
End Class
Public Partial Class SelfServiceTransferConfirmResult
Inherits SelfServiceTransferResultBase
Public Overridable Property TransferLogId As Nullable(Of Integer)
Public Overridable Property NewTicketTokenId As String
Public Overridable Property Direction As String
Public Overridable Property PriceDifference As Nullable(Of Decimal)
Public Overridable Property OriginalTicketPrice As Nullable(Of Decimal)
Public Overridable Property TargetTicketPrice As Nullable(Of Decimal)
Public Overridable Property AssignedSeatId As Nullable(Of Integer)
Public Overridable Property AssignedSeatLabel As String
Public Overridable Property Topup As TransferTopupInstruction
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 TransferTopupInstruction
Public Overridable Property AmountIsk As Decimal
Public Overridable Property PaymentLinkUrl As String
Public Overridable Property SessionToken As String
Public Overridable Property ExpiresAt As Nullable(Of Date)
End Class
End Namespace
End Namespace
VB.NET SelfServiceTransferConfirmRequest 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/confirm HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<SelfServiceTransferConfirmRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<BuyerPhone>String</BuyerPhone>
<ExpectedPriceDifference>0</ExpectedPriceDifference>
<IdempotencyKey>String</IdempotencyKey>
<TicketTokenId>String</TicketTokenId>
<ToEventId>0</ToEventId>
<ToOwnerTicketTypeId>0</ToOwnerTicketTypeId>
<ToSeatId>0</ToSeatId>
<ToSeriesTicketTypeId>0</ToSeriesTicketTypeId>
</SelfServiceTransferConfirmRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<SelfServiceTransferConfirmResult 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>
<NewTicketTokenId>String</NewTicketTokenId>
<OriginalTicketPrice>0</OriginalTicketPrice>
<PriceDifference>0</PriceDifference>
<TargetTicketPrice>0</TargetTicketPrice>
<Topup>
<AmountIsk>0</AmountIsk>
<ExpiresAt>0001-01-01T00:00:00</ExpiresAt>
<PaymentLinkUrl>String</PaymentLinkUrl>
<SessionToken>String</SessionToken>
</Topup>
<TransferLogId>0</TransferLogId>
</SelfServiceTransferConfirmResult>