TicketUserServices

<back to all web services

SelfServiceTransferQuoteRequest

Requires Authentication
The following routes are available for this service:
POST/selfService/transferTicket/quotePrice difference and eligibility for a prospective buyer-initiated exchange
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 SelfServiceTransferResultBase:
    ok: Optional[bool] = None
    status_code: Optional[int] = None
    code: Optional[str] = None
    message: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class SelfServiceTransferQuoteResult(SelfServiceTransferResultBase):
    direction: Optional[str] = None
    price_difference: Optional[Decimal] = None
    source_ticket_price: Optional[Decimal] = None
    target_ticket_price: Optional[Decimal] = None
    source_event_id: Optional[int] = None
    source_event_name: Optional[str] = None
    source_event_time_of_event: Optional[datetime.datetime] = None
    to_event_id: Optional[int] = None
    to_event_name: Optional[str] = None
    to_event_time_of_event: Optional[datetime.datetime] = None
    to_ticket_type_name: Optional[str] = None
    target_is_seated: Optional[bool] = None
    to_seat_id: Optional[int] = None
    assigned_seat_id: Optional[int] = None
    assigned_seat_label: Optional[str] = None
    tickets_left: Optional[int] = None
    sale_status: Optional[str] = None
    expected_price_difference: Optional[Decimal] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class SelfServiceTransferQuoteRequest:
    ticket_token_id: Optional[str] = None
    buyer_phone: Optional[str] = None
    to_event_id: Optional[int] = None
    to_owner_ticket_type_id: Optional[int] = None
    to_series_ticket_type_id: Optional[int] = None
    to_seat_id: Optional[int] = None

Python SelfServiceTransferQuoteRequest 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 /selfService/transferTicket/quote HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<SelfServiceTransferQuoteRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <BuyerPhone>String</BuyerPhone>
  <TicketTokenId>String</TicketTokenId>
  <ToEventId>0</ToEventId>
  <ToOwnerTicketTypeId>0</ToOwnerTicketTypeId>
  <ToSeatId>0</ToSeatId>
  <ToSeriesTicketTypeId>0</ToSeriesTicketTypeId>
</SelfServiceTransferQuoteRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<SelfServiceTransferQuoteResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Code>String</Code>
  <Message>String</Message>
  <Ok>false</Ok>
  <StatusCode>0</StatusCode>
  <AssignedSeatId>0</AssignedSeatId>
  <AssignedSeatLabel>String</AssignedSeatLabel>
  <Direction>String</Direction>
  <ExpectedPriceDifference>0</ExpectedPriceDifference>
  <PriceDifference>0</PriceDifference>
  <SaleStatus>String</SaleStatus>
  <SourceEventId>0</SourceEventId>
  <SourceEventName>String</SourceEventName>
  <SourceEventTimeOfEvent>0001-01-01T00:00:00</SourceEventTimeOfEvent>
  <SourceTicketPrice>0</SourceTicketPrice>
  <TargetIsSeated>false</TargetIsSeated>
  <TargetTicketPrice>0</TargetTicketPrice>
  <TicketsLeft>0</TicketsLeft>
  <ToEventId>0</ToEventId>
  <ToEventName>String</ToEventName>
  <ToEventTimeOfEvent>0001-01-01T00:00:00</ToEventTimeOfEvent>
  <ToSeatId>0</ToSeatId>
  <ToTicketTypeName>String</ToTicketTypeName>
</SelfServiceTransferQuoteResult>