TicketUserServices

<back to all web services

CalculateDiscountPricesRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequires the permission:ReadData
The following routes are available for this service:
GET POST/ticketOrder/CalculatePrices

export class TicketDetails
{
    public id?: number;
    public ticketId?: number;
    public eventSeriesTicketType?: number;
    public eventSeriesOwnerTicketType?: number;
    public ticketPrice?: number;
    public totalPrice?: number;
    public count?: number;
    public ticketColor?: string;
    public showUsedTickets?: boolean;
    public ticketName?: string;
    public ticketDisplayString?: string;
    public ticketDetailsTransferredFrom?: number;
    public teamPassId?: number;
    public isSpecialTicket?: boolean;
    public specialTicketId?: string;
    public justChangedBySQL?: boolean;
    public sqlJustChangedTimeStamp?: string;
    public currency?: string;
    public discountCode?: string;
    public totalDiscount?: number;
    public totalAmountBeforeDiscount?: number;
    public ticketPriceBeforeDiscount?: number;

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

export class CalculateDiscountPricesRequest
{
    public discountCode?: string;
    public fullPhoneNumber?: string;
    public eventId?: number;
    public orderDetails?: TicketDetails[];

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

export class CalculateDiscountPricesResult
{
    public orderDetails?: TicketDetails[];
    public statusCode?: number;
    public message?: string;

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

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

<CalculateDiscountPricesRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <DiscountCode>String</DiscountCode>
  <EventId>0</EventId>
  <FullPhoneNumber>String</FullPhoneNumber>
  <OrderDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types">
    <d2p1:TicketDetails>
      <d2p1:Count>0</d2p1:Count>
      <d2p1:Currency>String</d2p1:Currency>
      <d2p1:DiscountCode>String</d2p1:DiscountCode>
      <d2p1:EventSeriesOwnerTicketType>0</d2p1:EventSeriesOwnerTicketType>
      <d2p1:EventSeriesTicketType>0</d2p1:EventSeriesTicketType>
      <d2p1:ID>0</d2p1:ID>
      <d2p1:IsSpecialTicket>false</d2p1:IsSpecialTicket>
      <d2p1:JustChangedBySQL>false</d2p1:JustChangedBySQL>
      <d2p1:SQLJustChangedTimeStamp>0001-01-01T00:00:00</d2p1:SQLJustChangedTimeStamp>
      <d2p1:ShowUsedTickets>false</d2p1:ShowUsedTickets>
      <d2p1:SpecialTicketId>String</d2p1:SpecialTicketId>
      <d2p1:TeamPassId>0</d2p1:TeamPassId>
      <d2p1:TicketColor>String</d2p1:TicketColor>
      <d2p1:TicketDetailsTransferredFrom>0</d2p1:TicketDetailsTransferredFrom>
      <d2p1:TicketDisplayString>String</d2p1:TicketDisplayString>
      <d2p1:TicketId>0</d2p1:TicketId>
      <d2p1:TicketName>String</d2p1:TicketName>
      <d2p1:TicketPrice>0</d2p1:TicketPrice>
      <d2p1:TicketPriceBeforeDiscount>0</d2p1:TicketPriceBeforeDiscount>
      <d2p1:TotalAmountBeforeDiscount>0</d2p1:TotalAmountBeforeDiscount>
      <d2p1:TotalDiscount>0</d2p1:TotalDiscount>
      <d2p1:TotalPrice>0</d2p1:TotalPrice>
    </d2p1:TicketDetails>
  </OrderDetails>
</CalculateDiscountPricesRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CalculateDiscountPricesResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Message>String</Message>
  <OrderDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types">
    <d2p1:TicketDetails>
      <d2p1:Count>0</d2p1:Count>
      <d2p1:Currency>String</d2p1:Currency>
      <d2p1:DiscountCode>String</d2p1:DiscountCode>
      <d2p1:EventSeriesOwnerTicketType>0</d2p1:EventSeriesOwnerTicketType>
      <d2p1:EventSeriesTicketType>0</d2p1:EventSeriesTicketType>
      <d2p1:ID>0</d2p1:ID>
      <d2p1:IsSpecialTicket>false</d2p1:IsSpecialTicket>
      <d2p1:JustChangedBySQL>false</d2p1:JustChangedBySQL>
      <d2p1:SQLJustChangedTimeStamp>0001-01-01T00:00:00</d2p1:SQLJustChangedTimeStamp>
      <d2p1:ShowUsedTickets>false</d2p1:ShowUsedTickets>
      <d2p1:SpecialTicketId>String</d2p1:SpecialTicketId>
      <d2p1:TeamPassId>0</d2p1:TeamPassId>
      <d2p1:TicketColor>String</d2p1:TicketColor>
      <d2p1:TicketDetailsTransferredFrom>0</d2p1:TicketDetailsTransferredFrom>
      <d2p1:TicketDisplayString>String</d2p1:TicketDisplayString>
      <d2p1:TicketId>0</d2p1:TicketId>
      <d2p1:TicketName>String</d2p1:TicketName>
      <d2p1:TicketPrice>0</d2p1:TicketPrice>
      <d2p1:TicketPriceBeforeDiscount>0</d2p1:TicketPriceBeforeDiscount>
      <d2p1:TotalAmountBeforeDiscount>0</d2p1:TotalAmountBeforeDiscount>
      <d2p1:TotalDiscount>0</d2p1:TotalDiscount>
      <d2p1:TotalPrice>0</d2p1:TotalPrice>
    </d2p1:TicketDetails>
  </OrderDetails>
  <StatusCode>0</StatusCode>
</CalculateDiscountPricesResult>