Requires any of the roles: | Admin, TeamAdmin, MobileApp | Requires the permission: | ReadData |
GET POST | /ticketSplit/{TicketTokenId} |
---|
export class SplitTicketRequest
{
public ticketId?: number;
public ticketTokenId?: string;
public constructor(init?: Partial<SplitTicketRequest>) { (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 SplitTicketResponse
{
public statusCode?: number;
public success?: boolean;
public message?: string;
public result?: Ticket[];
public constructor(init?: Partial<SplitTicketResponse>) { (Object as any).assign(this, init); }
}
TypeScript SplitTicketRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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: text/csv
Content-Type: text/csv
Content-Length: length
{"ticketId":0,"ticketTokenId":"String"}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"statusCode":0,"success":false,"message":"String","result":[{"id":0,"userId":0,"userAuthId":0,"eventId":0,"timestampBought":"0001-01-01T00:00:00.0000000","timestampActivated":"0001-01-01T00:00:00.0000000","timeStampOrdered":"0001-01-01T00:00:00.0000000","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-01T00:00:00.0000000","lastTicketStatus":"String","scanCode":"String","scanCodeType":"String","scanCodeNotActive":false,"multipleScanCodes":false,"currency":"String","ticketHasExpired":false}]}