Feature Pack 7

Update order items in shopping cart

The following example shows how to update order items in shopping cart.

Request


PUT /wcs/resources/store/10101/cart/@self HTTP/1.1
Host: testserver.mycompany.com
Content-Type: application/json

{
   "orderItem": [
      {
         "orderItemId": "60001",
		 "quantity": "0"
	  }, 
	  {
         "orderItemId": "60002",
		 "quantity": "3.0",
		 "xitem_field1": "3",
		 "xitem_field2": "4.0"
	  }
   ] 
}

Response


HTTP/1.1 200 OK
Content-Type: application/json

{
	"orderId": "14501",
	"orderItem": [
		{
			"orderItemId": "60002"
		}
	]
}