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": "c4a71a59-5c34-4d7d-98ac-06b89a9e930b",
      "WebProductName": "sample string 2",
      "ParentWebProductId": "40d4b3ba-262f-4de6-88d0-48a1b1c02096",
      "Quantity": 4,
      "Price": 5.0
    },
    {
      "WebProductId": "c4a71a59-5c34-4d7d-98ac-06b89a9e930b",
      "WebProductName": "sample string 2",
      "ParentWebProductId": "40d4b3ba-262f-4de6-88d0-48a1b1c02096",
      "Quantity": 4,
      "Price": 5.0
    }
  ],
  "accountId": "ff0eba1f-fd55-480a-9a64-745cd1408c11"
}

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>40d4b3ba-262f-4de6-88d0-48a1b1c02096</ParentWebProductId>
      <Price>5</Price>
      <Quantity>4</Quantity>
      <WebProductId>c4a71a59-5c34-4d7d-98ac-06b89a9e930b</WebProductId>
      <WebProductName>sample string 2</WebProductName>
    </CartItem>
    <CartItem>
      <ParentWebProductId>40d4b3ba-262f-4de6-88d0-48a1b1c02096</ParentWebProductId>
      <Price>5</Price>
      <Quantity>4</Quantity>
      <WebProductId>c4a71a59-5c34-4d7d-98ac-06b89a9e930b</WebProductId>
      <WebProductName>sample string 2</WebProductName>
    </CartItem>
  </CartItems>
  <accountId>ff0eba1f-fd55-480a-9a64-745cd1408c11</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.