POST api/shoppingcart/add/items?shoppingCartId={shoppingCartId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
shoppingCartId

globally unique identifier

Required

Body Parameters

CreateCartItems
NameDescriptionTypeAdditional information
CartItems

Collection of CartItem

None.

accountId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "CartItems": [
    {
      "WebProductId": "b5049ed4-2c36-4692-938d-604d28f976a7",
      "WebProductName": "sample string 2",
      "ParentWebProductId": "871303e2-5e2b-4e5e-82db-4a8d57e7bc8f",
      "Quantity": 4,
      "Price": 5.0
    },
    {
      "WebProductId": "b5049ed4-2c36-4692-938d-604d28f976a7",
      "WebProductName": "sample string 2",
      "ParentWebProductId": "871303e2-5e2b-4e5e-82db-4a8d57e7bc8f",
      "Quantity": 4,
      "Price": 5.0
    }
  ],
  "accountId": "3b4c7088-df84-499d-b9ed-8f9a4aa4ff29"
}

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>871303e2-5e2b-4e5e-82db-4a8d57e7bc8f</ParentWebProductId>
      <Price>5</Price>
      <Quantity>4</Quantity>
      <WebProductId>b5049ed4-2c36-4692-938d-604d28f976a7</WebProductId>
      <WebProductName>sample string 2</WebProductName>
    </CartItem>
    <CartItem>
      <ParentWebProductId>871303e2-5e2b-4e5e-82db-4a8d57e7bc8f</ParentWebProductId>
      <Price>5</Price>
      <Quantity>4</Quantity>
      <WebProductId>b5049ed4-2c36-4692-938d-604d28f976a7</WebProductId>
      <WebProductName>sample string 2</WebProductName>
    </CartItem>
  </CartItems>
  <accountId>3b4c7088-df84-499d-b9ed-8f9a4aa4ff29</accountId>
</CreateCartItems>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.