| Requires any of the roles: | Admin, TeamAdmin, MobileApp |
| GET POST | /eventDetailsAndPrices/{Id} | ||
|---|---|---|---|
| GET POST | /eventDetailsAndPrices/Reference/{ReferenceId} |
export class EventDetails
{
public id?: number;
public name?: string;
public description?: string;
public externalReference?: string;
public timeOfEvent?: string;
public eventLocationId?: number;
public eventSeriesId?: number;
public eventOwnerId?: number;
public eventActive?: boolean;
public eventOwnerName?: string;
public externalOwnerId?: string;
public teamAwayId?: string;
public teamAwayName?: string;
public eventSeriesName?: string;
public eventLocationName?: string;
public latitude?: number;
public longitude?: number;
public defaultValues?: string;
public externalReferenceType?: string;
public eventSeriesActive?: boolean;
public allowedKsiCard?: string;
public seriesId?: string;
public seriesShowByDefault?: boolean;
public postponedNoDate?: boolean;
public awayTeamExternalId?: string;
public sportGenderId?: string;
public externalIdType?: string;
public seriesEventSaleSuspended?: boolean;
public seriesSaleSuspensionEventStartDate?: string;
public seriesSaleSuspensionEventEndDate?: string;
public saleIsActive?: boolean;
public hideEvent?: boolean;
public imageUrl2?: string;
public directAccessCode?: string;
public imageUrl?: string;
public detailedDescription?: string;
public ownerImageUrl?: string;
public ownerImageUrl2?: string;
public ownerCardsNotAllowed?: boolean;
public seatingImageUrl?: string;
public endOfEvent?: string;
public endOfEventUTC?: string;
public timeZone?: string;
public timeOfEventUTC?: string;
public activeOrphan?: boolean;
public constructor(init?: Partial<EventDetails>) { (Object as any).assign(this, init); }
}
export class EventTicketPriceInfo
{
public price?: number;
public ticketTypeId?: number;
public ticketOwnerTypeId?: number;
public name?: string;
public eventId?: number;
public hidden?: boolean;
public soldOut?: boolean;
public ticketsLeft?: number;
public isActive?: boolean;
public limitedTickets?: boolean;
public sortOrder?: number;
public specialTicketId?: string;
public imageUrl?: string;
public holderInfoRequired?: boolean;
public totalTickets?: number;
public canOnlyBeBought?: boolean;
public canNotBeBought?: boolean;
public canOnlyBeBoughtWithTeamPass?: boolean;
public blockTransfer?: boolean;
public maxTicketsPerTransaction?: number;
public currency?: string;
public ticketColor?: string;
public onlyForEvent?: number;
public constructor(init?: Partial<EventTicketPriceInfo>) { (Object as any).assign(this, init); }
}
export class EventDetailsAndPrices
{
public eventDetails?: EventDetails;
public prices?: EventTicketPriceInfo[];
public constructor(init?: Partial<EventDetailsAndPrices>) { (Object as any).assign(this, init); }
}
export class GetEventDetailsAndPrices
{
public version?: number;
public phoneVerificationNumber?: string;
public deviceId?: string;
public id?: number;
public referenceId?: string;
public returnSoldOutTickets?: boolean;
public directAccessCode?: string;
public dontReturnCards?: boolean;
public constructor(init?: Partial<GetEventDetailsAndPrices>) { (Object as any).assign(this, init); }
}
TypeScript GetEventDetailsAndPrices 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 /eventDetailsAndPrices/{Id} HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetEventDetailsAndPrices xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<DeviceId>String</DeviceId>
<DirectAccessCode>String</DirectAccessCode>
<DontReturnCards>false</DontReturnCards>
<Id>0</Id>
<PhoneVerificationNumber>String</PhoneVerificationNumber>
<ReferenceId>String</ReferenceId>
<ReturnSoldOutTickets>false</ReturnSoldOutTickets>
<Version>0</Version>
</GetEventDetailsAndPrices>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<EventDetailsAndPrices xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types">
<EventDetails>
<ActiveOrphan>false</ActiveOrphan>
<AllowedKsiCard>String</AllowedKsiCard>
<AwayTeamExternalId>String</AwayTeamExternalId>
<DefaultValues>String</DefaultValues>
<Description>String</Description>
<DetailedDescription>String</DetailedDescription>
<DirectAccessCode>String</DirectAccessCode>
<EndOfEvent>0001-01-01T00:00:00</EndOfEvent>
<EndOfEventUTC>0001-01-01T00:00:00</EndOfEventUTC>
<EventActive>false</EventActive>
<EventLocationId>0</EventLocationId>
<EventLocationName>String</EventLocationName>
<EventOwnerId>0</EventOwnerId>
<EventOwnerName>String</EventOwnerName>
<EventSeriesActive>false</EventSeriesActive>
<EventSeriesId>0</EventSeriesId>
<EventSeriesName>String</EventSeriesName>
<ExternalIdType>String</ExternalIdType>
<ExternalOwnerId>String</ExternalOwnerId>
<ExternalReference>String</ExternalReference>
<ExternalReferenceType>String</ExternalReferenceType>
<HideEvent>false</HideEvent>
<ID>0</ID>
<ImageUrl>String</ImageUrl>
<ImageUrl2>String</ImageUrl2>
<Latitude>0</Latitude>
<Longitude>0</Longitude>
<Name>String</Name>
<OwnerCardsNotAllowed>false</OwnerCardsNotAllowed>
<OwnerImageUrl>String</OwnerImageUrl>
<OwnerImageUrl2>String</OwnerImageUrl2>
<PostponedNoDate>false</PostponedNoDate>
<SaleIsActive>false</SaleIsActive>
<SeatingImageUrl>String</SeatingImageUrl>
<SeriesEventSaleSuspended>false</SeriesEventSaleSuspended>
<SeriesId>String</SeriesId>
<SeriesSaleSuspensionEventEndDate>0001-01-01T00:00:00</SeriesSaleSuspensionEventEndDate>
<SeriesSaleSuspensionEventStartDate>0001-01-01T00:00:00</SeriesSaleSuspensionEventStartDate>
<SeriesShowByDefault>false</SeriesShowByDefault>
<SportGenderId>String</SportGenderId>
<TeamAwayId>String</TeamAwayId>
<TeamAwayName>String</TeamAwayName>
<TimeOfEvent>0001-01-01T00:00:00</TimeOfEvent>
<TimeOfEventUTC>0001-01-01T00:00:00</TimeOfEventUTC>
<TimeZone>String</TimeZone>
</EventDetails>
<Prices>
<EventTicketPriceInfo>
<BlockTransfer>false</BlockTransfer>
<CanNotBeBought>false</CanNotBeBought>
<CanOnlyBeBought>false</CanOnlyBeBought>
<CanOnlyBeBoughtWithTeamPass>false</CanOnlyBeBoughtWithTeamPass>
<Currency>String</Currency>
<EventId>0</EventId>
<Hidden>false</Hidden>
<HolderInfoRequired>false</HolderInfoRequired>
<ImageUrl>String</ImageUrl>
<LimitedTickets>false</LimitedTickets>
<MaxTicketsPerTransaction>0</MaxTicketsPerTransaction>
<Name>String</Name>
<OnlyForEvent>0</OnlyForEvent>
<Price>0</Price>
<SoldOut>false</SoldOut>
<SortOrder>0</SortOrder>
<SpecialTicketId>String</SpecialTicketId>
<TicketColor>String</TicketColor>
<TicketOwnerTypeId>0</TicketOwnerTypeId>
<TicketTypeId>0</TicketTypeId>
<TicketsLeft>0</TicketsLeft>
<TotalTickets>0</TotalTickets>
<isActive>false</isActive>
</EventTicketPriceInfo>
</Prices>
</EventDetailsAndPrices>