The addMultipleItemsToOrder
actor-chain is used when adding more than one item to the customer’s shopping cart.
Parameter | Description |
---|---|
| The number of items being added to the shopping cart. This is different than the quantity of each product being added, this is the items array size. |
| The catalog reference ID. |
| The ID of the product to add to the shopping cart. |
| The number of each product being added to the shopping cart. For example, two sweaters or four pairs of shoes. |
| Used only for in-store pickup. This identifies the location of the store. |
| Identifies the site associated with the product. |
| Used only when adding gift or wishlist items to the shopping cart. Identifies the ID of the list. |
| Used only when adding gift or wishlist items to the shopping cart. Identifies the ID of the list item. |
Add Multiple Items to Customer Order Example
curl -L -v -b agent_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/custsvc/order/CartModifierActor/ addMultipleItemsToOrder"