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": "7c69ec4f-e68f-419f-af12-199254f3bf51",
"WebProductName": "sample string 2",
"ParentWebProductId": "cf531246-80bc-41cf-af25-17867e117685",
"Quantity": 4,
"Price": 5.0
},
{
"WebProductId": "7c69ec4f-e68f-419f-af12-199254f3bf51",
"WebProductName": "sample string 2",
"ParentWebProductId": "cf531246-80bc-41cf-af25-17867e117685",
"Quantity": 4,
"Price": 5.0
}
],
"accountId": "59be6395-1d0e-445e-910d-754e39e6e7ca"
}
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>cf531246-80bc-41cf-af25-17867e117685</ParentWebProductId>
<Price>5</Price>
<Quantity>4</Quantity>
<WebProductId>7c69ec4f-e68f-419f-af12-199254f3bf51</WebProductId>
<WebProductName>sample string 2</WebProductName>
</CartItem>
<CartItem>
<ParentWebProductId>cf531246-80bc-41cf-af25-17867e117685</ParentWebProductId>
<Price>5</Price>
<Quantity>4</Quantity>
<WebProductId>7c69ec4f-e68f-419f-af12-199254f3bf51</WebProductId>
<WebProductName>sample string 2</WebProductName>
</CartItem>
</CartItems>
<accountId>59be6395-1d0e-445e-910d-754e39e6e7ca</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.