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
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class EventTicketPrice:
    id: Optional[int] = None
    name: Optional[str] = None
    price: Optional[Decimal] = None
    ticket_type_id: Optional[int] = None
    ticket_owner_type_id: Optional[int] = None
    event_id: Optional[int] = None
    hidden: Optional[bool] = None
    is_active: Optional[bool] = None
    max_tickets: Optional[int] = None
    currency: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class OwnerEventTicketPriceResult:
    ticket_price: Optional[EventTicketPrice] = None
    status_code: Optional[int] = None
    message: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class OwnerEventTicketPriceRequest:
    id: Optional[int] = None
    is_owner_ticket: Optional[bool] = None
    event_id: Optional[int] = None
    ticket_id: Optional[int] = None
    event_owner_id: Optional[int] = None
    series_id: Optional[int] = None
    price: Optional[Decimal] = None
    hide: Optional[bool] = None
    active: Optional[bool] = None
    max_tickets: Optional[int] = None

Python OwnerEventTicketPriceRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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/json
Content-Type: application/json
Content-Length: length

{"id":0,"isOwnerTicket":false,"eventId":0,"ticketId":0,"eventOwnerId":0,"seriesId":0,"price":0,"hide":false,"active":false,"maxTickets":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ticketPrice":{"id":0,"name":"String","price":0,"ticketTypeId":0,"ticketOwnerTypeId":0,"eventId":0,"hidden":false,"isActive":false,"maxTickets":0,"currency":"String"},"statusCode":0,"message":"String"}