| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | Sales.Total |
| GET POST | /ticketSales | ||
|---|---|---|---|
| GET POST | /ticketSales/event/{EventId} | ||
| GET POST | /ticketSales/team/{EventOwnerId} | ||
| GET POST | /ticketSales/event/ksi/{KsiEventId} | ||
| GET POST | /ticketSales/team/ksi/{EventOwnerKsiId} |
export class EventTicketDetails
{
public ticketPrice?: number;
public totalPrice?: number;
public count?: number;
public timestampBought?: string;
public timestampActivated?: string;
public paymentMethodId?: string;
public ticketStatus?: string;
public deild?: string;
public location?: string;
public event?: string;
public timeOfEvent?: string;
public eventSeriesOwnerTicketType?: number;
public eventSeriesTicketType?: number;
public eventId?: number;
public externalReference?: string;
public eventOwnerId?: number;
public eventSeriesId?: number;
public ksiCompetitionId?: string;
public eventOwnerName?: string;
public eventOwnerKsiID?: string;
public teamPassId?: number;
public ticketName?: string;
public paymentReference?: string;
public paymentId?: string;
public ticketTeamPassId?: number;
public ticketId?: number;
public phoneVerificationNumber?: string;
public paymentPhoneNumber?: string;
public holderId?: string;
public holderName?: string;
public holderFullPhoneNumber?: string;
public seatName?: string;
public rowName?: string;
public sectionName?: string;
public seatDisplayString?: string;
public isSpecialTicket?: boolean;
public specialTicketId?: string;
public imageUrl?: string;
public detailedDescription?: string;
public ticketTokenId?: string;
public timeOfEventUTC?: string;
public endOfEvent?: string;
public endOfEventUTC?: string;
public deviceId?: string;
public ticketHasExpired?: boolean;
public constructor(init?: Partial<EventTicketDetails>) { (Object as any).assign(this, init); }
}
export class EventTicketSalesResult
{
public eventSales?: EventTicketDetails[];
public statusCode?: number;
public message?: string;
public constructor(init?: Partial<EventTicketSalesResult>) { (Object as any).assign(this, init); }
}
export class EventTicketSalesRequest
{
public eventId?: number;
public ksiEventId?: string;
public eventOwnerId?: number;
public eventOwnerKsiId?: string;
public constructor(init?: Partial<EventTicketSalesRequest>) { (Object as any).assign(this, init); }
}
TypeScript EventTicketSalesRequest 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 /ticketSales HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
eventId: 0,
ksiEventId: String,
eventOwnerId: 0,
eventOwnerKsiId: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
eventSales:
[
{
ticketPrice: 0,
totalPrice: 0,
count: 0,
timestampBought: 0001-01-01,
timestampActivated: 0001-01-01,
paymentMethodId: String,
ticketStatus: String,
deild: String,
location: String,
event: String,
timeOfEvent: 0001-01-01,
eventSeriesOwnerTicketType: 0,
eventSeriesTicketType: 0,
eventId: 0,
externalReference: String,
eventOwnerId: 0,
eventSeriesId: 0,
ksiCompetitionId: String,
eventOwnerName: String,
eventOwnerKsiID: String,
teamPassId: 0,
ticketName: String,
paymentReference: String,
paymentId: String,
ticketTeamPassId: 0,
ticketId: 0,
phoneVerificationNumber: String,
paymentPhoneNumber: String,
holderId: String,
holderName: String,
holderFullPhoneNumber: String,
seatName: String,
rowName: String,
sectionName: String,
seatDisplayString: String,
isSpecialTicket: False,
specialTicketId: String,
imageUrl: String,
detailedDescription: String,
ticketTokenId: String,
timeOfEventUTC: 0001-01-01,
endOfEvent: 0001-01-01,
endOfEventUTC: 0001-01-01,
deviceId: String,
ticketHasExpired: False
}
],
statusCode: 0,
message: String
}