Feature Pack 4Feature Pack 5Feature Pack 6

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: wcstestserver.raleigh.ibm.com
Content-Type: application/json

{
   "orderItem": [
      {
         "orderItemId": "60001",
         "quantity": "0"
      },
      {
         "orderItemId": "60002",
         "quantity": "3.0"
      }
   ]
}

Response


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

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