POST V2/ShoppingCart/AddToCart

Request Information

URI Parameters

None.

Body Parameters

CartItem
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Sku

string

None.

Attr1

integer

None.

Attr2

integer

None.

Attr3

integer

None.

MemberId

string

None.

LensMaterial

string

None.

LensColor

string

None.

Qty

integer

None.

IsDetailPage

boolean

None.

IsMake

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "3e6cea80-a21f-41b5-9916-9f8142ab9686",
  "Sku": "sample string 2",
  "Attr1": 3,
  "Attr2": 4,
  "Attr3": 5,
  "MemberId": "sample string 6",
  "LensMaterial": "sample string 7",
  "LensColor": "sample string 8",
  "Qty": 9,
  "IsDetailPage": true,
  "IsMake": true
}

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

Response Information

Resource Description

SystemResult
NameDescriptionTypeAdditional information
Succeeded

boolean

None.

Message

string

None.

ReturnValue

Object

None.

Code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Succeeded": true,
  "Message": "sample string 2",
  "ReturnValue": {},
  "Code": 4
}