| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Requires the permission: | ReadData |
| POST | /ticketTransfer/createPending |
|---|
export class TicketTransferBaseResult
{
public statusCode?: number;
public message?: string;
public errorCode?: string;
public constructor(init?: Partial<TicketTransferBaseResult>) { (Object as any).assign(this, init); }
}
export class TicketTransferCreatePendingResult extends TicketTransferBaseResult
{
public transferToken?: string;
public status?: string;
public toPhoneCanonical?: string;
public toPhoneDisplay?: string;
public toPhoneRaw?: string;
public expiresAt?: string;
public eventId?: number;
public eventName?: string;
public constructor(init?: Partial<TicketTransferCreatePendingResult>) { super(init); (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 discountCode?: string;
public totalDiscount?: number;
public totalAmountBeforeDiscount?: number;
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 discountCode?: string;
public totalDiscount?: number;
public totalAmountBeforeDiscount?: number;
public ticketPriceBeforeDiscount?: number;
public constructor(init?: Partial<TicketDetails>) { (Object as any).assign(this, init); }
}
export class TicketTransferCreatePendingRequest
{
public phoneVerificationNumber?: string;
public transferFromPhoneVerificationNumber?: string;
public transferToPhoneVerificationNumber?: string;
public eventTicket?: Ticket;
public eventTicketDetails?: TicketDetails[];
public toEmail?: string;
public toName?: string;
public idempotencyKey?: string;
public constructor(init?: Partial<TicketTransferCreatePendingRequest>) { (Object as any).assign(this, init); }
}
TypeScript TicketTransferCreatePendingRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /ticketTransfer/createPending HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
phoneVerificationNumber: String,
transferFromPhoneVerificationNumber: String,
transferToPhoneVerificationNumber: String,
eventTicket:
{
id: 0,
userId: 0,
userAuthId: 0,
eventId: 0,
timestampBought: 0001-01-01,
timestampActivated: 0001-01-01,
timeStampOrdered: 0001-01-01,
deviceId: String,
phoneVerificationId: 0,
paymentMethodId: String,
paymentReference: String,
ticketStatus: String,
phoneVerificationNumber: String,
ticketTokenId: String,
paymentPhoneNumber: String,
ticketTransferredFrom: 0,
originalPhoneVerificationNumber: String,
teamPassId: 0,
paymentId: String,
isFree: False,
freeTicketFromId: String,
freeTicketFromTypeId: String,
freeTicketCardTypeId: String,
freeTicketCardId: 0,
totalPaidForTicket: 0,
seatsReservationId: String,
timeStampLastStatusChange: 0001-01-01,
lastTicketStatus: String,
scanCode: String,
scanCodeType: String,
scanCodeNotActive: False,
multipleScanCodes: False,
currency: String,
ticketHasExpired: False,
discountCode: String,
totalDiscount: 0,
totalAmountBeforeDiscount: 0
},
eventTicketDetails:
[
{
id: 0,
ticketId: 0,
eventSeriesTicketType: 0,
eventSeriesOwnerTicketType: 0,
ticketPrice: 0,
totalPrice: 0,
count: 0,
ticketColor: String,
showUsedTickets: False,
ticketName: String,
ticketDisplayString: String,
ticketDetailsTransferredFrom: 0,
teamPassId: 0,
isSpecialTicket: False,
specialTicketId: String,
justChangedBySQL: False,
sqlJustChangedTimeStamp: 0001-01-01,
currency: String,
discountCode: String,
totalDiscount: 0,
totalAmountBeforeDiscount: 0,
ticketPriceBeforeDiscount: 0
}
],
toEmail: String,
toName: String,
idempotencyKey: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
transferToken: String,
status: String,
toPhoneCanonical: String,
toPhoneDisplay: String,
toPhoneRaw: String,
expiresAt: 0001-01-01,
eventId: 0,
eventName: String,
statusCode: 0,
message: String,
errorCode: String
}