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": "b40e734a-b368-4ab2-a548-48e21e0c520b",
      "WebProductName": "sample string 2",
      "ParentWebProductId": "2a0c3e33-df3f-404d-8808-83aa772b9d5c",
      "Quantity": 4,
      "Price": 5.0
    },
    {
      "WebProductId": "b40e734a-b368-4ab2-a548-48e21e0c520b",
      "WebProductName": "sample string 2",
      "ParentWebProductId": "2a0c3e33-df3f-404d-8808-83aa772b9d5c",
      "Quantity": 4,
      "Price": 5.0
    }
  ],
  "accountId": "3515d9bd-8b0e-47f8-88f6-a473abd4297f"
}

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>2a0c3e33-df3f-404d-8808-83aa772b9d5c</ParentWebProductId>
      <Price>5</Price>
      <Quantity>4</Quantity>
      <WebProductId>b40e734a-b368-4ab2-a548-48e21e0c520b</WebProductId>
      <WebProductName>sample string 2</WebProductName>
    </CartItem>
    <CartItem>
      <ParentWebProductId>2a0c3e33-df3f-404d-8808-83aa772b9d5c</ParentWebProductId>
      <Price>5</Price>
      <Quantity>4</Quantity>
      <WebProductId>b40e734a-b368-4ab2-a548-48e21e0c520b</WebProductId>
      <WebProductName>sample string 2</WebProductName>
    </CartItem>
  </CartItems>
  <accountId>3515d9bd-8b0e-47f8-88f6-a473abd4297f</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.