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": "db0374f3-7534-4fc1-8019-ff57a19e7ede", "WebProductName": "sample string 2", "ParentWebProductId": "1c112920-1c15-4f86-8bbd-a893d26b9710", "Quantity": 4, "Price": 5.0 }, { "WebProductId": "db0374f3-7534-4fc1-8019-ff57a19e7ede", "WebProductName": "sample string 2", "ParentWebProductId": "1c112920-1c15-4f86-8bbd-a893d26b9710", "Quantity": 4, "Price": 5.0 } ], "accountId": "b89da761-a57a-4abc-8d9f-de091b573069" }
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>1c112920-1c15-4f86-8bbd-a893d26b9710</ParentWebProductId> <Price>5</Price> <Quantity>4</Quantity> <WebProductId>db0374f3-7534-4fc1-8019-ff57a19e7ede</WebProductId> <WebProductName>sample string 2</WebProductName> </CartItem> <CartItem> <ParentWebProductId>1c112920-1c15-4f86-8bbd-a893d26b9710</ParentWebProductId> <Price>5</Price> <Quantity>4</Quantity> <WebProductId>db0374f3-7534-4fc1-8019-ff57a19e7ede</WebProductId> <WebProductName>sample string 2</WebProductName> </CartItem> </CartItems> <accountId>b89da761-a57a-4abc-8d9f-de091b573069</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.