The addMultipleItemsToOrder actor-chain is used when adding more than one item to shopping cart.

Parameter

Description

addItemCount

The number of items being added to the shopping cart. This is different than the quantity of each product being added.

catalogRefId

The catalog reference ID.

productId

The ID of the product to add to the shopping cart.

quantity

The number of each product being added to the shopping cart. For example, two sweaters or four pairs of shoes.

locationId

Used only for in-store pickup. This identifies the location of the store.

siteId

Identifies the site associated with the product.

giftlistId

Used only when adding gift or wishlist items to the shopping cart. Identifies the ID of the list.

giftlistItemId

Used only when adding gift or wishlist items to the shopping cart. Identifies the ID of the list item.

Add Multiple Items to Order Example
curl -v -b customer_cookies.txt -H "Content-Type: application/json" -d "{
\"addItemCount\": 3, \"items\": {\"atg-rest-class-type\":\"java.util.ArrayList\",
\"atg-rest-values\": [{"atg-rest-class-type":
"atg.commerce.order.purchase.AddCommerceItemInfo", \"catalogRefId\":
"xsku1043",\"productId\": "xprod1015",\"quantity\": 1},{"atg-rest-class-type":
"atg.commerce.order.purchase.AddCommerceItemInfo",\"catalogRefId\":
"xsku60325",\"productId\": "xprod40028",\"quantity\": 2},{"atg-rest-class-type":
"atg.commerce.order.purchase.AddCommerceItemInfo",\"catalogRefId\":
"xsku1001",\"productId\": "xprod1001",\"quantity\": 3} ]}}"
"http://localhost:8280/rest/model/atg/commerce/order/purchase/CartModifierActor/
addMultipleItemsToOrder"

Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices