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 .xml suffix or ?format=xml
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-autoupdates-live.smartnewapis.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<EventTicketSalesRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<EventId>0</EventId>
<EventOwnerId>0</EventOwnerId>
<EventOwnerKsiId>String</EventOwnerKsiId>
<KsiEventId>String</KsiEventId>
</EventTicketSalesRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <EventTicketSalesResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel"> <EventSales xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types"> <d2p1:EventTicketDetails> <d2p1:Count>0</d2p1:Count> <d2p1:Deild>String</d2p1:Deild> <d2p1:DetailedDescription>String</d2p1:DetailedDescription> <d2p1:DeviceId>String</d2p1:DeviceId> <d2p1:EndOfEvent>0001-01-01T00:00:00</d2p1:EndOfEvent> <d2p1:EndOfEventUTC>0001-01-01T00:00:00</d2p1:EndOfEventUTC> <d2p1:Event>String</d2p1:Event> <d2p1:EventId>0</d2p1:EventId> <d2p1:EventOwnerId>0</d2p1:EventOwnerId> <d2p1:EventOwnerKsiID>String</d2p1:EventOwnerKsiID> <d2p1:EventOwnerName>String</d2p1:EventOwnerName> <d2p1:EventSeriesId>0</d2p1:EventSeriesId> <d2p1:EventSeriesOwnerTicketType>0</d2p1:EventSeriesOwnerTicketType> <d2p1:EventSeriesTicketType>0</d2p1:EventSeriesTicketType> <d2p1:ExternalReference>String</d2p1:ExternalReference> <d2p1:HolderFullPhoneNumber>String</d2p1:HolderFullPhoneNumber> <d2p1:HolderId>String</d2p1:HolderId> <d2p1:HolderName>String</d2p1:HolderName> <d2p1:ImageUrl>String</d2p1:ImageUrl> <d2p1:IsSpecialTicket>false</d2p1:IsSpecialTicket> <d2p1:Location>String</d2p1:Location> <d2p1:PaymentId>String</d2p1:PaymentId> <d2p1:PaymentMethodId>String</d2p1:PaymentMethodId> <d2p1:PaymentPhoneNumber>String</d2p1:PaymentPhoneNumber> <d2p1:PaymentReference>String</d2p1:PaymentReference> <d2p1:PhoneVerificationNumber>String</d2p1:PhoneVerificationNumber> <d2p1:RowName>String</d2p1:RowName> <d2p1:SeatDisplayString>String</d2p1:SeatDisplayString> <d2p1:SeatName>String</d2p1:SeatName> <d2p1:SectionName>String</d2p1:SectionName> <d2p1:SpecialTicketId>String</d2p1:SpecialTicketId> <d2p1:TeamPassId>0</d2p1:TeamPassId> <d2p1:TicketHasExpired>false</d2p1:TicketHasExpired> <d2p1:TicketId>0</d2p1:TicketId> <d2p1:TicketName>String</d2p1:TicketName> <d2p1:TicketPrice>0</d2p1:TicketPrice> <d2p1:TicketStatus>String</d2p1:TicketStatus> <d2p1:TicketTeamPassId>0</d2p1:TicketTeamPassId> <d2p1:TicketTokenId>String</d2p1:TicketTokenId> <d2p1:TimeOfEvent>0001-01-01T00:00:00</d2p1:TimeOfEvent> <d2p1:TimeOfEventUTC>0001-01-01T00:00:00</d2p1:TimeOfEventUTC> <d2p1:TimestampActivated>0001-01-01T00:00:00</d2p1:TimestampActivated> <d2p1:TimestampBought>0001-01-01T00:00:00</d2p1:TimestampBought> <d2p1:TotalPrice>0</d2p1:TotalPrice> <d2p1:ksiCompetitionId>String</d2p1:ksiCompetitionId> </d2p1:EventTicketDetails> </EventSales> <Message>String</Message> <StatusCode>0</StatusCode> </EventTicketSalesResult>