| Requires any of the roles: | Admin, TeamAdmin | Requires the permission: | ReadData |
| POST | /transferTicket/targetTicketTypes | List all ticket types available on the target event with price diff vs source |
|---|
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 TransferTargetTicketTypeOption:
owner_ticket_type_id: Optional[int] = None
series_ticket_type_id: Optional[int] = None
name: Optional[str] = None
price: Optional[Decimal] = None
direction: Optional[str] = None
price_difference: Optional[Decimal] = None
name_matches_source: Optional[bool] = None
block_transfer: Optional[bool] = None
hidden: Optional[bool] = None
max_tickets: Optional[int] = None
tickets_sold: Optional[int] = None
tickets_left: Optional[int] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class TransferTargetTicketTypesResult:
ok: Optional[bool] = None
status_code: Optional[int] = None
code: Optional[str] = None
message: Optional[str] = None
source_ticket_price: Optional[Decimal] = None
source_ticket_type_name: Optional[str] = None
options: Optional[List[TransferTargetTicketTypeOption]] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class TransferTargetTicketTypesRequest:
ticket_token_id: Optional[str] = None
to_event_id: Optional[int] = None
section_id: Optional[int] = None
Python TransferTargetTicketTypesRequest 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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /transferTicket/targetTicketTypes HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/json
Content-Type: application/json
Content-Length: length
{"ticketTokenId":"String","toEventId":0,"sectionId":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ok":false,"statusCode":0,"code":"String","message":"String","sourceTicketPrice":0,"sourceTicketTypeName":"String","options":[{"ownerTicketTypeId":0,"seriesTicketTypeId":0,"name":"String","price":0,"direction":"String","priceDifference":0,"nameMatchesSource":false,"blockTransfer":false,"hidden":false,"maxTickets":0,"ticketsSold":0,"ticketsLeft":0}]}