POST api/GetVariables

Returns the shopping cart for a Tessitura session.

Request Information

URI Parameters

None.

Body Parameters

GetVariablesRequest
NameDescriptionTypeAdditional information
SessionKey

string

Required

Request Formats

application/json, text/json

Sample:
{
  "SessionKey": "sample string 1"
}

application/xml, text/xml

Sample:
<GetVariablesRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Session">
  <SessionKey>sample string 1</SessionKey>
</GetVariablesRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'GetVariablesRequest'.

Response Information

Resource Description

GetCartResult object

ApiSuccessOfGetVariablesResult
NameDescriptionTypeAdditional information
Success

boolean
Data

GetVariablesResult

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Data": {
    "Variables": {
      "sample string 1": "sample string 2",
      "sample string 3": "sample string 4"
    }
  }
}

application/xml, text/xml

Sample:
<ApiSuccessOfGetVariablesResult5WS87vwN xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Api">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Session">
    <d2p1:Variables xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>sample string 1</d3p1:Key>
        <d3p1:Value>sample string 2</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>sample string 3</d3p1:Key>
        <d3p1:Value>sample string 4</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Variables>
  </Data>
</ApiSuccessOfGetVariablesResult5WS87vwN>