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": "0a3fc74e-66d3-4e76-82bd-f8c29138b14a",
"WebProductName": "sample string 2",
"ParentWebProductId": "eddff388-52a5-4769-be39-8afbbbdda25c",
"Quantity": 4,
"Price": 5.0
},
{
"WebProductId": "0a3fc74e-66d3-4e76-82bd-f8c29138b14a",
"WebProductName": "sample string 2",
"ParentWebProductId": "eddff388-52a5-4769-be39-8afbbbdda25c",
"Quantity": 4,
"Price": 5.0
}
],
"accountId": "0ef81a20-c9c4-431e-88c7-10248e3fadde"
}
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>eddff388-52a5-4769-be39-8afbbbdda25c</ParentWebProductId>
<Price>5</Price>
<Quantity>4</Quantity>
<WebProductId>0a3fc74e-66d3-4e76-82bd-f8c29138b14a</WebProductId>
<WebProductName>sample string 2</WebProductName>
</CartItem>
<CartItem>
<ParentWebProductId>eddff388-52a5-4769-be39-8afbbbdda25c</ParentWebProductId>
<Price>5</Price>
<Quantity>4</Quantity>
<WebProductId>0a3fc74e-66d3-4e76-82bd-f8c29138b14a</WebProductId>
<WebProductName>sample string 2</WebProductName>
</CartItem>
</CartItems>
<accountId>0ef81a20-c9c4-431e-88c7-10248e3fadde</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.