TicketUserServices

<back to all web services

TransferTicketToEventRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequires the permission:ReadData
The following routes are available for this service:
POST/TransferTicketToEventTransfer a ticket to a different event with automatic price reconciliation
import java.math.*
import java.util.*
import net.servicestack.client.*


open class TransferTicketToEventRequest
{
    var ticketTokenId:String? = null
    var toEventId:Int? = null
    var userId:Int? = null
    var reason:String? = null
    var idempotencyKey:String? = null
    var expectedPriceDifference:BigDecimal? = null
    var toOwnerTicketTypeId:Int? = null
    var toSeriesTicketTypeId:Int? = null
    var toSeatId:Int? = null
}

open class TransferTicketToEventResult
{
    var ok:Boolean? = null
    var statusCode:Int? = null
    var code:String? = null
    var message:String? = null
    var transferLogId:Int? = null
    var newTicketTokenId:String? = null
    var direction:String? = null
    var priceDifference:BigDecimal? = null
    var originalTicketPrice:BigDecimal? = null
    var targetTicketPrice:BigDecimal? = null
    var sourceEventPaidOut:Boolean? = null
    var outstandingCostHandledByServer:Boolean? = null
    var refund:TransferRefundInstruction? = null
    var topup:TransferTopupInstruction? = null
    var quote:TransferTicketQuoteResult? = null
}

open class TransferRefundInstruction
{
    var amountIsk:BigDecimal? = null
    var paymentReference:String? = null
    var instruction:String? = null
}

open class TransferTopupInstruction
{
    var amountIsk:BigDecimal? = null
    var paymentLinkUrl:String? = null
    var sessionToken:String? = null
    var expiresAt:Date? = null
}

open class TransferTicketQuoteResult
{
    var ok:Boolean? = null
    var statusCode:Int? = null
    var code:String? = null
    var message:String? = null
    var from:TransferQuoteEventSide? = null
    var to:TransferQuoteEventSide? = null
    var priceDifference:BigDecimal? = null
    var direction:String? = null
    var refundableViaBorgun:Boolean? = null
    var afterPayout:Boolean? = null
}

open class TransferQuoteEventSide
{
    var eventId:Int? = null
    var eventName:String? = null
    var timeOfEvent:Date? = null
    var ticketPrice:BigDecimal? = null
    var paymentMethodId:String? = null
    var paymentReference:String? = null
    var availableSeats:Int? = null
}

Kotlin TransferTicketToEventRequest 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 /TransferTicketToEvent HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<TransferTicketToEventRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <ExpectedPriceDifference>0</ExpectedPriceDifference>
  <IdempotencyKey>String</IdempotencyKey>
  <Reason>String</Reason>
  <TicketTokenId>String</TicketTokenId>
  <ToEventId>0</ToEventId>
  <ToOwnerTicketTypeId>0</ToOwnerTicketTypeId>
  <ToSeatId>0</ToSeatId>
  <ToSeriesTicketTypeId>0</ToSeriesTicketTypeId>
  <UserId>0</UserId>
</TransferTicketToEventRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<TransferTicketToEventResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Code>String</Code>
  <Direction>String</Direction>
  <Message>String</Message>
  <NewTicketTokenId>String</NewTicketTokenId>
  <Ok>false</Ok>
  <OriginalTicketPrice>0</OriginalTicketPrice>
  <OutstandingCostHandledByServer>false</OutstandingCostHandledByServer>
  <PriceDifference>0</PriceDifference>
  <Quote>
    <AfterPayout>false</AfterPayout>
    <Code>String</Code>
    <Direction>String</Direction>
    <From>
      <AvailableSeats>0</AvailableSeats>
      <EventId>0</EventId>
      <EventName>String</EventName>
      <PaymentMethodId>String</PaymentMethodId>
      <PaymentReference>String</PaymentReference>
      <TicketPrice>0</TicketPrice>
      <TimeOfEvent>0001-01-01T00:00:00</TimeOfEvent>
    </From>
    <Message>String</Message>
    <Ok>false</Ok>
    <PriceDifference>0</PriceDifference>
    <RefundableViaBorgun>false</RefundableViaBorgun>
    <StatusCode>0</StatusCode>
    <To>
      <AvailableSeats>0</AvailableSeats>
      <EventId>0</EventId>
      <EventName>String</EventName>
      <PaymentMethodId>String</PaymentMethodId>
      <PaymentReference>String</PaymentReference>
      <TicketPrice>0</TicketPrice>
      <TimeOfEvent>0001-01-01T00:00:00</TimeOfEvent>
    </To>
  </Quote>
  <Refund>
    <AmountIsk>0</AmountIsk>
    <Instruction>String</Instruction>
    <PaymentReference>String</PaymentReference>
  </Refund>
  <SourceEventPaidOut>false</SourceEventPaidOut>
  <StatusCode>0</StatusCode>
  <TargetTicketPrice>0</TargetTicketPrice>
  <Topup>
    <AmountIsk>0</AmountIsk>
    <ExpiresAt>0001-01-01T00:00:00</ExpiresAt>
    <PaymentLinkUrl>String</PaymentLinkUrl>
    <SessionToken>String</SessionToken>
  </Topup>
  <TransferLogId>0</TransferLogId>
</TransferTicketToEventResult>