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": "34cd1a53-0959-487f-a971-50e4fb7f8ae3", "WebProductName": "sample string 2", "ParentWebProductId": "911548bf-9ead-40cc-9d05-fd67b9068332", "Quantity": 4, "Price": 5.0 }, { "WebProductId": "34cd1a53-0959-487f-a971-50e4fb7f8ae3", "WebProductName": "sample string 2", "ParentWebProductId": "911548bf-9ead-40cc-9d05-fd67b9068332", "Quantity": 4, "Price": 5.0 } ], "accountId": "f4b36d09-061e-445c-bf4a-1f006ee48a46" }
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>911548bf-9ead-40cc-9d05-fd67b9068332</ParentWebProductId> <Price>5</Price> <Quantity>4</Quantity> <WebProductId>34cd1a53-0959-487f-a971-50e4fb7f8ae3</WebProductId> <WebProductName>sample string 2</WebProductName> </CartItem> <CartItem> <ParentWebProductId>911548bf-9ead-40cc-9d05-fd67b9068332</ParentWebProductId> <Price>5</Price> <Quantity>4</Quantity> <WebProductId>34cd1a53-0959-487f-a971-50e4fb7f8ae3</WebProductId> <WebProductName>sample string 2</WebProductName> </CartItem> </CartItems> <accountId>f4b36d09-061e-445c-bf4a-1f006ee48a46</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.