TicketUserServices

<back to all web services

EventSeriesOwnerTicketTypeCreateRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequired permission:Tickets.Add
The following routes are available for this service:
POST/EventSeriesOwnerTicketType
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 EventSeriesOwnerTicketTypeCreateRequest
    {
        public virtual EventSeriesOwnerTicketType Item { get; set; }
    }

    public partial class EventSeriesOwnerTicketTypeResult
    {
        public virtual EventSeriesOwnerTicketType Item { get; set; }
        public virtual int StatusCode { get; set; }
        public virtual string Message { get; set; }
    }

}

namespace TicketUserServices.ServiceModel.Types
{
    public partial class EventSeriesOwnerTicketType
    {
        public virtual int ID { get; set; }
        public virtual string Name { get; set; }
        public virtual decimal DefaultPrice { get; set; }
        public virtual int? SeriesId { get; set; }
        public virtual int OwnerId { get; set; }
        public virtual int TicketTypeListOrder { get; set; }
        public virtual bool? IsActive { get; set; }
        public virtual int? MaxTickets { get; set; }
        public virtual string TicketColor { get; set; }
        public virtual bool? ShowUsedTickets { get; set; }
        public virtual bool? CanOnlyBeBoughtWithTeamPass { get; set; }
        public virtual bool? IsSpecialTicket { get; set; }
        public virtual string SpecialTicketId { get; set; }
        public virtual bool? OnlyForKsi { get; set; }
        public virtual DateTime? TimestampCreated { get; set; }
        public virtual DateTime? TimestampLastChanged { get; set; }
        public virtual bool? TicketsForSalePerEvent { get; set; }
        public virtual string ImageUrl { get; set; }
        public virtual bool? HolderInfoRequired { get; set; }
        public virtual int? EventSeriesOwnerSeatingSectionId { get; set; }
        public virtual bool? CanOnlyBeBought { get; set; }
        public virtual bool? CanNotBeBought { get; set; }
        public virtual bool? BlockTransfer { get; set; }
        public virtual int? MaxTicketsPerTransaction { get; set; }
        public virtual bool? ForceSingleTickets { get; set; }
        public virtual int? OnlyForEvent { get; set; }
        public virtual string Currency { get; set; }
    }

}

C# EventSeriesOwnerTicketTypeCreateRequest 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.

POST /EventSeriesOwnerTicketType HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<EventSeriesOwnerTicketTypeCreateRequest 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:BlockTransfer>false</d2p1:BlockTransfer>
    <d2p1:CanNotBeBought>false</d2p1:CanNotBeBought>
    <d2p1:CanOnlyBeBought>false</d2p1:CanOnlyBeBought>
    <d2p1:CanOnlyBeBoughtWithTeamPass>false</d2p1:CanOnlyBeBoughtWithTeamPass>
    <d2p1:Currency>String</d2p1:Currency>
    <d2p1:DefaultPrice>0</d2p1:DefaultPrice>
    <d2p1:EventSeriesOwnerSeatingSectionId>0</d2p1:EventSeriesOwnerSeatingSectionId>
    <d2p1:ForceSingleTickets>false</d2p1:ForceSingleTickets>
    <d2p1:HolderInfoRequired>false</d2p1:HolderInfoRequired>
    <d2p1:ID>0</d2p1:ID>
    <d2p1:ImageUrl>String</d2p1:ImageUrl>
    <d2p1:IsActive>false</d2p1:IsActive>
    <d2p1:IsSpecialTicket>false</d2p1:IsSpecialTicket>
    <d2p1:MaxTickets>0</d2p1:MaxTickets>
    <d2p1:MaxTicketsPerTransaction>0</d2p1:MaxTicketsPerTransaction>
    <d2p1:Name>String</d2p1:Name>
    <d2p1:OnlyForEvent>0</d2p1:OnlyForEvent>
    <d2p1:OnlyForKsi>false</d2p1:OnlyForKsi>
    <d2p1:OwnerId>0</d2p1:OwnerId>
    <d2p1:SeriesId>0</d2p1:SeriesId>
    <d2p1:ShowUsedTickets>false</d2p1:ShowUsedTickets>
    <d2p1:SpecialTicketId>String</d2p1:SpecialTicketId>
    <d2p1:TicketColor>String</d2p1:TicketColor>
    <d2p1:TicketTypeListOrder>0</d2p1:TicketTypeListOrder>
    <d2p1:TicketsForSalePerEvent>false</d2p1:TicketsForSalePerEvent>
    <d2p1:TimestampCreated>0001-01-01T00:00:00</d2p1:TimestampCreated>
    <d2p1:TimestampLastChanged>0001-01-01T00:00:00</d2p1:TimestampLastChanged>
  </Item>
</EventSeriesOwnerTicketTypeCreateRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<EventSeriesOwnerTicketTypeResult 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:BlockTransfer>false</d2p1:BlockTransfer>
    <d2p1:CanNotBeBought>false</d2p1:CanNotBeBought>
    <d2p1:CanOnlyBeBought>false</d2p1:CanOnlyBeBought>
    <d2p1:CanOnlyBeBoughtWithTeamPass>false</d2p1:CanOnlyBeBoughtWithTeamPass>
    <d2p1:Currency>String</d2p1:Currency>
    <d2p1:DefaultPrice>0</d2p1:DefaultPrice>
    <d2p1:EventSeriesOwnerSeatingSectionId>0</d2p1:EventSeriesOwnerSeatingSectionId>
    <d2p1:ForceSingleTickets>false</d2p1:ForceSingleTickets>
    <d2p1:HolderInfoRequired>false</d2p1:HolderInfoRequired>
    <d2p1:ID>0</d2p1:ID>
    <d2p1:ImageUrl>String</d2p1:ImageUrl>
    <d2p1:IsActive>false</d2p1:IsActive>
    <d2p1:IsSpecialTicket>false</d2p1:IsSpecialTicket>
    <d2p1:MaxTickets>0</d2p1:MaxTickets>
    <d2p1:MaxTicketsPerTransaction>0</d2p1:MaxTicketsPerTransaction>
    <d2p1:Name>String</d2p1:Name>
    <d2p1:OnlyForEvent>0</d2p1:OnlyForEvent>
    <d2p1:OnlyForKsi>false</d2p1:OnlyForKsi>
    <d2p1:OwnerId>0</d2p1:OwnerId>
    <d2p1:SeriesId>0</d2p1:SeriesId>
    <d2p1:ShowUsedTickets>false</d2p1:ShowUsedTickets>
    <d2p1:SpecialTicketId>String</d2p1:SpecialTicketId>
    <d2p1:TicketColor>String</d2p1:TicketColor>
    <d2p1:TicketTypeListOrder>0</d2p1:TicketTypeListOrder>
    <d2p1:TicketsForSalePerEvent>false</d2p1:TicketsForSalePerEvent>
    <d2p1:TimestampCreated>0001-01-01T00:00:00</d2p1:TimestampCreated>
    <d2p1:TimestampLastChanged>0001-01-01T00:00:00</d2p1:TimestampLastChanged>
  </Item>
  <Message>String</Message>
  <StatusCode>0</StatusCode>
</EventSeriesOwnerTicketTypeResult>