TicketUserServices

<back to all web services

TransferTicketQuoteRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequires the permission:ReadData
The following routes are available for this service:
POST/transferTicket/quoteRead-only price-diff lookup for a prospective ticket transfer

export class TransferQuoteEventSide
{
    public eventId?: number;
    public eventName?: string;
    public timeOfEvent?: string;
    public ticketPrice?: number;
    public paymentMethodId?: string;
    public paymentReference?: string;
    public availableSeats?: number;

    public constructor(init?: Partial<TransferQuoteEventSide>) { (Object as any).assign(this, init); }
}

export class TransferTicketQuoteResult
{
    public ok?: boolean;
    public statusCode?: number;
    public code?: string;
    public message?: string;
    public from?: TransferQuoteEventSide;
    public to?: TransferQuoteEventSide;
    public priceDifference?: number;
    public direction?: string;
    public refundableViaBorgun?: boolean;
    public afterPayout?: boolean;

    public constructor(init?: Partial<TransferTicketQuoteResult>) { (Object as any).assign(this, init); }
}

export class TransferTicketQuoteRequest
{
    public ticketTokenId?: string;
    public toEventId?: number;
    public userId?: number;
    public toOwnerTicketTypeId?: number;
    public toSeriesTicketTypeId?: number;

    public constructor(init?: Partial<TransferTicketQuoteRequest>) { (Object as any).assign(this, init); }
}

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

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

<TransferTicketQuoteResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <AfterPayout>false</AfterPayout>
  <Code>String</Code>
  <Direction>String</Direction>
  <From>
    <AvailableSeats>0</AvailableSeats>
    <EventId>0</EventId>
    <EventName>String</EventName>
    <PaymentMethodId>String</PaymentMethodId>
    <PaymentReference>String</PaymentReference>
    <TicketPrice>0</TicketPrice>
    <TimeOfEvent>0001-01-01T00:00:00</TimeOfEvent>
  </From>
  <Message>String</Message>
  <Ok>false</Ok>
  <PriceDifference>0</PriceDifference>
  <RefundableViaBorgun>false</RefundableViaBorgun>
  <StatusCode>0</StatusCode>
  <To>
    <AvailableSeats>0</AvailableSeats>
    <EventId>0</EventId>
    <EventName>String</EventName>
    <PaymentMethodId>String</PaymentMethodId>
    <PaymentReference>String</PaymentReference>
    <TicketPrice>0</TicketPrice>
    <TimeOfEvent>0001-01-01T00:00:00</TimeOfEvent>
  </To>
</TransferTicketQuoteResult>