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": "e54d2400-29b9-47c1-b655-b17fb3313a8f",
      "WebProductName": "sample string 2",
      "ParentWebProductId": "c9f1e256-2ba2-4738-9474-aa3078051ae7",
      "Quantity": 4,
      "Price": 5.0
    },
    {
      "WebProductId": "e54d2400-29b9-47c1-b655-b17fb3313a8f",
      "WebProductName": "sample string 2",
      "ParentWebProductId": "c9f1e256-2ba2-4738-9474-aa3078051ae7",
      "Quantity": 4,
      "Price": 5.0
    }
  ],
  "accountId": "a0822f73-c3a8-49ad-b6e7-013cd0904f37"
}

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>c9f1e256-2ba2-4738-9474-aa3078051ae7</ParentWebProductId>
      <Price>5</Price>
      <Quantity>4</Quantity>
      <WebProductId>e54d2400-29b9-47c1-b655-b17fb3313a8f</WebProductId>
      <WebProductName>sample string 2</WebProductName>
    </CartItem>
    <CartItem>
      <ParentWebProductId>c9f1e256-2ba2-4738-9474-aa3078051ae7</ParentWebProductId>
      <Price>5</Price>
      <Quantity>4</Quantity>
      <WebProductId>e54d2400-29b9-47c1-b655-b17fb3313a8f</WebProductId>
      <WebProductName>sample string 2</WebProductName>
    </CartItem>
  </CartItems>
  <accountId>a0822f73-c3a8-49ad-b6e7-013cd0904f37</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.