POST api/GetAnonymousSession

Returns a session key for use with anonymous actions such as adding items to a cart.

Request Information

URI Parameters

None.

Body Parameters

GetAnonymousSessionRequest

None.

Request Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<GetAnonymousSessionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Account" />

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 'GetAnonymousSessionRequest'.

Response Information

Resource Description

LoginResult object

ApiSuccessOfGetAnonymousSessionResult
NameDescriptionTypeAdditional information
Success

boolean
Data

GetAnonymousSessionResult

Response Formats

application/json

Sample:
{
  "Success": true,
  "Data": {
    "SessionKey": "u7ElTDDb/d4jI/4AGrffSFgeIV6z2GZWYzv2I0w5TzSeSUpOtctiFKzAm+8L5sqZxYwh4y0phZxjQZp0f1OTDzDq9Xms+89EYh0vbbnyP4I="
  }
}

text/json

Sample:
{
  "Success": true,
  "Data": {
    "SessionKey": "p3glfkm4rXj9IQtHbTDLpc/31AaZvlz/ojsEcaMsBkZBYo7Fk1wNhg7/ikFBZyXifavEuV+S1R+t8KlIF5kZ/K1E1mYmrkuN9eu63C/FI0A="
  }
}

application/xml, text/xml

Sample:
<ApiSuccessOfGetAnonymousSessionResultgLC8bFpX 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.Account">
    <d2p1:SessionKey>sample string 1</d2p1:SessionKey>
  </Data>
</ApiSuccessOfGetAnonymousSessionResultgLC8bFpX>