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": "e679ce05-1f1b-4c9e-a7d6-1f49596f5ad6",
      "WebProductName": "sample string 2",
      "ParentWebProductId": "9e8c5646-7429-47fb-b612-f6ca5dade881",
      "Quantity": 4,
      "Price": 5.0
    },
    {
      "WebProductId": "e679ce05-1f1b-4c9e-a7d6-1f49596f5ad6",
      "WebProductName": "sample string 2",
      "ParentWebProductId": "9e8c5646-7429-47fb-b612-f6ca5dade881",
      "Quantity": 4,
      "Price": 5.0
    }
  ],
  "accountId": "5dbefe94-7b2b-4f54-ab15-6d2f489b3a54"
}

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>9e8c5646-7429-47fb-b612-f6ca5dade881</ParentWebProductId>
      <Price>5</Price>
      <Quantity>4</Quantity>
      <WebProductId>e679ce05-1f1b-4c9e-a7d6-1f49596f5ad6</WebProductId>
      <WebProductName>sample string 2</WebProductName>
    </CartItem>
    <CartItem>
      <ParentWebProductId>9e8c5646-7429-47fb-b612-f6ca5dade881</ParentWebProductId>
      <Price>5</Price>
      <Quantity>4</Quantity>
      <WebProductId>e679ce05-1f1b-4c9e-a7d6-1f49596f5ad6</WebProductId>
      <WebProductName>sample string 2</WebProductName>
    </CartItem>
  </CartItems>
  <accountId>5dbefe94-7b2b-4f54-ab15-6d2f489b3a54</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.