TicketUserServices

<back to all web services

OwnerEventTicketPriceRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileApp, Admin, TeamAdmin, MobileAppRequired permissions:Tickets.Add, Tickets.Add
The following routes are available for this service:
GET PUT POST/ownerEventTicketPriceChange Tickets prices for EventId only when changing (PUT). isOwnerTicket is false if the Ticket is default ticket for series
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 OwnerEventTicketPriceRequest
    {
        public virtual int Id { get; set; }
        public virtual bool IsOwnerTicket { get; set; }
        public virtual int EventId { get; set; }
        public virtual int TicketId { get; set; }
        public virtual int EventOwnerId { get; set; }
        public virtual int SeriesId { get; set; }
        public virtual decimal Price { get; set; }
        public virtual bool Hide { get; set; }
        public virtual bool Active { get; set; }
        public virtual int? MaxTickets { get; set; }
    }

    public partial class OwnerEventTicketPriceResult
    {
        public virtual EventTicketPrice TicketPrice { get; set; }
        public virtual int StatusCode { get; set; }
        public virtual string Message { get; set; }
    }

}

namespace TicketUserServices.ServiceModel.Types
{
    public partial class EventTicketPrice
    {
        public virtual int ID { get; set; }
        public virtual string Name { get; set; }
        public virtual decimal Price { get; set; }
        public virtual int? TicketTypeId { get; set; }
        public virtual int? TicketOwnerTypeId { get; set; }
        public virtual int? EventId { get; set; }
        public virtual bool? Hidden { get; set; }
        public virtual bool? isActive { get; set; }
        public virtual int? MaxTickets { get; set; }
        public virtual string Currency { get; set; }
    }

}

C# OwnerEventTicketPriceRequest 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 /ownerEventTicketPrice HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<OwnerEventTicketPriceRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Active>false</Active>
  <EventId>0</EventId>
  <EventOwnerId>0</EventOwnerId>
  <Hide>false</Hide>
  <Id>0</Id>
  <IsOwnerTicket>false</IsOwnerTicket>
  <MaxTickets>0</MaxTickets>
  <Price>0</Price>
  <SeriesId>0</SeriesId>
  <TicketId>0</TicketId>
</OwnerEventTicketPriceRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<OwnerEventTicketPriceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Message>String</Message>
  <StatusCode>0</StatusCode>
  <TicketPrice xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types">
    <d2p1:Currency>String</d2p1:Currency>
    <d2p1:EventId>0</d2p1:EventId>
    <d2p1:Hidden>false</d2p1:Hidden>
    <d2p1:ID>0</d2p1:ID>
    <d2p1:MaxTickets>0</d2p1:MaxTickets>
    <d2p1:Name>String</d2p1:Name>
    <d2p1:Price>0</d2p1:Price>
    <d2p1:TicketOwnerTypeId>0</d2p1:TicketOwnerTypeId>
    <d2p1:TicketTypeId>0</d2p1:TicketTypeId>
    <d2p1:isActive>false</d2p1:isActive>
  </TicketPrice>
</OwnerEventTicketPriceResult>