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": "003e1fca-935a-4c1f-9eaa-2242c6b087e9",
      "WebProductName": "sample string 2",
      "ParentWebProductId": "0d7628fd-8b23-4dad-9f72-d0038819b3b2",
      "Quantity": 4,
      "Price": 5.0
    },
    {
      "WebProductId": "003e1fca-935a-4c1f-9eaa-2242c6b087e9",
      "WebProductName": "sample string 2",
      "ParentWebProductId": "0d7628fd-8b23-4dad-9f72-d0038819b3b2",
      "Quantity": 4,
      "Price": 5.0
    }
  ],
  "accountId": "9b266b73-b393-40b3-b57b-d71a0fe48d4d"
}

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>0d7628fd-8b23-4dad-9f72-d0038819b3b2</ParentWebProductId>
      <Price>5</Price>
      <Quantity>4</Quantity>
      <WebProductId>003e1fca-935a-4c1f-9eaa-2242c6b087e9</WebProductId>
      <WebProductName>sample string 2</WebProductName>
    </CartItem>
    <CartItem>
      <ParentWebProductId>0d7628fd-8b23-4dad-9f72-d0038819b3b2</ParentWebProductId>
      <Price>5</Price>
      <Quantity>4</Quantity>
      <WebProductId>003e1fca-935a-4c1f-9eaa-2242c6b087e9</WebProductId>
      <WebProductName>sample string 2</WebProductName>
    </CartItem>
  </CartItems>
  <accountId>9b266b73-b393-40b3-b57b-d71a0fe48d4d</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.