TicketUserServices

<back to all web services

OwnerSeatingSectionsSearchRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequired permission:Tickets.Add
The following routes are available for this service:
POST/ownerSeatingSections/SearchSearch for event ticket prices
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 EventSeriesOwnerSeatingSection:
    id: Optional[int] = None
    name: Optional[str] = None
    series_id: Optional[int] = None
    owner_id: Optional[int] = None
    location_id: Optional[int] = None
    is_active: Optional[bool] = None
    max_tickets: Optional[int] = None
    timestamp_created: Optional[datetime.datetime] = None
    has_rows: Optional[bool] = None
    has_seats: Optional[bool] = None
    rows_are_alphabetical: Optional[bool] = None
    seats_are_alphabetical: Optional[bool] = None
    seat_start: Optional[str] = None
    row_start: Optional[str] = None
    seat_skips: Optional[int] = None
    row_skips: Optional[int] = None


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


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class OwnerSeatingSectionsSearchRequest:
    owner_id: Optional[int] = None

Python OwnerSeatingSectionsSearchRequest DTOs

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

HTTP + JSV

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

POST /ownerSeatingSections/Search HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	ownerId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	seatingSection: 
	{
		id: 0,
		name: String,
		seriesId: 0,
		ownerId: 0,
		locationId: 0,
		isActive: False,
		maxTickets: 0,
		timestampCreated: 0001-01-01,
		hasRows: False,
		hasSeats: False,
		rowsAreAlphabetical: False,
		seatsAreAlphabetical: False,
		seatStart: String,
		rowStart: String,
		seatSkips: 0,
		rowSkips: 0
	},
	statusCode: 0,
	message: String
}