TicketUserServices

<back to all web services

SplitTicketRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequires the permission:ReadData
The following routes are available for this service:
GET POST/ticketSplit/{TicketTokenId}
import Foundation
import ServiceStack

public class SplitTicketRequest : Codable
{
    public var ticketId:Int?
    public var ticketTokenId:String?

    required public init(){}
}

public class SplitTicketResponse : Codable
{
    public var statusCode:Int?
    public var success:Bool?
    public var message:String?
    public var result:[Ticket] = []

    required public init(){}
}

public class Ticket : Codable
{
    public var id:Int?
    public var userId:Int?
    public var userAuthId:Int?
    public var eventId:Int?
    public var timestampBought:Date?
    public var timestampActivated:Date?
    public var timeStampOrdered:Date?
    public var deviceId:String?
    public var phoneVerificationId:Int?
    public var paymentMethodId:String?
    public var paymentReference:String?
    public var ticketStatus:String?
    public var phoneVerificationNumber:String?
    public var ticketTokenId:String?
    public var paymentPhoneNumber:String?
    public var ticketTransferredFrom:Int?
    public var originalPhoneVerificationNumber:String?
    public var teamPassId:Int?
    public var paymentId:String?
    public var isFree:Bool?
    public var freeTicketFromId:String?
    public var freeTicketFromTypeId:String?
    public var freeTicketCardTypeId:String?
    public var freeTicketCardId:Int?
    public var totalPaidForTicket:Double?
    public var seatsReservationId:String?
    public var timeStampLastStatusChange:Date?
    public var lastTicketStatus:String?
    public var scanCode:String?
    public var scanCodeType:String?
    public var scanCodeNotActive:Bool?
    public var multipleScanCodes:Bool?
    public var currency:String?
    public var ticketHasExpired:Bool?

    required public init(){}
}


Swift SplitTicketRequest 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 /ticketSplit/{TicketTokenId} HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<SplitTicketRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <TicketId>0</TicketId>
  <TicketTokenId>String</TicketTokenId>
</SplitTicketRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<SplitTicketResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Message>String</Message>
  <Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types">
    <d2p1:Ticket>
      <d2p1:Currency>String</d2p1:Currency>
      <d2p1:DeviceId>String</d2p1:DeviceId>
      <d2p1:EventId>0</d2p1:EventId>
      <d2p1:FreeTicketCardId>0</d2p1:FreeTicketCardId>
      <d2p1:FreeTicketCardTypeId>String</d2p1:FreeTicketCardTypeId>
      <d2p1:FreeTicketFromId>String</d2p1:FreeTicketFromId>
      <d2p1:FreeTicketFromTypeId>String</d2p1:FreeTicketFromTypeId>
      <d2p1:ID>0</d2p1:ID>
      <d2p1:IsFree>false</d2p1:IsFree>
      <d2p1:LastTicketStatus>String</d2p1:LastTicketStatus>
      <d2p1:MultipleScanCodes>false</d2p1:MultipleScanCodes>
      <d2p1:OriginalPhoneVerificationNumber>String</d2p1:OriginalPhoneVerificationNumber>
      <d2p1:PaymentId>String</d2p1:PaymentId>
      <d2p1:PaymentMethodId>String</d2p1:PaymentMethodId>
      <d2p1:PaymentPhoneNumber>String</d2p1:PaymentPhoneNumber>
      <d2p1:PaymentReference>String</d2p1:PaymentReference>
      <d2p1:PhoneVerificationId>0</d2p1:PhoneVerificationId>
      <d2p1:PhoneVerificationNumber>String</d2p1:PhoneVerificationNumber>
      <d2p1:ScanCode>String</d2p1:ScanCode>
      <d2p1:ScanCodeNotActive>false</d2p1:ScanCodeNotActive>
      <d2p1:ScanCodeType>String</d2p1:ScanCodeType>
      <d2p1:SeatsReservationId>String</d2p1:SeatsReservationId>
      <d2p1:TeamPassId>0</d2p1:TeamPassId>
      <d2p1:TicketHasExpired>false</d2p1:TicketHasExpired>
      <d2p1:TicketStatus>String</d2p1:TicketStatus>
      <d2p1:TicketTokenId>String</d2p1:TicketTokenId>
      <d2p1:TicketTransferredFrom>0</d2p1:TicketTransferredFrom>
      <d2p1:TimeStampLastStatusChange>0001-01-01T00:00:00</d2p1:TimeStampLastStatusChange>
      <d2p1:TimeStampOrdered>0001-01-01T00:00:00</d2p1:TimeStampOrdered>
      <d2p1:TimestampActivated>0001-01-01T00:00:00</d2p1:TimestampActivated>
      <d2p1:TimestampBought>0001-01-01T00:00:00</d2p1:TimestampBought>
      <d2p1:TotalPaidForTicket>0</d2p1:TotalPaidForTicket>
      <d2p1:UserAuthId>0</d2p1:UserAuthId>
      <d2p1:UserId>0</d2p1:UserId>
    </d2p1:Ticket>
  </Result>
  <StatusCode>0</StatusCode>
  <Success>false</Success>
</SplitTicketResponse>