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": "f18ef613-a76f-4d99-a85a-c54898bf68d4",
      "WebProductName": "sample string 2",
      "ParentWebProductId": "881967dc-3f5a-4cf4-805c-febebfd61010",
      "Quantity": 4,
      "Price": 5.0
    },
    {
      "WebProductId": "f18ef613-a76f-4d99-a85a-c54898bf68d4",
      "WebProductName": "sample string 2",
      "ParentWebProductId": "881967dc-3f5a-4cf4-805c-febebfd61010",
      "Quantity": 4,
      "Price": 5.0
    }
  ],
  "accountId": "bb937bba-d761-4f16-9154-e1cd1371ca00"
}

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>881967dc-3f5a-4cf4-805c-febebfd61010</ParentWebProductId>
      <Price>5</Price>
      <Quantity>4</Quantity>
      <WebProductId>f18ef613-a76f-4d99-a85a-c54898bf68d4</WebProductId>
      <WebProductName>sample string 2</WebProductName>
    </CartItem>
    <CartItem>
      <ParentWebProductId>881967dc-3f5a-4cf4-805c-febebfd61010</ParentWebProductId>
      <Price>5</Price>
      <Quantity>4</Quantity>
      <WebProductId>f18ef613-a76f-4d99-a85a-c54898bf68d4</WebProductId>
      <WebProductName>sample string 2</WebProductName>
    </CartItem>
  </CartItems>
  <accountId>bb937bba-d761-4f16-9154-e1cd1371ca00</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.