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
import java.math.*
import java.util.*
import net.servicestack.client.*


open class CalculateDiscountPricesRequest
{
    var discountCode:String? = null
    var fullPhoneNumber:String? = null
    var eventId:Int? = null
    var orderDetails:ArrayList<TicketDetails> = ArrayList<TicketDetails>()
}

open class TicketDetails
{
    var id:Int? = null
    var ticketId:Int? = null
    var eventSeriesTicketType:Int? = null
    var eventSeriesOwnerTicketType:Int? = null
    var ticketPrice:BigDecimal? = null
    var totalPrice:BigDecimal? = null
    var count:Int? = null
    var ticketColor:String? = null
    var showUsedTickets:Boolean? = null
    var ticketName:String? = null
    var ticketDisplayString:String? = null
    var ticketDetailsTransferredFrom:Int? = null
    var teamPassId:Int? = null
    var isSpecialTicket:Boolean? = null
    var specialTicketId:String? = null
    var justChangedBySQL:Boolean? = null
    var sqlJustChangedTimeStamp:Date? = null
    var currency:String? = null
    var discountCode:String? = null
    var totalDiscount:BigDecimal? = null
    var totalAmountBeforeDiscount:BigDecimal? = null
    var ticketPriceBeforeDiscount:BigDecimal? = null
}

open class CalculateDiscountPricesResult
{
    var orderDetails:ArrayList<TicketDetails> = ArrayList<TicketDetails>()
    var statusCode:Int? = null
    var message:String? = null
}

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

{
	discountCode: String,
	fullPhoneNumber: String,
	eventId: 0,
	orderDetails: 
	[
		{
			id: 0,
			ticketId: 0,
			eventSeriesTicketType: 0,
			eventSeriesOwnerTicketType: 0,
			ticketPrice: 0,
			totalPrice: 0,
			count: 0,
			ticketColor: String,
			showUsedTickets: False,
			ticketName: String,
			ticketDisplayString: String,
			ticketDetailsTransferredFrom: 0,
			teamPassId: 0,
			isSpecialTicket: False,
			specialTicketId: String,
			justChangedBySQL: False,
			sqlJustChangedTimeStamp: 0001-01-01,
			currency: String,
			discountCode: String,
			totalDiscount: 0,
			totalAmountBeforeDiscount: 0,
			ticketPriceBeforeDiscount: 0
		}
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	orderDetails: 
	[
		{
			id: 0,
			ticketId: 0,
			eventSeriesTicketType: 0,
			eventSeriesOwnerTicketType: 0,
			ticketPrice: 0,
			totalPrice: 0,
			count: 0,
			ticketColor: String,
			showUsedTickets: False,
			ticketName: String,
			ticketDisplayString: String,
			ticketDetailsTransferredFrom: 0,
			teamPassId: 0,
			isSpecialTicket: False,
			specialTicketId: String,
			justChangedBySQL: False,
			sqlJustChangedTimeStamp: 0001-01-01,
			currency: String,
			discountCode: String,
			totalDiscount: 0,
			totalAmountBeforeDiscount: 0,
			ticketPriceBeforeDiscount: 0
		}
	],
	statusCode: 0,
	message: String
}