POST cart/item/{cartCollectionKey}?cartId={cartId}

Add cart item to current cart or specified cartId

Request Information

URI Parameters

NameDescriptionTypeAdditional information
cartCollectionKey

Collection Key

string

Required

cartId

Optional cart id

integer

None.

Body Parameters

cart item

CartItemModel
NameDescriptionTypeAdditional information
Item

Required Item Identifier

string

Required

Quantity

Required Quantity

integer

Required

ExtendedData

Data defined by client application

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Item": "sample string 1",
  "Quantity": 2,
  "ExtendedData": "sample string 3"
}

application/xml, text/xml

Sample:
<CartItemModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Item>sample string 1</Item>
  <Quantity>2</Quantity>
  <ExtendedData>sample string 3</ExtendedData>
</CartItemModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int>1</int>