GET api/Cart?imisid={imisid}&sessionid={sessionid}

Gets the cart info for the user. Blank iMIS ID means anonymous, but you must have Session ID to get cart data. Blank Session ID will work, but you must have the iMIS ID.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
imisid

iMIS ID of the user (from cookie)

string

Default value is

sessionid

iMIS Cart SessionID (from cookie)

string

Default value is

Body Parameters

None.

Response Information

Resource Description

Returns Cart object with 200. Returns 404 if data not found. Returns 500 on error.

Cart
NameDescriptionTypeAdditional information
CartCount

Number of items in a customer cart

integer

None.

IMISID

IMIS ID (Anonymous = 259322)

string

None.

SessionID

Session ID

string

None.

CartItems

List of items currently in the Cart

Collection of CartItem

None.

Response Formats

application/json, text/json

Sample:
{
  "CartCount": 1,
  "IMISID": "sample string 2",
  "SessionID": "sample string 3",
  "CartItems": [
    {
      "SEQN": 1,
      "ProductCode": "sample string 2",
      "ProductTitle": "sample string 3",
      "ProductType": "sample string 4",
      "Quantity": 5.1,
      "DateAdded": "2017-09-24T06:07:48.1381203-04:00"
    },
    {
      "SEQN": 1,
      "ProductCode": "sample string 2",
      "ProductTitle": "sample string 3",
      "ProductType": "sample string 4",
      "Quantity": 5.1,
      "DateAdded": "2017-09-24T06:07:48.1381203-04:00"
    }
  ]
}