Cart Test
Web/Cart/{sessionKey}/Validate
Validates various aspects of the cart

Payment Plans, Fixed Seat Packages, Non-Fixed Seat (flex) packages and Super Packages can be validated by setting the appropriate boolean in the request.
Http Verb POST
Resource URL https://ts-stg-appgw.calacademy.org/TessituraService/Web/Cart/{sessionKey}/Validate

URI Parameters

Parameter Name Data Type Required Notes
sessionKey string Y

Request Body

Request object type : CartValidationRequest

Request object type CartValidationRequest has the following properties.
Property Name Data Type Length Required Readonly Notes
ValidateFSPackages boolean If set to true, validates that the performances in a fixed seat package have been added correctly and that the same number of seats exists for each performance and that all package minimums have been met. It should be used after all packages have been added and will return information regarding any errors.
ValidateNFSPackages boolean If set to true, validates that the performances in a non fixed seat (NFS) or flex package have been added correctly and that the performance minimums and maximums have been met for both the package and each component performance group. It should be used after all performances in an NFS or flex package have been added, and will return information regarding any errors.
ValidatePaymentPlan boolean If set to true, confirms that the payment plan applied to the current open order is complete (billing type specified, credit card info recorded) and that the total of all the payments equals the order total.
ValidateSuperPackages boolean If set to true, validates that all component sub packages in a super package have been added correctly. It should be used after all sub packages have been added and will return information regarding any errors.
{
  "ValidateSuperPackages": true,
  "ValidateFSPackages": true,
  "ValidateNFSPackages": true,
  "ValidatePaymentPlan": true
}
<CartValidationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <ValidateFSPackages>true</ValidateFSPackages>
  <ValidateNFSPackages>true</ValidateNFSPackages>
  <ValidatePaymentPlan>true</ValidatePaymentPlan>
  <ValidateSuperPackages>true</ValidateSuperPackages>
</CartValidationRequest>

Response object type : CartValidationResponse

Response object type CartValidationResponse has the following properties.
Property Name Data Type Length Required Readonly Notes
FSPackageErrors Collection of FSPackageError
NFSPackageErrors Collection of NFSPackageError
PaymentPlanError PaymentPlanError
SuperPackageErrors Collection of SuperPackageError
{
  "SuperPackageErrors": [
    {
      "SuperPackageLineItemId": 1,
      "Error": "sample string 2"
    },
    {
      "SuperPackageLineItemId": 1,
      "Error": "sample string 2"
    }
  ],
  "FSPackageErrors": [
    {
      "PackageId": 1,
      "LineItemId": 2,
      "Error": "sample string 3"
    },
    {
      "PackageId": 1,
      "LineItemId": 2,
      "Error": "sample string 3"
    }
  ],
  "NFSPackageErrors": [
    {
      "PackageId": 1,
      "LineItemId": 2,
      "PerformanceGroupId": 3,
      "Error": "sample string 4"
    },
    {
      "PackageId": 1,
      "LineItemId": 2,
      "PerformanceGroupId": 3,
      "Error": "sample string 4"
    }
  ],
  "PaymentPlanError": {
    "OrderId": 1,
    "Error": "sample string 2"
  }
}
<CartValidationResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <FSPackageErrors>
    <FSPackageError>
      <Error>sample string 3</Error>
      <LineItemId>2</LineItemId>
      <PackageId>1</PackageId>
    </FSPackageError>
    <FSPackageError>
      <Error>sample string 3</Error>
      <LineItemId>2</LineItemId>
      <PackageId>1</PackageId>
    </FSPackageError>
  </FSPackageErrors>
  <NFSPackageErrors>
    <NFSPackageError>
      <Error>sample string 4</Error>
      <LineItemId>2</LineItemId>
      <PackageId>1</PackageId>
      <PerformanceGroupId>3</PerformanceGroupId>
    </NFSPackageError>
    <NFSPackageError>
      <Error>sample string 4</Error>
      <LineItemId>2</LineItemId>
      <PackageId>1</PackageId>
      <PerformanceGroupId>3</PerformanceGroupId>
    </NFSPackageError>
  </NFSPackageErrors>
  <PaymentPlanError>
    <Error>sample string 2</Error>
    <OrderId>1</OrderId>
  </PaymentPlanError>
  <SuperPackageErrors>
    <SuperPackageError>
      <Error>sample string 2</Error>
      <SuperPackageLineItemId>1</SuperPackageLineItemId>
    </SuperPackageError>
    <SuperPackageError>
      <Error>sample string 2</Error>
      <SuperPackageLineItemId>1</SuperPackageLineItemId>
    </SuperPackageError>
  </SuperPackageErrors>
</CartValidationResponse>
Change Version Description Contract Old New
Parameter Changed 15.0.0 sessionKey has been marked as required. Required