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": "c6424d70-f66a-46c9-a090-a9f00cb5f1d5",
      "WebProductName": "sample string 2",
      "ParentWebProductId": "9734527c-b361-4426-95a1-d1bc0fe3a493",
      "Quantity": 4,
      "Price": 5.0
    },
    {
      "WebProductId": "c6424d70-f66a-46c9-a090-a9f00cb5f1d5",
      "WebProductName": "sample string 2",
      "ParentWebProductId": "9734527c-b361-4426-95a1-d1bc0fe3a493",
      "Quantity": 4,
      "Price": 5.0
    }
  ],
  "accountId": "7a495ee1-1ca4-4742-8879-1d9c018f5d59"
}

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>9734527c-b361-4426-95a1-d1bc0fe3a493</ParentWebProductId>
      <Price>5</Price>
      <Quantity>4</Quantity>
      <WebProductId>c6424d70-f66a-46c9-a090-a9f00cb5f1d5</WebProductId>
      <WebProductName>sample string 2</WebProductName>
    </CartItem>
    <CartItem>
      <ParentWebProductId>9734527c-b361-4426-95a1-d1bc0fe3a493</ParentWebProductId>
      <Price>5</Price>
      <Quantity>4</Quantity>
      <WebProductId>c6424d70-f66a-46c9-a090-a9f00cb5f1d5</WebProductId>
      <WebProductName>sample string 2</WebProductName>
    </CartItem>
  </CartItems>
  <accountId>7a495ee1-1ca4-4742-8879-1d9c018f5d59</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.