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": "82218c3d-c54a-463d-ad04-1face22afacb",
      "WebProductName": "sample string 2",
      "ParentWebProductId": "ff2bf679-f2ef-460f-9c07-7ae1422e2277",
      "Quantity": 4,
      "Price": 5.0
    },
    {
      "WebProductId": "82218c3d-c54a-463d-ad04-1face22afacb",
      "WebProductName": "sample string 2",
      "ParentWebProductId": "ff2bf679-f2ef-460f-9c07-7ae1422e2277",
      "Quantity": 4,
      "Price": 5.0
    }
  ],
  "accountId": "d1cc6a59-7a4f-4998-90bf-84fabaad3b6a"
}

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>ff2bf679-f2ef-460f-9c07-7ae1422e2277</ParentWebProductId>
      <Price>5</Price>
      <Quantity>4</Quantity>
      <WebProductId>82218c3d-c54a-463d-ad04-1face22afacb</WebProductId>
      <WebProductName>sample string 2</WebProductName>
    </CartItem>
    <CartItem>
      <ParentWebProductId>ff2bf679-f2ef-460f-9c07-7ae1422e2277</ParentWebProductId>
      <Price>5</Price>
      <Quantity>4</Quantity>
      <WebProductId>82218c3d-c54a-463d-ad04-1face22afacb</WebProductId>
      <WebProductName>sample string 2</WebProductName>
    </CartItem>
  </CartItems>
  <accountId>d1cc6a59-7a4f-4998-90bf-84fabaad3b6a</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.