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": "0266b055-4c29-44f1-a667-0035ca7e4ba6",
"WebProductName": "sample string 2",
"ParentWebProductId": "60791d77-04ea-49f4-b859-6ad8d810e722",
"Quantity": 4,
"Price": 5.0
},
{
"WebProductId": "0266b055-4c29-44f1-a667-0035ca7e4ba6",
"WebProductName": "sample string 2",
"ParentWebProductId": "60791d77-04ea-49f4-b859-6ad8d810e722",
"Quantity": 4,
"Price": 5.0
}
],
"accountId": "19ca8a02-aadf-4f11-8fcf-a39b9cc0dbd0"
}
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>60791d77-04ea-49f4-b859-6ad8d810e722</ParentWebProductId>
<Price>5</Price>
<Quantity>4</Quantity>
<WebProductId>0266b055-4c29-44f1-a667-0035ca7e4ba6</WebProductId>
<WebProductName>sample string 2</WebProductName>
</CartItem>
<CartItem>
<ParentWebProductId>60791d77-04ea-49f4-b859-6ad8d810e722</ParentWebProductId>
<Price>5</Price>
<Quantity>4</Quantity>
<WebProductId>0266b055-4c29-44f1-a667-0035ca7e4ba6</WebProductId>
<WebProductName>sample string 2</WebProductName>
</CartItem>
</CartItems>
<accountId>19ca8a02-aadf-4f11-8fcf-a39b9cc0dbd0</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.