Feature Pack 5Feature Pack 6Feature Pack 4

Update shipping information for an order or order items

The following examples show how to update shipping information for an order or order items.

Request 1


PUT /wcs/resources/store/10101/cart/@self/shipping_info HTTP/1.1
Host: wcstestserver.raleigh.ibm.com
Content-Type: application/json

{
	"x_calculationUsage" : "-1,-2,-3,-4,-5,-6,-7",
	"shipModeId" : "10152",
	"addressId" : "12345"
}

Response 1


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

{
	"orderId": "21505",
	"orderItem": [
		{
			"orderItemId": "130012"
		},
		{
			"orderItemId": "130013"
		},
		{
			"orderItemId": "135004"
		}
	]
}

Request 2


PUT /wcs/resources/store/10101/cart/@self/shipping_info HTTP/1.1
Host: wcstestserver.raleigh.ibm.com
Content-Type: application/json

{
   "x_calculationUsage" : "-1,-2,-3,-4,-5,-6,-7",
   "shipAsComplete" : "true",
   "orderItem": [
      {
			"shipModeId" : "10151",
			"addressId" : "12345",
			"shipInstructions" : "Best wishes.",
			"orderItemId" : "130012"
      },
      {
			"shipModeId" : "10101",
			"physicalStoreId" : "10042",
			"shipInstructions" : "Best wishes.",
			"orderItemId" : "130013"
      }
   ]      
}

Response 2


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

{
	"orderId": "21505",
	"orderItem": [
		{
			"orderItemId": "130013"
		},
		{
			"orderItemId": "130012"
		}
	]
}