Http Verb | PUT |
Resource URL | https://ts-stg-appgw.calacademy.org/TessituraService/Web/Cart/{sessionKey}/SubLineItems/{subLineItemId}/Discount |
URI Parameters
|
Request BodyRequest object type : ApplyDiscountRequest
|
{
"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 |