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": "f5a86234-0897-466e-a7ec-78a8befe241c",
"WebProductName": "sample string 2",
"ParentWebProductId": "e92d52e6-ca2f-473b-89d3-e00803648e70",
"Quantity": 4,
"Price": 5.0
},
{
"WebProductId": "f5a86234-0897-466e-a7ec-78a8befe241c",
"WebProductName": "sample string 2",
"ParentWebProductId": "e92d52e6-ca2f-473b-89d3-e00803648e70",
"Quantity": 4,
"Price": 5.0
}
],
"accountId": "ddb94600-8ea6-47f7-b973-0fcb47f49a4b"
}
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>e92d52e6-ca2f-473b-89d3-e00803648e70</ParentWebProductId>
<Price>5</Price>
<Quantity>4</Quantity>
<WebProductId>f5a86234-0897-466e-a7ec-78a8befe241c</WebProductId>
<WebProductName>sample string 2</WebProductName>
</CartItem>
<CartItem>
<ParentWebProductId>e92d52e6-ca2f-473b-89d3-e00803648e70</ParentWebProductId>
<Price>5</Price>
<Quantity>4</Quantity>
<WebProductId>f5a86234-0897-466e-a7ec-78a8befe241c</WebProductId>
<WebProductName>sample string 2</WebProductName>
</CartItem>
</CartItems>
<accountId>ddb94600-8ea6-47f7-b973-0fcb47f49a4b</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.