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": "80a95805-aab8-4822-afe1-2472db3c19f4",
      "WebProductName": "sample string 2",
      "ParentWebProductId": "74ccf6a3-3fef-405d-9c38-3bc43abf94b3",
      "Quantity": 4,
      "Price": 5.0
    },
    {
      "WebProductId": "80a95805-aab8-4822-afe1-2472db3c19f4",
      "WebProductName": "sample string 2",
      "ParentWebProductId": "74ccf6a3-3fef-405d-9c38-3bc43abf94b3",
      "Quantity": 4,
      "Price": 5.0
    }
  ],
  "accountId": "5895182a-3953-47f7-a493-0dc35c9c5017"
}

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>74ccf6a3-3fef-405d-9c38-3bc43abf94b3</ParentWebProductId>
      <Price>5</Price>
      <Quantity>4</Quantity>
      <WebProductId>80a95805-aab8-4822-afe1-2472db3c19f4</WebProductId>
      <WebProductName>sample string 2</WebProductName>
    </CartItem>
    <CartItem>
      <ParentWebProductId>74ccf6a3-3fef-405d-9c38-3bc43abf94b3</ParentWebProductId>
      <Price>5</Price>
      <Quantity>4</Quantity>
      <WebProductId>80a95805-aab8-4822-afe1-2472db3c19f4</WebProductId>
      <WebProductName>sample string 2</WebProductName>
    </CartItem>
  </CartItems>
  <accountId>5895182a-3953-47f7-a493-0dc35c9c5017</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.