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": "8f4b5b93-1591-4b7c-8661-607c1e79e496",
      "WebProductName": "sample string 2",
      "ParentWebProductId": "45276f42-b491-4aed-9a4e-3fe3e6d8bba8",
      "Quantity": 4,
      "Price": 5.0
    },
    {
      "WebProductId": "8f4b5b93-1591-4b7c-8661-607c1e79e496",
      "WebProductName": "sample string 2",
      "ParentWebProductId": "45276f42-b491-4aed-9a4e-3fe3e6d8bba8",
      "Quantity": 4,
      "Price": 5.0
    }
  ],
  "accountId": "654aec51-5809-4e60-af22-15ce081d94dd"
}

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>45276f42-b491-4aed-9a4e-3fe3e6d8bba8</ParentWebProductId>
      <Price>5</Price>
      <Quantity>4</Quantity>
      <WebProductId>8f4b5b93-1591-4b7c-8661-607c1e79e496</WebProductId>
      <WebProductName>sample string 2</WebProductName>
    </CartItem>
    <CartItem>
      <ParentWebProductId>45276f42-b491-4aed-9a4e-3fe3e6d8bba8</ParentWebProductId>
      <Price>5</Price>
      <Quantity>4</Quantity>
      <WebProductId>8f4b5b93-1591-4b7c-8661-607c1e79e496</WebProductId>
      <WebProductName>sample string 2</WebProductName>
    </CartItem>
  </CartItems>
  <accountId>654aec51-5809-4e60-af22-15ce081d94dd</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.