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": "399f8d3a-810d-46f2-8166-07e8de610e77"
}
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>399f8d3a-810d-46f2-8166-07e8de610e77</SessionGuid> </SessionModel>