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
GetAnonymousSessionRequestNone.
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:
Response Information
Resource Description
LoginResult object
ApiSuccessOfGetAnonymousSessionResultName | Description | Type | Additional information |
---|---|---|---|
Success | boolean | ||
Data | GetAnonymousSessionResult |
Response Formats
application/json
Sample:
{ "Success": true, "Data": { "SessionKey": "jLxG8MHtRbzKEh8F13x7Q7dAaETACkFOyDHIsKanBE/4IBPdXk26i9/Sps5GQV4n203NQf0q2jHQx9IXrsyFgUeUNh45x2UMju++7AaATu0=" } }
text/json
Sample:
{ "Success": true, "Data": { "SessionKey": "mMWJNxIddz+JSOMv1CPXO77ShcDOy+4Eo5FLZBdAHdusp0vgLBCG7B1Sf/2zDI7+jhRRZRCfvvb3+nsY4+3stM7pw5FtzQAHA3LytmsQy1s=" } }
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>