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": "f14170ca-d941-4541-a049-8ba91da68477",
      "WebProductName": "sample string 2",
      "ParentWebProductId": "d223e2ba-3218-4655-a963-bea29df3a200",
      "Quantity": 4,
      "Price": 5.0
    },
    {
      "WebProductId": "f14170ca-d941-4541-a049-8ba91da68477",
      "WebProductName": "sample string 2",
      "ParentWebProductId": "d223e2ba-3218-4655-a963-bea29df3a200",
      "Quantity": 4,
      "Price": 5.0
    }
  ],
  "accountId": "9f9e0b35-4d9a-4004-bd8c-3161aa8f52d0"
}

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>d223e2ba-3218-4655-a963-bea29df3a200</ParentWebProductId>
      <Price>5</Price>
      <Quantity>4</Quantity>
      <WebProductId>f14170ca-d941-4541-a049-8ba91da68477</WebProductId>
      <WebProductName>sample string 2</WebProductName>
    </CartItem>
    <CartItem>
      <ParentWebProductId>d223e2ba-3218-4655-a963-bea29df3a200</ParentWebProductId>
      <Price>5</Price>
      <Quantity>4</Quantity>
      <WebProductId>f14170ca-d941-4541-a049-8ba91da68477</WebProductId>
      <WebProductName>sample string 2</WebProductName>
    </CartItem>
  </CartItems>
  <accountId>9f9e0b35-4d9a-4004-bd8c-3161aa8f52d0</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.