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. |
Request Formats
application/json, text/json
Sample:
{ "CartItems": [ { "WebProductId": "25e00115-8fef-415a-8eb4-4a0c004d5480", "WebProductName": "sample string 2", "ParentWebProductId": "4e3b75ee-1276-4f96-b945-023ee7ce5b0a", "Quantity": 4 }, { "WebProductId": "25e00115-8fef-415a-8eb4-4a0c004d5480", "WebProductName": "sample string 2", "ParentWebProductId": "4e3b75ee-1276-4f96-b945-023ee7ce5b0a", "Quantity": 4 } ] }
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>4e3b75ee-1276-4f96-b945-023ee7ce5b0a</ParentWebProductId> <Quantity>4</Quantity> <WebProductId>25e00115-8fef-415a-8eb4-4a0c004d5480</WebProductId> <WebProductName>sample string 2</WebProductName> </CartItem> <CartItem> <ParentWebProductId>4e3b75ee-1276-4f96-b945-023ee7ce5b0a</ParentWebProductId> <Quantity>4</Quantity> <WebProductId>25e00115-8fef-415a-8eb4-4a0c004d5480</WebProductId> <WebProductName>sample string 2</WebProductName> </CartItem> </CartItems> </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.