GET api/ShoppingCart/GetNewSessionId?username={username}&password={password}
returns a new session guid which can be used to add items to cart etc.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| username |
The username of an existing user account |
string |
Required |
| password |
The password of an existing user account |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
SessionModel| Name | Description | Type | Additional information |
|---|---|---|---|
| SessionGuid |
The guid which is needed to add items to shopping cart etc. |
globally unique identifier |
None. |
Response Formats
application/json, text/json
Sample:
{
"SessionGuid": "17944e13-4e6f-47bc-bde7-b0da2f12676a"
}
application/xml, text/xml
Sample:
<SessionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BKPBooking.WebBookingApi.Models"> <SessionGuid>17944e13-4e6f-47bc-bde7-b0da2f12676a</SessionGuid> </SessionModel>