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": "c0206fae-68dd-4d2c-bedf-4066af1ef699",
      "WebProductName": "sample string 2",
      "ParentWebProductId": "5a3f4498-c4ab-4e06-a0d4-75a7e3a6784c",
      "Quantity": 4,
      "Price": 5.0
    },
    {
      "WebProductId": "c0206fae-68dd-4d2c-bedf-4066af1ef699",
      "WebProductName": "sample string 2",
      "ParentWebProductId": "5a3f4498-c4ab-4e06-a0d4-75a7e3a6784c",
      "Quantity": 4,
      "Price": 5.0
    }
  ],
  "accountId": "40796e43-3554-4212-8fbe-b41fa8b30115"
}

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>5a3f4498-c4ab-4e06-a0d4-75a7e3a6784c</ParentWebProductId>
      <Price>5</Price>
      <Quantity>4</Quantity>
      <WebProductId>c0206fae-68dd-4d2c-bedf-4066af1ef699</WebProductId>
      <WebProductName>sample string 2</WebProductName>
    </CartItem>
    <CartItem>
      <ParentWebProductId>5a3f4498-c4ab-4e06-a0d4-75a7e3a6784c</ParentWebProductId>
      <Price>5</Price>
      <Quantity>4</Quantity>
      <WebProductId>c0206fae-68dd-4d2c-bedf-4066af1ef699</WebProductId>
      <WebProductName>sample string 2</WebProductName>
    </CartItem>
  </CartItems>
  <accountId>40796e43-3554-4212-8fbe-b41fa8b30115</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.