Requires any of the roles: | Admin, TeamAdmin, MobileApp | Requires the permission: | ReadData |
POST | /TransferTicket |
---|
export class TransferTicketResult
{
public statusCode?: number;
public message?: string;
public constructor(init?: Partial<TransferTicketResult>) { (Object as any).assign(this, init); }
}
export class Ticket
{
public id?: number;
public userId?: number;
public userAuthId?: number;
public eventId?: number;
public timestampBought?: string;
public timestampActivated?: string;
public timeStampOrdered?: string;
public deviceId?: string;
public phoneVerificationId?: number;
public paymentMethodId?: string;
public paymentReference?: string;
public ticketStatus?: string;
public phoneVerificationNumber?: string;
public ticketTokenId?: string;
public paymentPhoneNumber?: string;
public ticketTransferredFrom?: number;
public originalPhoneVerificationNumber?: string;
public teamPassId?: number;
public paymentId?: string;
public isFree?: boolean;
public freeTicketFromId?: string;
public freeTicketFromTypeId?: string;
public freeTicketCardTypeId?: string;
public freeTicketCardId?: number;
public totalPaidForTicket?: number;
public seatsReservationId?: string;
public timeStampLastStatusChange?: string;
public lastTicketStatus?: string;
public scanCode?: string;
public scanCodeType?: string;
public scanCodeNotActive?: boolean;
public multipleScanCodes?: boolean;
public currency?: string;
public ticketHasExpired?: boolean;
public constructor(init?: Partial<Ticket>) { (Object as any).assign(this, init); }
}
export class TicketDetails
{
public id?: number;
public ticketId?: number;
public eventSeriesTicketType?: number;
public eventSeriesOwnerTicketType?: number;
public ticketPrice?: number;
public totalPrice?: number;
public count?: number;
public ticketColor?: string;
public showUsedTickets?: boolean;
public ticketName?: string;
public ticketDisplayString?: string;
public ticketDetailsTransferredFrom?: number;
public teamPassId?: number;
public isSpecialTicket?: boolean;
public specialTicketId?: string;
public justChangedBySQL?: boolean;
public sqlJustChangedTimeStamp?: string;
public currency?: string;
public constructor(init?: Partial<TicketDetails>) { (Object as any).assign(this, init); }
}
export class TransferTicketRequest
{
public transferFromPhoneVerificationNumber?: string;
public transferFromDeviceId?: string;
public transferToPhoneVerificationNumber?: string;
public eventTicket?: Ticket;
public eventTicketDetails?: TicketDetails[];
public constructor(init?: Partial<TransferTicketRequest>) { (Object as any).assign(this, init); }
}
TypeScript TransferTicketRequest 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 /TransferTicket HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<TransferTicketRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<EventTicket xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types">
<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>
</EventTicket>
<EventTicketDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types">
<d2p1:TicketDetails>
<d2p1:Count>0</d2p1:Count>
<d2p1:Currency>String</d2p1:Currency>
<d2p1:EventSeriesOwnerTicketType>0</d2p1:EventSeriesOwnerTicketType>
<d2p1:EventSeriesTicketType>0</d2p1:EventSeriesTicketType>
<d2p1:ID>0</d2p1:ID>
<d2p1:IsSpecialTicket>false</d2p1:IsSpecialTicket>
<d2p1:JustChangedBySQL>false</d2p1:JustChangedBySQL>
<d2p1:SQLJustChangedTimeStamp>0001-01-01T00:00:00</d2p1:SQLJustChangedTimeStamp>
<d2p1:ShowUsedTickets>false</d2p1:ShowUsedTickets>
<d2p1:SpecialTicketId>String</d2p1:SpecialTicketId>
<d2p1:TeamPassId>0</d2p1:TeamPassId>
<d2p1:TicketColor>String</d2p1:TicketColor>
<d2p1:TicketDetailsTransferredFrom>0</d2p1:TicketDetailsTransferredFrom>
<d2p1:TicketDisplayString>String</d2p1:TicketDisplayString>
<d2p1:TicketId>0</d2p1:TicketId>
<d2p1:TicketName>String</d2p1:TicketName>
<d2p1:TicketPrice>0</d2p1:TicketPrice>
<d2p1:TotalPrice>0</d2p1:TotalPrice>
</d2p1:TicketDetails>
</EventTicketDetails>
<TransferFromDeviceId>String</TransferFromDeviceId>
<TransferFromPhoneVerificationNumber>String</TransferFromPhoneVerificationNumber>
<TransferToPhoneVerificationNumber>String</TransferToPhoneVerificationNumber>
</TransferTicketRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <TransferTicketResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel"> <Message>String</Message> <StatusCode>0</StatusCode> </TransferTicketResult>