TicketUserServices

<back to all web services

EventGetRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequires any of the permissions:ReadData, Tickets.Add
The following routes are available for this service:
GET/Event/{Id}
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using TicketUserServices.ServiceModel;
using TicketUserServices.ServiceModel.Types;

namespace TicketUserServices.ServiceModel
{
    public partial class EventGetRequest
    {
        public virtual int Id { get; set; }
    }

    public partial class EventResult
    {
        public virtual Event Item { get; set; }
        public virtual int StatusCode { get; set; }
        public virtual string Message { get; set; }
    }

}

namespace TicketUserServices.ServiceModel.Types
{
    public partial class Event
    {
        public virtual int ID { get; set; }
        public virtual string Name { get; set; }
        public virtual string Description { get; set; }
        public virtual string ExternalReference { get; set; }
        public virtual DateTime TimeOfEvent { get; set; }
        public virtual int? EventLocationId { get; set; }
        public virtual int? EventSeriesId { get; set; }
        public virtual int? EventOwnerId { get; set; }
        public virtual bool EventActive { get; set; }
        public virtual string DefaultValues { get; set; }
        public virtual string ExternalReferenceType { get; set; }
        public virtual bool? PostponedNoDate { get; set; }
        public virtual string AwayTeamExternalId { get; set; }
        public virtual string SportGenderId { get; set; }
        public virtual bool? SaleIsActive { get; set; }
        public virtual string SeatingImageUrl { get; set; }
        public virtual int? VenueId { get; set; }
        public virtual int? AwayTeamOwnerId { get; set; }
        public virtual string DetailedDescription { get; set; }
        public virtual string ImageUrl { get; set; }
        public virtual string DirectAccessCode { get; set; }
        public virtual string ImageUrl2 { get; set; }
        public virtual bool? HideEvent { get; set; }
        public virtual bool? OwnerCardsNotAllowed { get; set; }
        public virtual DateTime? EndOfEvent { get; set; }
        public virtual DateTime? EndOfEventUTC { get; set; }
        public virtual string TimeZone { get; set; }
        public virtual DateTime? TimeOfEventUTC { get; set; }
    }

}

C# EventGetRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /Event/{Id} HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<EventResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Item xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types">
    <d2p1:AwayTeamExternalId>String</d2p1:AwayTeamExternalId>
    <d2p1:AwayTeamOwnerId>0</d2p1:AwayTeamOwnerId>
    <d2p1:DefaultValues>String</d2p1:DefaultValues>
    <d2p1:Description>String</d2p1:Description>
    <d2p1:DetailedDescription>String</d2p1:DetailedDescription>
    <d2p1:DirectAccessCode>String</d2p1:DirectAccessCode>
    <d2p1:EndOfEvent>0001-01-01T00:00:00</d2p1:EndOfEvent>
    <d2p1:EndOfEventUTC>0001-01-01T00:00:00</d2p1:EndOfEventUTC>
    <d2p1:EventActive>false</d2p1:EventActive>
    <d2p1:EventLocationId>0</d2p1:EventLocationId>
    <d2p1:EventOwnerId>0</d2p1:EventOwnerId>
    <d2p1:EventSeriesId>0</d2p1:EventSeriesId>
    <d2p1:ExternalReference>String</d2p1:ExternalReference>
    <d2p1:ExternalReferenceType>String</d2p1:ExternalReferenceType>
    <d2p1:HideEvent>false</d2p1:HideEvent>
    <d2p1:ID>0</d2p1:ID>
    <d2p1:ImageUrl>String</d2p1:ImageUrl>
    <d2p1:ImageUrl2>String</d2p1:ImageUrl2>
    <d2p1:Name>String</d2p1:Name>
    <d2p1:OwnerCardsNotAllowed>false</d2p1:OwnerCardsNotAllowed>
    <d2p1:PostponedNoDate>false</d2p1:PostponedNoDate>
    <d2p1:SaleIsActive>false</d2p1:SaleIsActive>
    <d2p1:SeatingImageUrl>String</d2p1:SeatingImageUrl>
    <d2p1:SportGenderId>String</d2p1:SportGenderId>
    <d2p1:TimeOfEvent>0001-01-01T00:00:00</d2p1:TimeOfEvent>
    <d2p1:TimeOfEventUTC>0001-01-01T00:00:00</d2p1:TimeOfEventUTC>
    <d2p1:TimeZone>String</d2p1:TimeZone>
    <d2p1:VenueId>0</d2p1:VenueId>
  </Item>
  <Message>String</Message>
  <StatusCode>0</StatusCode>
</EventResult>