POST api/shoppingcart/add/items?shoppingCartId={shoppingCartId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| shoppingCartId | globally unique identifier |
Required |
Body Parameters
CreateCartItems| Name | Description | Type | Additional information |
|---|---|---|---|
| CartItems | Collection of CartItem |
None. |
|
| accountId | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"CartItems": [
{
"WebProductId": "f968fe72-9d1e-4d3c-96b4-0bf3f549886d",
"WebProductName": "sample string 2",
"ParentWebProductId": "d4e63320-138a-4591-83d3-86e149ca7cd8",
"Quantity": 4,
"Price": 5.0
},
{
"WebProductId": "f968fe72-9d1e-4d3c-96b4-0bf3f549886d",
"WebProductName": "sample string 2",
"ParentWebProductId": "d4e63320-138a-4591-83d3-86e149ca7cd8",
"Quantity": 4,
"Price": 5.0
}
],
"accountId": "e110f4e5-8212-4642-9460-d28f1f719d2d"
}
application/xml, text/xml
Sample:
<CreateCartItems xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HRCI.Services.BL.Models">
<CartItems>
<CartItem>
<ParentWebProductId>d4e63320-138a-4591-83d3-86e149ca7cd8</ParentWebProductId>
<Price>5</Price>
<Quantity>4</Quantity>
<WebProductId>f968fe72-9d1e-4d3c-96b4-0bf3f549886d</WebProductId>
<WebProductName>sample string 2</WebProductName>
</CartItem>
<CartItem>
<ParentWebProductId>d4e63320-138a-4591-83d3-86e149ca7cd8</ParentWebProductId>
<Price>5</Price>
<Quantity>4</Quantity>
<WebProductId>f968fe72-9d1e-4d3c-96b4-0bf3f549886d</WebProductId>
<WebProductName>sample string 2</WebProductName>
</CartItem>
</CartItems>
<accountId>e110f4e5-8212-4642-9460-d28f1f719d2d</accountId>
</CreateCartItems>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.