| Requires any of the roles: | Admin, TeamAdmin, MobileApp, Admin, TeamAdmin, MobileApp | Required permissions: | Tickets.Add, Tickets.Add |
| GET PUT POST | /ownerTicketType | Add or change Tickets for Series | TicketId only when changing (PUT) |
|---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class OwnerTicketTypeRequest
{
var ticketId:Int? = null
var eventOwnerId:Int? = null
var seriesId:Int? = null
var name:String? = null
var defaultPrice:BigDecimal? = null
var listOrder:Int? = null
var active:Boolean? = null
var maxTickets:Int? = null
var ticketColor:String? = null
var showUsedTickets:Boolean? = null
var canOnlyBeBoughtWithTeamPass:Boolean? = null
var ticketsForSalePerEvent:Boolean? = null
var specialTicketId:String? = null
var imageUrl:String? = null
var holderInfoRequired:Boolean? = null
var eventSeriesOwnerSeatingSectionId:Int? = null
var canOnlyBeBought:Boolean? = null
var canNotBeBought:Boolean? = null
var blockTransfer:Boolean? = null
var maxTicketsPerTransaction:Int? = null
var forceSingleTickets:Boolean? = null
var onlyForEvent:Int? = null
}
open class OwnerTicketTypeResult
{
var ticketType:EventSeriesOwnerTicketType? = null
var statusCode:Int? = null
var message:String? = null
}
open class EventSeriesOwnerTicketType
{
var id:Int? = null
var name:String? = null
var defaultPrice:BigDecimal? = null
var seriesId:Int? = null
var ownerId:Int? = null
var ticketTypeListOrder:Int? = null
var isActive:Boolean? = null
var maxTickets:Int? = null
var ticketColor:String? = null
var showUsedTickets:Boolean? = null
var canOnlyBeBoughtWithTeamPass:Boolean? = null
var isSpecialTicket:Boolean? = null
var specialTicketId:String? = null
var onlyForKsi:Boolean? = null
var timestampCreated:Date? = null
var timestampLastChanged:Date? = null
var ticketsForSalePerEvent:Boolean? = null
var imageUrl:String? = null
var holderInfoRequired:Boolean? = null
var eventSeriesOwnerSeatingSectionId:Int? = null
var canOnlyBeBought:Boolean? = null
var canNotBeBought:Boolean? = null
var blockTransfer:Boolean? = null
var maxTicketsPerTransaction:Int? = null
var forceSingleTickets:Boolean? = null
var onlyForEvent:Int? = null
var currency:String? = null
}
Kotlin OwnerTicketTypeRequest 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 /ownerTicketType HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<OwnerTicketTypeRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Active>false</Active>
<BlockTransfer>false</BlockTransfer>
<CanNotBeBought>false</CanNotBeBought>
<CanOnlyBeBought>false</CanOnlyBeBought>
<CanOnlyBeBoughtWithTeamPass>false</CanOnlyBeBoughtWithTeamPass>
<DefaultPrice>0</DefaultPrice>
<EventOwnerId>0</EventOwnerId>
<EventSeriesOwnerSeatingSectionId>0</EventSeriesOwnerSeatingSectionId>
<ForceSingleTickets>false</ForceSingleTickets>
<HolderInfoRequired>false</HolderInfoRequired>
<ImageUrl>String</ImageUrl>
<ListOrder>0</ListOrder>
<MaxTickets>0</MaxTickets>
<MaxTicketsPerTransaction>0</MaxTicketsPerTransaction>
<Name>String</Name>
<OnlyForEvent>0</OnlyForEvent>
<SeriesId>0</SeriesId>
<ShowUsedTickets>false</ShowUsedTickets>
<SpecialTicketId>String</SpecialTicketId>
<TicketColor>String</TicketColor>
<TicketId>0</TicketId>
<TicketsForSalePerEvent>false</TicketsForSalePerEvent>
</OwnerTicketTypeRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<OwnerTicketTypeResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Message>String</Message>
<StatusCode>0</StatusCode>
<TicketType 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>
</TicketType>
</OwnerTicketTypeResult>