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": "417f95f9-bcfb-4dfe-9e58-e70cc6bbcc85",
      "WebProductName": "sample string 2",
      "ParentWebProductId": "9ff5d4bd-8e5e-495c-bac7-f3013127b38f",
      "Quantity": 4,
      "Price": 5.0
    },
    {
      "WebProductId": "417f95f9-bcfb-4dfe-9e58-e70cc6bbcc85",
      "WebProductName": "sample string 2",
      "ParentWebProductId": "9ff5d4bd-8e5e-495c-bac7-f3013127b38f",
      "Quantity": 4,
      "Price": 5.0
    }
  ],
  "accountId": "988b92ef-e045-4c37-9d10-51b20a608bc4"
}

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>9ff5d4bd-8e5e-495c-bac7-f3013127b38f</ParentWebProductId>
      <Price>5</Price>
      <Quantity>4</Quantity>
      <WebProductId>417f95f9-bcfb-4dfe-9e58-e70cc6bbcc85</WebProductId>
      <WebProductName>sample string 2</WebProductName>
    </CartItem>
    <CartItem>
      <ParentWebProductId>9ff5d4bd-8e5e-495c-bac7-f3013127b38f</ParentWebProductId>
      <Price>5</Price>
      <Quantity>4</Quantity>
      <WebProductId>417f95f9-bcfb-4dfe-9e58-e70cc6bbcc85</WebProductId>
      <WebProductName>sample string 2</WebProductName>
    </CartItem>
  </CartItems>
  <accountId>988b92ef-e045-4c37-9d10-51b20a608bc4</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.