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": "bc7b9836-683b-4296-a7b9-0efb97b12c5a",
"WebProductName": "sample string 2",
"ParentWebProductId": "94c0859a-c2cd-4b33-984f-5b6b181cce10",
"Quantity": 4,
"Price": 5.0
},
{
"WebProductId": "bc7b9836-683b-4296-a7b9-0efb97b12c5a",
"WebProductName": "sample string 2",
"ParentWebProductId": "94c0859a-c2cd-4b33-984f-5b6b181cce10",
"Quantity": 4,
"Price": 5.0
}
],
"accountId": "6d97b1a0-cdd3-46b1-96d0-946715b3e9c6"
}
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>94c0859a-c2cd-4b33-984f-5b6b181cce10</ParentWebProductId>
<Price>5</Price>
<Quantity>4</Quantity>
<WebProductId>bc7b9836-683b-4296-a7b9-0efb97b12c5a</WebProductId>
<WebProductName>sample string 2</WebProductName>
</CartItem>
<CartItem>
<ParentWebProductId>94c0859a-c2cd-4b33-984f-5b6b181cce10</ParentWebProductId>
<Price>5</Price>
<Quantity>4</Quantity>
<WebProductId>bc7b9836-683b-4296-a7b9-0efb97b12c5a</WebProductId>
<WebProductName>sample string 2</WebProductName>
</CartItem>
</CartItems>
<accountId>6d97b1a0-cdd3-46b1-96d0-946715b3e9c6</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.