Feature Pack 5Feature Pack 6Feature Pack 4

Get order by status

The following example shows how to get order by status.

Request


GET /wcs/resources/store/10101/order/byStatus/B,M HTTP/1.1
Host: wcstestserver.raleigh.ibm.com
Content-Type: application/json

Response


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

{
	"Order": [
		{
			"adjustment": [
				{
					"amount": "-50.00000",
					"code": "Furniture Category Discount",
					"currency": "USD",
					"description": "Save 20% on Furniture!",
					"descriptionLanguage": "-1",
					"displayLevel": "OrderItem",
					"usage": "Discount"
				},
				{
					"amount": "-5.00000",
					"code": "Discount for Repeat Customers",
					"currency": "USD",
					"description": "Repeat customers save $5.00 USD",
					"descriptionLanguage": "-1",
					"displayLevel": "Order",
					"usage": "Discount"
				},
				{
					"amount": "-0.94000",
					"code": "Flat Shipping",
					"currency": "USD",
					"description": "Flat $5 US-Regular shipping!",
					"descriptionLanguage": "-1",
					"displayLevel": "Order",
					"usage": "Shipping Adjustment"
				}
			],
			"buyerDistinguishedName": "uid=jsmith,o=default organization,o=root organization",
			"buyerId": "3",
			"grandTotal": "209.74000",
			"grandTotalCurrency": "USD",
			"lastUpdateDate": "2011-11-11T19:18:38.737Z",
			"orderId": "16515",
			"orderStatus": "M",
			"placedDate": "2011-11-11T19:18:38.737Z",
			"prepareIndicator": "true",
			"resourceId": "https:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/10101\/order\/16515",
			"shipAsComplete": "true",
			"storeNameIdentifier": "Madisons",
			"storeUniqueID": "10101",
			"totalAdjustment": "-55.94000",
			"totalAdjustmentCurrency": "USD",
			"totalProductPrice": "249.99000",
			"totalProductPriceCurrency": "USD",
			"totalSalesTax": "9.75000",
			"totalSalesTaxCurrency": "USD",
			"totalShippingCharge": "5.94000",
			"totalShippingChargeCurrency": "USD",
			"totalShippingTax": "0.00000",
			"totalShippingTaxCurrency": "USD",
			"totalTaxByTaxCategory": [
				{
					"currency": "USD",
					"taxCategoryCode": "Federal Sales",
					"value": "9.75000"
				},
				{
					"currency": "USD",
					"taxCategoryCode": "Federal Ship",
					"value": "0.00000"
				}
			]
		},
		{
			"adjustment": [
				{
					"amount": "-9.85000",
					"code": "Flat Shipping",
					"currency": "USD",
					"description": "Flat $5 US-Regular shipping!",
					"descriptionLanguage": "-1",
					"displayLevel": "Order",
					"usage": "Shipping Adjustment"
				},
				{
					"amount": "-299.99000",
					"code": "Furniture Category Discount",
					"currency": "USD",
					"description": "Save 20% on Furniture!",
					"descriptionLanguage": "-1",
					"displayLevel": "OrderItem",
					"usage": "Discount"
				},
				{
					"amount": "-19.99000",
					"code": "Free gift with orders over $100",
					"currency": "USD",
					"description": "Free gift with orders over $100 USD",
					"descriptionLanguage": "-1",
					"displayLevel": "Order",
					"usage": "Discount"
				}
			],
			"buyerDistinguishedName": "uid=jsmith,o=default organization,o=root organization",
			"buyerId": "3",
			"grandTotal": "1307.92000",
			"grandTotalCurrency": "USD",
			"lastUpdateDate": "2011-11-11T16:11:52.743Z",
			"orderId": "16513",
			"orderStatus": "M",
			"placedDate": "2011-11-11T16:11:52.743Z",
			"prepareIndicator": "true",
			"resourceId": "https:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/10101\/order\/16513",
			"shipAsComplete": "true",
			"storeNameIdentifier": "Madisons",
			"storeUniqueID": "10101",
			"totalAdjustment": "-329.83000",
			"totalAdjustmentCurrency": "USD",
			"totalProductPrice": "1562.90000",
			"totalProductPriceCurrency": "USD",
			"totalSalesTax": "60.00000",
			"totalSalesTaxCurrency": "USD",
			"totalShippingCharge": "14.85000",
			"totalShippingChargeCurrency": "USD",
			"totalShippingTax": "0.00000",
			"totalShippingTaxCurrency": "USD",
			"totalTaxByTaxCategory": [
				{
					"currency": "USD",
					"taxCategoryCode": "Federal Sales",
					"value": "60.00000"
				},
				{
					"currency": "USD",
					"taxCategoryCode": "Federal Ship",
					"value": "0.00000"
				}
			]
		}
	],
	"recordSetComplete": "true",
	"recordSetCount": "2",
	"recordSetStartNumber": "0",
	"recordSetTotal": "2",
	"resourceId": "https:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/10101\/order\/byStatus\/B,M",
	"resourceName": "order"
}