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": "734f1f2f-12a3-49b3-929e-2346032f3a91",
      "WebProductName": "sample string 2",
      "ParentWebProductId": "cabc0d4a-e9db-4209-8e0c-a4f124f9f6c3",
      "Quantity": 4,
      "Price": 5.0
    },
    {
      "WebProductId": "734f1f2f-12a3-49b3-929e-2346032f3a91",
      "WebProductName": "sample string 2",
      "ParentWebProductId": "cabc0d4a-e9db-4209-8e0c-a4f124f9f6c3",
      "Quantity": 4,
      "Price": 5.0
    }
  ],
  "accountId": "8c0ba8d9-7459-4165-b8f5-d649d4049682"
}

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>cabc0d4a-e9db-4209-8e0c-a4f124f9f6c3</ParentWebProductId>
      <Price>5</Price>
      <Quantity>4</Quantity>
      <WebProductId>734f1f2f-12a3-49b3-929e-2346032f3a91</WebProductId>
      <WebProductName>sample string 2</WebProductName>
    </CartItem>
    <CartItem>
      <ParentWebProductId>cabc0d4a-e9db-4209-8e0c-a4f124f9f6c3</ParentWebProductId>
      <Price>5</Price>
      <Quantity>4</Quantity>
      <WebProductId>734f1f2f-12a3-49b3-929e-2346032f3a91</WebProductId>
      <WebProductName>sample string 2</WebProductName>
    </CartItem>
  </CartItems>
  <accountId>8c0ba8d9-7459-4165-b8f5-d649d4049682</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.