Feature Pack 5Feature Pack 6Feature Pack 4

Get order history

The following example shows how to get order history.

Request


GET /wcs/resources/store/10101/order/@history HTTPS/1.1
Host: wcstestserver.raleigh.ibm.com
Content-Type: application/json

Response


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

{
   "Order": [
      {
         "adjustment": [
      {
         "amount": "-15.00000",
         "code": "Save 10% on all orders today",
         "currency": "USD",
         "description": "Save 10% on all orders",
         "descriptionLanguage": "-1",
         "displayLevel": "Order",
         "usage": "Discount"
      }
      ],
         "buyerDistinguishedName": "uid=wcsadmin,o=root organization",
         "buyerId": "-1000",
         "grandTotal": "135.00000",
         "grandTotalCurrency": "USD",
         "lastUpdateDate": "2013-04-17T14:17:46.165Z",
         "orderId": "11003",
         "orderStatus": "M",
         "orgDistinguishedName": "o=root organization",
         "orgUniqueID": "-2001",
         "placedDate": "2013-04-17T14:17:46.165Z",
         "prepareIndicator": "true",
         "resourceId": "https:\/\/linker1.torolab.ibm.com:443\/wcs\/resources\/store\/10051\/order\/11003",
         "shipAsComplete": "true",
         "storeNameIdentifier": "Aurora",
         "storeUniqueID": "10051",
         "totalAdjustment": "-15.00000",
         "totalAdjustmentCurrency": "USD",
         "totalProductPrice": "150.00000",
         "totalProductPriceCurrency": "USD",
         "totalSalesTax": "0.00000",
         "totalSalesTaxCurrency": "USD",
         "totalShippingCharge": "0.00000",
         "totalShippingChargeCurrency": "USD",
         "totalShippingTax": "0.00000",
         "totalShippingTaxCurrency": "USD"
      },
      {
         "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=wcsadmin,o=root organization",
         "buyerId": "-1000",
         "grandTotal": "545.00000",
         "grandTotalCurrency": "USD",
         "lastUpdateDate": "2013-03-28T18:56:00.278Z",
         "orderId": "10002",
         "orderStatus": "M",
         "orgDistinguishedName": "o=root organization",
         "orgUniqueID": "-2001",
         "placedDate": "2013-03-28T18:56:00.278Z",
         "prepareIndicator": "true",
         "resourceId": "https:\/\/linker1.torolab.ibm.com:443\/wcs\/resources\/store\/10051\/order\/10002",
         "shipAsComplete": "true",
         "storeNameIdentifier": "Aurora",
         "storeUniqueID": "10051",
         "totalAdjustment": "-25.00000",
         "totalAdjustmentCurrency": "USD",
         "totalProductPrice": "570.00000",
         "totalProductPriceCurrency": "USD",
         "totalSalesTax": "0.00000",
         "totalSalesTaxCurrency": "USD",
         "totalShippingCharge": "0.00000",
         "totalShippingChargeCurrency": "USD",
         "totalShippingTax": "0.00000",
         "totalShippingTaxCurrency": "USD"
      } 
      ],
         "recordSetComplete": "true",
         "recordSetCount": "2",
         "recordSetStartNumber": "0",
         "recordSetTotal": "2",
         "resourceId": "https:\/\/linker1.torolab.ibm.com:443\/wcs\/resources\/store\/10051\/order\/@history",
         "resourceName": "order"
}