
Get order history
The following example shows how to get order history.
Request
GET /wcs/resources/store/10101/order/@history HTTPS/1.1
Host: testserver.mycompany.com
Content-Type: application/json
Response
HTTPS/1.1 200 OK
Content-Type: application/json
{
"Order": [
{
"adjustment": [
{
"amount": "-25.00000",
"code": "Save $25 on all orders over $200 USD",
"currency": "USD",
"description": "Save $25 on all orders over $200 USD",
"descriptionLanguage": "-1",
"displayLevel": "Order",
"usage": "Discount"
}
],
"buyerDistinguishedName": "uid=shopperrest,o=default organization,o=root organization",
"buyerId": "1002",
"grandTotal": "215.00000",
"grandTotalCurrency": "USD",
"lastUpdateDate": "2013-11-05T06:06:57.047Z",
"orderId": "17018",
"orderStatus": "B",
"placedDate": "2013-11-05T06:06:57.047Z",
"prepareIndicator": "true",
"resourceId": "https:\/\/testserver.mycompany.com\/wcs\/resources\/store\/10101\/order\/17018",
"shipAsComplete": "true",
"storeNameIdentifier": "Aurora",
"storeUniqueID": "10101",
"totalAdjustment": "-25.00000",
"totalAdjustmentCurrency": "USD",
"totalProductPrice": "240.00000",
"totalProductPriceCurrency": "USD",
"totalSalesTax": "0.00000",
"totalSalesTaxCurrency": "USD",
"totalShippingCharge": "0.00000",
"totalShippingChargeCurrency": "USD",
"totalShippingTax": "0.00000",
"totalShippingTaxCurrency": "USD",
"x_field1": "1",
"x_field2": "2.00000",
"x_field3": "Field3"
},
{
"adjustment": [
{
"amount": "-18.00000",
"code": "Save 10% on all orders today",
"currency": "USD",
"description": "Save 10% on all orders",
"descriptionLanguage": "-1",
"displayLevel": "Order",
"usage": "Discount"
}
],
"buyerDistinguishedName": "uid=shopperrest,o=default organization,o=root organization",
"buyerId": "1002",
"grandTotal": "162.00000",
"grandTotalCurrency": "USD",
"lastUpdateDate": "2013-11-05T05:42:21.642Z",
"orderId": "17017",
"orderStatus": "B",
"placedDate": "2013-11-05T05:42:21.642Z",
"prepareIndicator": "true",
"resourceId": "https:\/\/testserver.mycompany.com\/wcs\/resources\/store\/10101\/order\/17017",
"shipAsComplete": "true",
"storeNameIdentifier": "Aurora",
"storeUniqueID": "10101",
"totalAdjustment": "-18.00000",
"totalAdjustmentCurrency": "USD",
"totalProductPrice": "180.00000",
"totalProductPriceCurrency": "USD",
"totalSalesTax": "0.00000",
"totalSalesTaxCurrency": "USD",
"totalShippingCharge": "0.00000",
"totalShippingChargeCurrency": "USD",
"totalShippingTax": "0.00000",
"totalShippingTaxCurrency": "USD",
"x_field1": "3",
"x_field2": "4.00000",
"x_field3": "Field3"
},
{
"adjustment": [
{
"amount": "-6.00000",
"code": "Save 10% on all orders today",
"currency": "USD",
"description": "Save 10% on all orders",
"descriptionLanguage": "-1",
"displayLevel": "Order",
"usage": "Discount"
}
],
"buyerDistinguishedName": "uid=shopperrest,o=default organization,o=root organization",
"buyerId": "1002",
"grandTotal": "54.00000",
"grandTotalCurrency": "USD",
"lastUpdateDate": "2013-11-05T05:40:43.042Z",
"orderId": "17016",
"orderStatus": "B",
"placedDate": "2013-11-05T05:40:43.042Z",
"prepareIndicator": "true",
"resourceId": "https:\/\/testserver.mycompany.com\/wcs\/resources\/store\/10101\/order\/17016",
"shipAsComplete": "true",
"storeNameIdentifier": "Aurora",
"storeUniqueID": "10101",
"totalAdjustment": "-6.00000",
"totalAdjustmentCurrency": "USD",
"totalProductPrice": "60.00000",
"totalProductPriceCurrency": "USD",
"totalSalesTax": "0.00000",
"totalSalesTaxCurrency": "USD",
"totalShippingCharge": "0.00000",
"totalShippingChargeCurrency": "USD",
"totalShippingTax": "0.00000",
"totalShippingTaxCurrency": "USD"
}
],
"recordSetComplete": "true",
"recordSetCount": "3",
"recordSetStartNumber": "0",
"recordSetTotal": "3",
"resourceId": "https:\/\/testserver.mycompany.com\/wcs\/resources\/store\/10101\/order\/@history",
"resourceName": "order"
}