Cart Test
Web/Cart/{sessionKey}/SubLineItems/{subLineItemId}/Discount
Applies a discounted price to a sub line item



The status field in the response will return as S if the discount can be used or E with a description of the error if the discount cannot be used.
Http Verb PUT
Resource URL https://ts-stg-appgw.calacademy.org/TessituraService/Web/Cart/{sessionKey}/SubLineItems/{subLineItemId}/Discount

URI Parameters

Parameter Name Data Type Required Notes
sessionKey string Y
subLineItemId integer Y The Id of the sub lineitem to apply the discount to. Must be a valid sub lineitem in the cart.

Request Body

Request object type : ApplyDiscountRequest

Request object type ApplyDiscountRequest has the following properties.
Property Name Data Type Length Required Readonly Notes
DiscountTypeId integer Y The Id of the discount to apply.
FK: TR_DISCOUNT_TYPES.id   Resource: DiscountTypes
{
  "DiscountTypeId": 1
}
<ApplyDiscountRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <DiscountTypeId>1</DiscountTypeId>
</ApplyDiscountRequest>

Response object type : UpdatePriceResponse

Response object type UpdatePriceResponse has the following properties.
Property Name Data Type Length Required Readonly Notes
DueAmount decimal number The new price for the sub lineitem. Will be NULL if an error occurred.
Error string A description of why the price or discount could not be applied, if an error occurred. Will be present if Status is 'E'.
LineItemId integer
NonDiscountPrice decimal number The original price of the sub lineitem. Will be NULL if an error occurred.
PackageId integer
PerformanceId integer
PriceTypeId integer
SeatNumber integer
Status string Will be 'S' if the price or discount is applied, 'E' if it could not be.
SubLineItemId integer
ZoneId integer
{
  "LineItemId": 1,
  "SubLineItemId": 2,
  "PerformanceId": 3,
  "PackageId": 4,
  "ZoneId": 5,
  "SeatNumber": 6,
  "DueAmount": 1.0,
  "PriceTypeId": 7,
  "NonDiscountPrice": 1.0,
  "Status": "sample string 8",
  "Error": "sample string 9"
}
<UpdatePriceResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <DueAmount>1</DueAmount>
  <Error>sample string 9</Error>
  <LineItemId>1</LineItemId>
  <NonDiscountPrice>1</NonDiscountPrice>
  <PackageId>4</PackageId>
  <PerformanceId>3</PerformanceId>
  <PriceTypeId>7</PriceTypeId>
  <SeatNumber>6</SeatNumber>
  <Status>sample string 8</Status>
  <SubLineItemId>2</SubLineItemId>
  <ZoneId>5</ZoneId>
</UpdatePriceResponse>
Change Version Description Contract Old New
Parameter Changed 15.0.0 sessionKey has been marked as required. Required