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": "1f92ff1f-4215-40f7-8691-c0034804391b",
"WebProductName": "sample string 2",
"ParentWebProductId": "d8cf230b-4984-4df6-83d3-8734a66224e0",
"Quantity": 4,
"Price": 5.0
},
{
"WebProductId": "1f92ff1f-4215-40f7-8691-c0034804391b",
"WebProductName": "sample string 2",
"ParentWebProductId": "d8cf230b-4984-4df6-83d3-8734a66224e0",
"Quantity": 4,
"Price": 5.0
}
],
"accountId": "f90bb41c-ae8a-4895-8ebb-4001c8f7d3c9"
}
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>d8cf230b-4984-4df6-83d3-8734a66224e0</ParentWebProductId>
<Price>5</Price>
<Quantity>4</Quantity>
<WebProductId>1f92ff1f-4215-40f7-8691-c0034804391b</WebProductId>
<WebProductName>sample string 2</WebProductName>
</CartItem>
<CartItem>
<ParentWebProductId>d8cf230b-4984-4df6-83d3-8734a66224e0</ParentWebProductId>
<Price>5</Price>
<Quantity>4</Quantity>
<WebProductId>1f92ff1f-4215-40f7-8691-c0034804391b</WebProductId>
<WebProductName>sample string 2</WebProductName>
</CartItem>
</CartItems>
<accountId>f90bb41c-ae8a-4895-8ebb-4001c8f7d3c9</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.