POST api/shoppingcart/add/items?shoppingCartId={shoppingCartId}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
shoppingCartId | globally unique identifier |
Required |
Body Parameters
CreateCartItemsName | Description | Type | Additional information |
---|---|---|---|
CartItems | Collection of CartItem |
None. |
|
accountId | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "CartItems": [ { "WebProductId": "67b0e8fb-bbfe-413b-9764-80f073407f42", "WebProductName": "sample string 2", "ParentWebProductId": "7da24869-38fe-423f-9e66-4d8e1c32cb16", "Quantity": 4, "Price": 5.0 }, { "WebProductId": "67b0e8fb-bbfe-413b-9764-80f073407f42", "WebProductName": "sample string 2", "ParentWebProductId": "7da24869-38fe-423f-9e66-4d8e1c32cb16", "Quantity": 4, "Price": 5.0 } ], "accountId": "dc7f329b-8639-4778-b96b-4c12074ab56c" }
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>7da24869-38fe-423f-9e66-4d8e1c32cb16</ParentWebProductId> <Price>5</Price> <Quantity>4</Quantity> <WebProductId>67b0e8fb-bbfe-413b-9764-80f073407f42</WebProductId> <WebProductName>sample string 2</WebProductName> </CartItem> <CartItem> <ParentWebProductId>7da24869-38fe-423f-9e66-4d8e1c32cb16</ParentWebProductId> <Price>5</Price> <Quantity>4</Quantity> <WebProductId>67b0e8fb-bbfe-413b-9764-80f073407f42</WebProductId> <WebProductName>sample string 2</WebProductName> </CartItem> </CartItems> <accountId>dc7f329b-8639-4778-b96b-4c12074ab56c</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.