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": "376a0b24-b3d8-4c28-b658-3554b361e7f8",
      "WebProductName": "sample string 2",
      "ParentWebProductId": "753d0800-fca5-4b35-9852-5d7b200c3b70",
      "Quantity": 4,
      "Price": 5.0
    },
    {
      "WebProductId": "376a0b24-b3d8-4c28-b658-3554b361e7f8",
      "WebProductName": "sample string 2",
      "ParentWebProductId": "753d0800-fca5-4b35-9852-5d7b200c3b70",
      "Quantity": 4,
      "Price": 5.0
    }
  ],
  "accountId": "b101a9c4-4093-4aa9-bb53-2fb53a626c4d"
}

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>753d0800-fca5-4b35-9852-5d7b200c3b70</ParentWebProductId>
      <Price>5</Price>
      <Quantity>4</Quantity>
      <WebProductId>376a0b24-b3d8-4c28-b658-3554b361e7f8</WebProductId>
      <WebProductName>sample string 2</WebProductName>
    </CartItem>
    <CartItem>
      <ParentWebProductId>753d0800-fca5-4b35-9852-5d7b200c3b70</ParentWebProductId>
      <Price>5</Price>
      <Quantity>4</Quantity>
      <WebProductId>376a0b24-b3d8-4c28-b658-3554b361e7f8</WebProductId>
      <WebProductName>sample string 2</WebProductName>
    </CartItem>
  </CartItems>
  <accountId>b101a9c4-4093-4aa9-bb53-2fb53a626c4d</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.